Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increasing zoom value reduces information in reverse geocoding #704

Closed
Mstriewe opened this issue Apr 18, 2017 · 4 comments
Closed

Increasing zoom value reduces information in reverse geocoding #704

Mstriewe opened this issue Apr 18, 2017 · 4 comments

Comments

@Mstriewe
Copy link

Consider the following two queries for reverse geocoding, which only differ in the zoom value:

Query 1: http://nominatim.openstreetmap.org/reverse.php?format=html&lat=51.484622236435&lon=8.337727189064&zoom=10
Query 2: http://nominatim.openstreetmap.org/reverse.php?format=html&lat=51.484622236435&lon=8.337727189064&zoom=14

Query 1 returns "Belecke, Warstein, Kreis Soest, Regierungsbezirk Arnsberg, Nordrhein-Westfalen, Deutschland", which is correct.
Query 2 returns "Altstadt, Belecke, Kreis Soest, Regierungsbezirk Arnsberg, Nordrhein-Westfalen, 59581, Deutschland", which is incomplete. Particularly it misses the "Warstein" bit.

Details for the result from query 2 (http://nominatim.openstreetmap.org/details.php?place_id=70478377) show an extra way of type "place:village", but as this has rank "Other: 19" it is not supposed to supress the relation for Warstein with rank "City", isn't it?

@lonvia
Copy link
Member

lonvia commented Apr 24, 2017

Yes, Warstein competes with Belecke over who gets to define the city part of the address. The OSM tagging is completely right here. Unfortunately, it is very difficult for Nominatim to correctly guess if a village is part of a town or not. In that particular case we would know if we knew that we are in Germany and a Gemeinde is often a connecton of multiple smaller villages. So localized treatment will be needed. See also #213.

@Mstriewe
Copy link
Author

Thanks for the explanation.

Given the fact that the details page mentioned above lists all potential elements of the address (with the ones considered irrelevant printed in light grey), I wonder if it is possible to add a parameter which forces Nominatim to show all these elements also in the JSON output. This would allow clients to decide on their own which city, town or village is relevant to them. This would solve the issue as well, as no data gets lost by an incorrect guess by Nominatim.

@Megachip
Copy link

@lonvia is there any way to help nominatim to guess right? E.g. setting the is_in attribute or putting the lower relation als child relation into the higher relation?

@lonvia
Copy link
Member

lonvia commented Jul 27, 2020

The example has been fixed with the use of admin boundaries it seems. Hopefully works better in general with the new address computation.

@lonvia lonvia closed this as completed Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants