I am trying to write a query that will return all pubs and bars around a certain point. I'm having issues with the results that are ways. At the moment I am getting all the nodes for the way and then using some post processing to match up the first node of the way to the node lat/long data. Obviously, this is largely inefficient. This is the query I'm currently using. Many thanks.
asked 29 Sep '18, 23:26 adam__ |
Each way lists it's member nodes, so in your post processing you can build a mapping of node ids to nodes and use that to retrieve a way node, you don't need to order the output. So a query like http://overpass-turbo.eu/s/Cne should work.
You might also be interested in answered 30 Sep '18, 04:30 maxerickson out center is exactly what I'm after. My final query is http://overpass-turbo.eu/s/Cns since I don't need individual lat/lon of the ways nodes
(30 Sep '18, 12:10)
adam__
|