Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Bridge with ref found instead of address point #4772

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 3 comments
Closed

Bridge with ref found instead of address point #4772

openstreetmap-trac opened this issue Jul 23, 2021 · 3 comments

Comments

@openstreetmap-trac
Copy link

Reporter: ppawel[at]fastmail.fm
[Submitted to the original trac issue database at 9.05am, Friday, 8th February 2013]

http://nominatim.openstreetmap.org/search.php?q=16%2C+herdera%2C+olsztyn&viewbox=-112.5%2C46.08%2C112.5%2C-46.08

"16, herdera, olsztyn" finds a bridge with ref=16
"herdera 16, olsztyn" finds the proper address

@openstreetmap-trac
Copy link
Author

Author: SQ9NIT
[Added to the original trac issue at 7.12am, Monday, 18th February 2013]

"4, Ktrzyskiego, Olsztyn" founds railway platform with ref=4

http://nominatim.openstreetmap.org/search.php?q=4%2C+Ktrzyskiego%2C+olsztyn

"Ktrzyskiego 4, Olsztyn" founds the proper address.

@openstreetmap-trac
Copy link
Author

Author: lonvia
[Added to the original trac issue at 8.35am, Monday, 18th February 2013]

You expect that a partial match for your search term (the street name) is ranked higher than a perfect match. This is a bit tricky to do without breaking search for other countries. You can work around this issue by adding short_name tags with the commonly used abbreviated name to the streets.

The second result works because Nominatim expects the name of an object at the beginning or the end of the query. Thus the 16 or 4 won't be matched against the ref tag.

@openstreetmap-trac
Copy link
Author

Author: lonvia
[Added to the original trac issue at 8.25pm, Friday, 30th January 2015]

This seems to have been fixed with proper reversing of the search query (osm-search/Nominatim@e16fcf8). At least the two examples work well. Please reopen, if you find other examples where this goes wrong.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant