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

Overpass query with CSV export

0

I have currently the following query: http://overpass-api.de/api/interpreter?data=(node%22highway%22;way(bn);%3E;);(.;rel(bn););(.;rel(bw););._;out;

I would like to retrieve the data in an csv output format. I found out that I need to add this to the query data=[out:format]... Works like a charm for JSON but not for CSV. What am I doing wrong?

Thanks

asked 30 Mar '15, 13:56

Linda's gravatar image

Linda
1222
accept rate: 0%


One Answer:

3

[out:csv] alone will not work. You need to specify exactly, which fields should be included in the response. Please check out the documentation on the wiki page as pointed out earlier today. Also, you can test your query in http://overpass-turbo.eu , which may be more convenient.

Can you elaborate a bit more, what you're trying to do?

answered 30 Mar '15, 14:05

mmd's gravatar image

mmd
5.7k15388
accept rate: 37%

edited 30 Mar '15, 14:10

Source code available on GitHub .