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

Output Overpass query to browser/txt file without pulling data?

1

I've searched for a bit and can't find answers. Help!! and thanks!

I would like to query Overpass to find the total number of nodes associated with roads within the boundaries of a city - my challenge is to retrieve this number without also pulling the actual data? Another way to state this: I'd like Overpass to give me the number of nodes, but not bog down or result in time-outs, which happens for even small cities. I think this could conserve a lot of bandwidth.

Second question: how could I perform this query together for multiple cities and output as a csv or similar file? Again, without transferring actual data to my browser?

Thank you

asked 17 Mar '16, 14:30

rnodesertgrad's gravatar image

rnodesertgrad
31113
accept rate: 0%

edited 17 Mar '16, 16:00


One Answer:

1

Have a look at the documentation Overpass_QL#Counting_of_elements ...

Success?

answered 17 Mar '16, 16:28

stephan75's gravatar image

stephan75
12.6k556210
accept rate: 6%

Source code available on GitHub .