Closed wgds60 closed 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.
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.
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..
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.
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'.
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.