“How do I get my data back?”
planet.osm / extracts
:(
:)
“The Overpass API […] serves up custom selected parts of the OSM map data. It acts as a database over the web: the client sends a query to the API and gets back the data set that corresponds to the query.”
<?xml version="1.0" encoding="UTF-8"?>
<osm version="0.6" generator="Overpass API">
<note>The data included in this document is from www.openstreetmap.org. The data is made available under ODbL.</note>
<meta osm_base="2013-06-10T16:24:05Z"/>
<node id="336133372" lat="46.6296301" lon="10.4486610">
<tag k="amenity" v="place_of_worship"/>
<tag k="denomination" v="catholic"/>
<tag k="historic" v="monument"/>
<tag k="name" v="Benediktinerinnenkloster St. Johann"/>
<tag k="name:de" v="Benediktinerinnenkloster St. Johann"/>
<tag k="name:en" v="Benedictine Convent of Saint John"/>
<tag k="name:it" v="Convento San Giovanni"/>
<tag k="name:rm" v="Clostra Son Jon"/>
<tag k="note" v="UNESCO World Heritage Site"/>
<tag k="religion" v="christian"/>
<tag k="tourism" v="attraction"/>
<tag k="wheelchair" v="yes"/>
<tag k="wikipedia" v="de:Benediktinerinnenkloster St. Johann"/>
</node>
</osm>
:(
drinking water in a region
There is more:
<bbox-query {{bbox}} />
instead of:
<bbox-query s="46.41253" w="11.16760" n="46.51894" e="11.32415" />
{{style: … }}
Polygon iff:
highway=bus_stop AND operator=SASA
… AND type:node
… IN Rovereto
demo: http://overpass-tubo.eu/osmit/
canvas {
background-map: url('http://tiles.example.com/{z}/{x}/{y}.png');
}
node[amenity=restaurant] {
text: content('name');
}
node[highway=bus_stop] {
popup: 'Eine Bushaltestelle';
}
{{plugin:…}}