I am using the following query to get all the airports in Manitoba that have an IATA or ICAO code associated with them (maybe not the most efficient code, so feel free to suggest something better):
What I'd like to do now is, for each of those airports, find the nearest city (or town or whatever) to the airport. How can I do that? The end result would ideally be some JSON structure that gave me something like the following:
asked 06 Jun '19, 18:10 cviebrock_ppn |
This doesn't fully return the nearest, but should get you started:
https://overpass-turbo.eu/s/PFZ The third line is just a concentration of your routine. It uses regular expressions (~ means 'something like') It then loops through each airport & finds any city with the specified distance (in metres). T oget the nearest you'll have to perform some post processing. PS I'm not convinced the answered 12 Jan '20, 16:39 DaveF |
Did you find a solutions for this?