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

No match when City name passed #3364

Closed GeekNJ closed 6 months ago

GeekNJ commented 6 months ago

What did you search for?

https://nominatim.openstreetmap.org/ui/search.html?q=1425+woodvine+way%2C+Alpharetta+GA+30005 1425 Woodvine Way, Alpharetta GA 30005

Same result happens using the API.

What result did you get?

No match

What result did you expect?

A match as the address is in OSM but it appears to not have the city name associated with the address. This lookup returns the expected results: https://nominatim.openstreetmap.org/ui/search.html?q=1425+woodvine+way%2CGA+30005 1425 Woodvine Way, GA 30005

Is this situation due to improper inheritance of the data in OSM? I would expect the lookup with the city to still find a match. What options are available to handle this as it seems pretty common.

lonvia commented 6 months ago

The address is outside the the administrative area of Alpharetta, so Nominatim cannot know that the city is part of the address without additional information. This is a well-know (but sadly still unresolved) issue with US postal towns, see #1120.

The result for this particular example is also currently not mapped in OSM. The housenumber comes from the supplementary Tiger data, the rest of the address relies on the information Nominatim has about the street. Easiest fix is to add addresses to OSM directly. addr:city will be correctly handled for address points.

Closing as duplicate of #1120.