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

Get all tags overpass api to display in a html file.

0

Hello everyone again.

I would like to know how its possible to use the overpass api of OSM to get all tags of one node (by searching the id of the node) and display in a html file.

Thank you for all the help.

Francisco Costa

asked 19 Apr '16, 11:09

FrancisCosta's gravatar image

FrancisCosta
0121213
accept rate: 0%


One Answer:

3

Take a look at this page, especially the custom and popup stuff:

http://overpass-api.de/output_formats.html

So you can have a link like http://overpass-api.de/api/interpreter?data=[out:popup];node%2818994998%29;out; and it will display a simple html page.

I think a lot of the time caching the result of a query on a server will be a better approach.

answered 19 Apr '16, 17:09

maxerickson's gravatar image

maxerickson
12.7k1083176
accept rate: 32%

edited 19 Apr '16, 19:21

Source code available on GitHub .