Hello! I am querying an Overpass API in order to get the closest cities to another one with the following request: [out:json];node['place'='city']['name'='Malaga']->.center; node(around.center:100000)['place'='city']; out; However, the above does not return anything unless I change Malaga with Málaga. Is this expected? I thought multilingual city names would be supported. Thank you in advance and regards. asked 07 Aug '20, 20:46 dejavits |
I think Overpass uses exactly what you asks him. So if you want to use an international name you should either use answered 08 Aug '20, 00:37 Mannivu Thanks! I have checked and name:en does not exist for this city, however, it works with name:de. I think the most convenient for me would be to use [a-z][a-z] but it does not work either: [out:json];node['place'='city']['name:[a-z][a-z]'='Malaga']->blablabla Any idea why?
(08 Aug '20, 09:56)
dejavits
You forgot the ~ before and after "name:[a-z][a-z]"
(08 Aug '20, 10:01)
Mannivu
In this example i used this query
(08 Aug '20, 12:31)
Mannivu
|
Generally speaking the If you want to use overpass for this query you will probably need to look at the Alternately you may want to do the initial geocoding with something like Nominatim and pass its response to Overpass for the second part of your query. answered 08 Aug '20, 00:40 InsertUser Thanks! I have tried with name: en but still does not work. I believe this city does not have "en" tag because if I use name:de (German) it works!. Is there a way to search for the city name matching any of the available languages available for the city?
(08 Aug '20, 09:55)
dejavits
|