<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Both the RapiD editor and the official MapWithAI plugin for JOSM now include support for working with the Microsoft Buildings dataset (along with many other sources of open data). I encourage people to use those resources as a starting point, rather than building a new plugin.<div class=""><br class=""></div><div class="">More info here: </div><div class=""><a href="https://tech.fb.com/map-with-ai-updates/" class="">https://tech.fb.com/map-with-ai-updates/</a></div><div class=""><a href="https://blogs.bing.com/maps/2020-03/facebooks-rapid-editor-now-includes-microsoft-building-footprints" class="">https://blogs.bing.com/maps/2020-03/facebooks-rapid-editor-now-includes-microsoft-building-footprints</a></div><div class=""><br class=""></div><div class="">Thanks, Bryan</div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Apr 10, 2021, at 10:31 PM, Alexander Maiorov <<a href="mailto:alexander.mmaiorov@gmail.com" class="">alexander.mmaiorov@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Good Evening,<br class=""><br class="">I have taken an interest in the US buildings dataset by microsoft and I have created an API to create small extracts(say of individual neighborhoods or blocks) so that people can import small bits of the dataset so that they don't have to trace it, but also have it be small enough that they can manually go over it and make sure they don't destroy any data or run into any of the other pitfalls of imports. I have hosted this API on my website. The usage is very simple, you GET the url <a href="https://3twenty2.xyz/us-buildings-api/api" class="">https://3twenty2.xyz/us-buildings-api/api</a> with a JSON polygon formatted as the following in the body:<br class=""><br class=""><span style="font-family:monospace" class=""><span style="" class="">{"coordinates": [[-74.61936, 40.31205], [-74.6274, 40.31277], [-74.63214, 40.30419], [-74.61754, 40.30821], [-74.61936</span><br class="">, 40.31205]]}<br class=""></span><br class="">And valid GEOJSON is returned from this. I will also paste a simple python script that fetches the data as an example below. I have two questions. First off, is there anyone who is good at developing JOSM plugins want to develop a plugin that fetches from the API and downloads the layers directly into JOSM? Second off, would I be within my rights to start using my API personally in order to carefully import areas that I have local knowledge in, and therefore would be able to fix any issues?<div class=""><br class=""></div><div class="">Thank you,</div><div class="">Alex Maiorov<br class=""><br class="">Appendix: Python Script.</div><div class=""><br class=""></div><div class="">#!/usr/bin/env python3<br class="">import requests<br class="">import json<br class=""><br class="">body = {<br class=""> "coordinates": [[40.31205, -74.61936], [40.31277, -74.62740], [40.30419, -74.63214], [40.30821, -74.61754], [40.31205, -74.61936]]<br class=""> }<br class=""><br class="">for p in body['coordinates']:<br class=""> p.reverse()<br class="">text = json.dumps(body)<br class=""><br class="">response = requests.request(method='get', url='<a href="https://3twenty2.xyz/us-buildings-api/api" class="">https://3twenty2.xyz/us-buildings-api/api</a>', data=text)<br class="">print(str(response.text))<br class=""></div></div>
_______________________________________________<br class="">Talk-us mailing list<br class=""><a href="mailto:Talk-us@openstreetmap.org" class="">Talk-us@openstreetmap.org</a><br class="">https://lists.openstreetmap.org/listinfo/talk-us<br class=""></div></blockquote></div><br class=""></div></body></html>