2

enter image description here The boundary around the address shown in red in the OSM GUI, It does not return when querying, and in the download XML the "GeoJson" of this polygon does not show... is it possible to obtain this boundary via the API? I'm not sure how it's being generated on the backend.

1
  • 2
    Note that addresses can both be defined as polygons and nodes in OSM! If you want to make sure to get all addresses, you have to download and process both polygons and nodes Commented Jun 14, 2020 at 5:27

1 Answer 1

5

Use the Nominatim API to geocode and return the polygon for the building outline &polygon_geojson=1

https://nominatim.openstreetmap.org/search/%224315,%20E%20Street%20Southeast,%20Washington%20DC?format=geojson&addressdetails=1&limit=1&polygon_geojson=1

This can be added to a GIS (QGIS used here) to read the GeoJSON file.

enter image description here

3

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.