osm-search / Nominatim

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

San Bernadino, California only finds county, but not the city #3442

Closed wgds60 closed 3 weeks ago

wgds60 commented 3 weeks ago

What did you search for?

Search: San Bernadino, California

https://nominatim.osm.org/ui/search.html?q=san+bernadino%2C+california

What result did you get?

Only the San Bernadino County but not San Bernadino City.

What result did you expect?

San Bernadino City

OSM Node: https://www.openstreetmap.org/node/150958886 preferably with the city relation attached: https://www.openstreetmap.org/relation/253639 to get a polygon of San Bernadino (City)

When the result in the right place and just named wrongly:

When the result missing completely:

Further details

Even trying a San Bernadino, San Bernadino, California (that is: City, County, State) does not help. E.g. this helps with Matera, Matera, California (where Matera, California retuns the county, not the city, but Matera, Matera, California returns the city)

In general, I think it would be nice if the importance of a city is higher than a county if both share a name.

Edit: this was just a typo case, it works with San Bernardino (correct spelling) but does not work with San Bernadino (one r missing). Sorry for the confusion.

mtmail commented 3 weeks ago

https://www.openstreetmap.org/relation/396509 and https://www.openstreetmap.org/node/316944822 both represent the county. The node has a shorter name though. I'd say rename the node to match the relation.

wgds60 commented 3 weeks ago

Oh my, the problem exists here at keyboard as the typo (San Bernadino instead of San Bernardino) did not help at all. With San Bernardino the city is found.

lonvia commented 3 weeks ago

That actually means you found a typo in the OSM data. The county relation has official_name=County of San Bernadino. Let me fix that..

wgds60 commented 3 weeks ago

Yes, San Bernardino seems to be prone for a typo, so at least it's not only me. I also found that typo at the San Bernardino County DA building ( https://www.openstreetmap.org/way/338720949 ) but missed the one in the official_name of the county.

lonvia commented 3 weeks ago

Makes you wonder how many of the dozen other roads named San Bernadino in the US are typos. We'll never know without a survey. At least the one in Auckland, New Zealand seems correct without the 'r'.