Search code examples
openstreetmaplayeroverpass-api

Load all layer information from OpenStreetMap


I'm trying to load all points of sertain layer from OpenStreetMap. But I can't find such command in overpass api. Is this even possible? All that I can achieve is all nodes from certain bounding box:

<osm-script output="json">
  <query type="way">
    <bbox-query {{bbox}}/>
  </query>
  <recurse type="way-node" into="waynodes"/>
  <query type="node" into="nodes">
    <bbox-query {{bbox}}/>
  </query>
  <!-- added by auto repair -->
  <union>
    <item/>
    <recurse type="down"/>
  </union>
  <!-- end of auto repair -->
  <print/>
</osm-script>

Solution

  • OpenStreetMap doesn't have a "layer" concept in contrast to other GIS data.

    For loading all existing information you simply have to query for every element type, i.e. nodes, ways and relations. That's all. overpass turbo (a nice web frontend for the Overpass API) already does this by default when using the wizard.