Overpass turbo
Overpass turbo allows to runs an Overpass API query and have it show the results on an interactive map.
Some URLs where Overpass turbo queries can be executed include:
Find everything with the
name Freienstein.
nwr
is an abbreviation for
nodes, ways and relations.
nwr[name="Freienstein"];
out center;
nwr[name~"x.*y"]({{bbox}});
out;
node(s, w, n, e)
selects all nodes in a (bounding) box that is delimited by the south, west, north and east coordinates s
, w
, n
and e
.
This query shows the nodes of
Bishop Rock, according to the Guineess Book of Records the
smallest island with a building on it:
node (
49.8727, -6.4458, // minimum latitude and longitude (South and West border)
49.8730, -6.4452 // maximum latitude and longitude (North and East border)
);
out;
Compare node(…
) with [bbox:…]
.
nwr[public_transport = station ]({{bbox}} );
nwr[shop = supermarket](around:100);
out center;
[out:json][timeout:25];
{{geocodeArea:Zürich}}->.searchArea;
// gather results
(
nwr["amenity"="fountain"](area.searchArea);
);
out center;
UNION
(
nwr[name="Freienstein"];
nwr[name="Ofenloch" ];
);
out center;
I believe this parantheses are technically called a block statement.
Searching in a supplied bounding box
({{bbox}})
is a spatial filter that searches in the supplied bounding box.
[bbox:{{bbox}}];
(
node[amenity=parking]({{bbox}});
way [amenity=parking]({{bbox}});
);
out geom;
Comments
Portions of a query can be commented with the usual /* … */
and //
symbols.