WikiProject South Australia/POI

From OpenStreetMap Wiki
Jump to: navigation, search

Here are some recipes for seeing specific classes of POI.

They mainly use Overpass-XML which only has 5 minutes delay using http://overpass-turbo.eu/

Hotel/Motels

<osm-script output="xml" timeout="25">
   <union>
     <query type="way">
      <has-kv k="tourism" v="motel"/>
      <bbox-query {{bbox}}/>
    </query>
     <query type="node">
      <has-kv k="tourism" v="motel"/>
      <bbox-query {{bbox}}/>
    </query>
     <query type="way">
      <has-kv k="tourism" v="hotel"/>
      <bbox-query {{bbox}}/>
    </query>  
     <query type="node">
      <has-kv k="tourism" v="hotel"/>
      <bbox-query {{bbox}}/>
    </query>  
    </union>
    <union>
    <item/>
    <recurse type="down"/>
  </union>
  <print mode="meta"/>
</osm-script>

Pubs, Restaurants & Bars

<osm-script output="xml" timeout="25">
   <union>
     <query type="way">
      <has-kv k="amenity" v="pub"/>
      <bbox-query {{bbox}}/>
    </query>
     <query type="node">
      <has-kv k="amenity" v="pub"/>
      <bbox-query {{bbox}}/>
    </query>
     <query type="way">
      <has-kv k="amenity" v="cafe"/>
      <bbox-query {{bbox}}/>
    </query>
     <query type="node">
      <has-kv k="amenity" v="cafe"/>
      <bbox-query {{bbox}}/>
    </query>
     <query type="way">
      <has-kv k="amenity" v="restaurant"/>
      <bbox-query {{bbox}}/>
    </query>  
     <query type="node">
      <has-kv k="amenity" v="restaurant"/>
      <bbox-query {{bbox}}/>
    </query>  
      <query type="way">
      <has-kv k="amenity" v="bar"/>
      <bbox-query {{bbox}}/>
    </query>  
     <query type="node">
      <has-kv k="amenity" v="bar"/>
      <bbox-query {{bbox}}/>
    </query>  
   </union>
    <union>
    <item/>
    <recurse type="down"/>
  </union>
  <print mode="meta"/>
</osm-script>