osm-search / Nominatim

Open Source search based on OpenStreetMap data
https://nominatim.org
GNU General Public License v3.0
3.12k stars 713 forks source link

Auckland returns wrong centre point #3372

Closed d-meehan closed 6 months ago

d-meehan commented 6 months ago

What did you search for?

Auckland - https://nominatim.openstreetmap.org/ui/search.html?q=auckland

What result did you get?

The search correctly returns R17000522, but the centre point is -36.5412811,174.5506104914412

What result did you expect?

For R17000522 OSM correctly has a centre point of -36.5359, 174.8998 https://www.openstreetmap.org/relation/17000522

lonvia commented 6 months ago

The Auckland place node and the Auckland admin boundary do not describe the same object according to their wikidata tags. The former is the city of Auckland while the latter is linked to the Auckland region. To add to the confusion, both objects have wikipedia tags that indeed point to the city of Auckland, i.e. they contradict the wikidata tags.

Then there is another Auckland relation which also points to the wikidata page for Auckland region and the wikipedia page for Auckland, has the same area as relation 17000522 but a different admin_level. I presume that this is the actual 'Auckland region' relation.

If you fix wikipedia and wikidata tags for these three objects, linking between them should work between them, which in turn will mean that the result gets the center point where the node is.

Closing as data issue.

d-meehan commented 6 months ago

Thank you for the quick clarification, I'll try and fix those tags.