User:Tyr/Overpass API Language Guide with Turbo
< User:Tyr
Jump to navigation
Jump to search
By exact name and rough location
If this isn't exact enough, you could also specify a bounding box to get results from only within a certain bouding box. The coordinate order is (lower lat, lower lon, upper lat, upper lon). If you don't have a bounding box, the following example may fit better to you:
Overpass QL | XML |
---|---|
node
["name"="Gielgen"]
(50.7,7.1,50.8,7.2);
out body;
|
<osm-script>
<query type="node">
<has-kv k="name" v="Gielgen"/>
<bbox-query e="7.25" n="50.8" s="50.7" w="7.1"/>
</query>
<print/>
</osm-script>
|
Display result: OpenLayers map, JSON, XML