osm-search / Nominatim

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

County no longer appearing in address details #1933

Closed mchuttani18 closed 4 years ago

mchuttani18 commented 4 years ago

Hi,

Yesterday, almost all US search queries included a"county" field under "address_details" in the jsonv2 response. Today very few searches include the county.

For example, yesterday when I searched "UCLA", Nominatim included { "county": "Los Angeles County" } in address details. Today, the response includes the city and state but not the county.

UCLA example search URL

The county field does not appear in address details even when searching a county name explicitly, like "orange county, california." This query returns an abandoned railroad (OSM ID 327344057) and Orange County is not listed in address details.

Could you please look into why the county field was removed, and add the field back to address_details?

Thanks!

lonvia commented 4 years ago

These kind of error usually mean that somebody broke the county boundary in OpenStreetMap. And indeed, there is a whole in LA County and Orange County: https://www.openstreetmap.org/relation/396479#map=16/33.9451/-117.9113

lonvia commented 4 years ago

I've fixed both counties now.