This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

GeoJSON for building block

0

I know how to get a GeoJSON polygon for a single building and the documentation does explain it well: https://nominatim.org/release-docs/develop/api/Search/#parameters

It is also possible to get GeoJSON for regions for example.

But are there GeoJSON data (polygons) for building blocks in the database, too? And if yes, how can I query them, for example multiple house numbers

/search?query=merseburger str. 4,6,8,10,12,14,16,18,20 marzahn

Block level might be just be rare in Europe (this regarding block tag in address)

"The city block, if part of the address. Note that this tag is most often used in places where blocks can have names and not just numbers, and in many cases is specified in addition to a street name. This tag is common in a variety of countries, including India, Egypt, and Kuwait."

asked 28 Feb '23, 11:12

toothbrush's gravatar image

toothbrush
11112
accept rate: 0%


One Answer:

0

I don't believe there is any in use practice to map blocks as separate objects. So, at least in locations where the addresses are well mapped, I suspect your best bet would be to construct the convex hull of the addresses with the same addr:block or addr:block_number.

answered 09 Mar '23, 10:20

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701
accept rate: 18%

Source code available on GitHub .