User:Tyr/Overpass API Language Guide with Turbo

From OpenStreetMap Wiki
Jump to: navigation, 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
try it yourself in overpass-turbo
out body;
try it yourself in overpass-turbo
  <query type="node">
    <has-kv k="name" v="Gielgen"/>
    <bbox-query e="7.25" n="50.8" s="50.7" w="7.1"/>

Display result: OpenLayers map, JSON, XML