[OSM-talk] Overpass API: version 0.6.96
Roland Olbricht
roland.olbricht at gmx.de
Wed Feb 15 21:52:10 GMT 2012
Dear all,
the new version 0.6.96 of Overpass API is available. See
http//wiki.openstreetmap.org/OSM3S/versions
The most important change is the introduction of a new, more concise query
language. You can now search with concise one-line-links (and, like before,
HTTP GET or POST requests).
An example with XML output is:
http://overpass.osm.rambler.ru/cgi/interpreter?data=node[name%3DRosental]%3Bout%3B&target=openlayers&zoom=12&lat=50.72&lon=7.1
The second most import change is the introduction of JSON output:
http://overpass.osm.rambler.ru/cgi/interpreter?data=[out%3Djson];node[name%3DRosental]%3Bout%3B&target=openlayers&zoom=12&lat=50.72&lon=7.1
And for the sake of convenience, you can also get the result as a map with
ugly markers:
http://overpass.osm.rambler.ru/cgi/convert?data=node[name%3DRosental]%3Bout%3B&target=openlayers&zoom=12&lat=50.72&lon=7.1
Please note that this is a functionality in a very early state. It needs at
the moment hard wired coordinates for positioning of the map, and it does
neither support multiple layers nor less ugly markers.
Along with the new query language comes a new language guide:
http://wiki.openstreetmap.org/wiki/Overpass_API/Language_Guide
The impatient may want to read at least the sections
http://wiki.openstreetmap.org/wiki/Overpass_API/Language_Guide#About_the_syntax
http://wiki.openstreetmap.org/wiki/Overpass_API/Language_Guide#About_the_links
http://wiki.openstreetmap.org/wiki/Overpass_API/Language_Guide#Sample_map_calls
The next step will be a wizard to create from OSM element-ids such concise
queries like above. Those can serve as stable long-time links and replace
element-ids in the wiki.
Best regards,
Roland
More information about the talk
mailing list