in the US, there are 88 cities named "Washington". I want to search for bike lanes within a specific Washington by specifying a state and country. This works and returns bike paths for ALL areas named Washington
BUT this does not . It returns BLANK.
out; why does the area [name=""] not support NOMINATUM convention? asked 16 Jul '18, 18:47 Varun-ARGO
showing 5 of 6
show 1 more comments
|
Washington franklin county Missouri should work. The blank results are when nominatim returns something that isn't searchable as an area or returns an area that doesn't have any of what you are trying to find. I don't have an explanation for the result that it returns for Washington, MO, USA, but it is clear enough why Overpass API doesn't find anything there. An alternative is to query by the relation id, along with an offset, like:
(read the whole section for the info about the 3600) answered 16 Jul '18, 21:00 maxerickson Thanks! Is there a way to retrieve relation id by city name?
(17 Jul '18, 14:06)
Varun-ARGO
I actually misread your question. On the Overpass-Turbo website there is a shortcut for looking up areas that uses Nominatim directly, The alternative just using the Overpass-API is to first retrieve the state (or county) area and then restrict the query for the city to that state (use admin_level and name together), and then use the map_to_area statement to get an area. The Overpass-API areas have the same tags as the OSM objects they are based on, that's why the Nominatim style lookups don't work, the area query will only return an exact match.
(18 Jul '18, 02:03)
maxerickson
|
As far as I can tell, there isn't a town/city in Washington state called "Washington", so it makes sense that nothing is returned.
Which Nominatim convention? Querying Nominatim for "Washington, WA, USA" finds all kinds of roads, cities and counties.
Try Boulder
if area[name="Boulder"]; you get results/
area[name="Boulder, CO, USA"]; you get BLANK
If you try to perform that query on the OSM website, you will understand why.
Can you please elaborate?
Try https://www.openstreetmap.org/search?query=Boulder%2CCO%2CUSA