This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Duplicate city names in US search

0

Many US city names are not unique. For example there are 28 cities named "Dover", each in a different state, such as Dover, New Jersey, US; Dover, Delaware, US; and Dover, Minnesota, US. Typing "Dover" in SEARCH, the option list pops up with 1 "Dover, UK" and 28 "Dover, US" possibilities. Is there State information in GeoNames so that a SEARCH would show the City AND State within US ? How much of an effort would that entail to bring over ?

asked 23 Oct '12, 14:49

Heretik's gravatar image

Heretik
1111
accept rate: 0%


One Answer:

1

If you try searching for Dover in Geonames for all countries it returns these results, so GeoNames contains the data, but their webservice as used by the OSM search box doesn't return as much data, and doesn't include the US state. I've had a quick look at their other API documentation and can only see state mentioned under the country subdivisions when reverse geocoding.

In summary I don't think it is currently possible using the existing GeoNames search webservice.

answered 23 Oct '12, 15:12

EdLoach's gravatar image

EdLoach ♦
19.5k16156280
accept rate: 22%

Source code available on GitHub .