osm-search / Nominatim

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

North/South/East/West street name matches aren't returned #535

Open terminalmage opened 8 years ago

terminalmage commented 8 years ago

When searching 123 Example St., City Name, no results are returned if the street has a North/South or East/West designation. You would, for example, need to search for 123 N. Example St., City Name. If you don't know that the street has such a designation, this can make getting results difficult.

camelCaseSucks commented 4 years ago

I'm surprised this has gone unfixed for so long. I think fixing this would make a big difference in terms of usability, and doesn't sound to me like it would be that hard. If the search has no results, just try again with each of the 8 cardinal directions appended to the start of the street name.

jtracey commented 4 years ago

try again with each of the 8 cardinal directions appended to the start of the street name.

And end; here in Ontario at least cardinal directions come after the rest of the name (e.g., King Street South, Front Street East, etc.). More generally though, it seems like if the query is a substring of a potential match, especially a space-delimited substring, it should return it?