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

How to get full address with high zoom reverse request?

0

Revers geocoding with high zoom level doesn't return the full address. for example city is missed in this request

zoom = 14

while zooming out shows the missing city field

zoom = 10

so my question is how to get the full address with high zoom levels?

asked 23 Apr '19, 13:27

Nagy's gravatar image

Nagy
11112
accept rate: 0%


One Answer:

1

Nominatim doesn't know how big the city is. The OSM data only contains the center point (node) of the city https://www.openstreetmap.org/node/534548619 On zoom level 14 it find a smaller feature (island) and doesn't know it belongs to a city. On zoom level 10 it ignores all smaller features and looks for the nearest city more of less by distance (in other words the algorithm is guessing).

Adding a boundary (OSM relation) like https://www.openstreetmap.org/relation/30005 for the city helps. Alternatively setting is_in tags to the suburbs and islands belonging to the city https://wiki.openstreetmap.org/wiki/Key:is_in

answered 23 Apr '19, 13:58

mtmail's gravatar image

mtmail
4.8k1574
accept rate: 27%

Thanks for the response, but how can I achieve that with the reverse get call? ex: https://nominatim.openstreetmap.org/reverse?lat=10.2986952&lon=123.9557301&format=json&zoom=14

(23 Apr '19, 14:19) Nagy

Nominatim doesn't know how big the city is. Somebody needs to add more data to the OSM database first.

(23 Apr '19, 14:22) mtmail

Source code available on GitHub .