Friday 7 April 2023

OpenStreetMap query: show postboxes OR bottle banks OR AEDs or car chargers in an area

THINGS tags to query on: 




AEDs

bottle banks
electric car charging points
Mountain huts on Wicklow Way.
The Wicklow Way (roads, tracks and paths and other things tagged with Wicklow Way)


RELATED ish: 




QUERY websites/methods:


Overpass Turbo

Make a login.
You can save your queries.

e.g. amenity=shelter on Wicklow Way

node

  [amenity=shelter] 

  ({{bbox}});

out;

e.g. Wicklow Way - off road

// "The Wicklow Way"

// https://www.openstreetmap.org/relation/2740#map=10/52.9875/-6.4263&layers=C

//relation[2740]({{bbox}});

//node[highway=path,name="The Wicklow Way"]({{bbox}});

//node[name="Wicklow Way"]({{bbox}});

(

relation[route=bicycle]({{bbox}});

way[highway=path][name="Wicklow Way"]({{bbox}});

way[highway=track][name="Wicklow Way"]({{bbox}});

way[highway=footway][name="Wicklow Way"]({{bbox}});

way[highway=unclassified][name="Wicklow Way"]({{bbox}});

node[amenity=shelter]({{bbox}});

);

/*added by auto repair*/

(._;>;);

/*end of auto repair*/

out;


e.g. Wicklow Way with some roads

(

//relation[route=bicycle]({{bbox}});

way[highway=path][name="Wicklow Way"]({{bbox}});

way[highway=path][name="Wicklow Way/Dublin Mountains Way"]({{bbox}});

way[highway=track][name="Wicklow Way"]({{bbox}});

way[highway=track][name="Wicklow Way/Dublin Mountains Way"]({{bbox}});

way[highway=footway][name="Wicklow Way"]({{bbox}});

way[highway=unclassified][name="Wicklow Way"]({{bbox}});

node[amenity=shelter][shelter_type=weather_shelter]({{bbox}});

way[highway=tertiary][name="Wicklow Way"]({{bbox}});

);

(._;>;);

out;

e.g. find the shelters on The Wicklow Way

// find the shelters on The Wicklow Way

node[amenity=shelter][shelter_type=weather_shelter]({{bbox}});

out;

e.g.  ecar charging station near Dublin, Ireland

(
  node["amenity"="charging_station"](around:50000,{{geocodeCoords:Dublin}});
  way["amenity"="charging_station"](around:50000,{{geocodeCoords:Dublin}});
  relation["amenity"="charging_station"](around:50000,{{geocodeCoords:Dublin}});
);
out;
>;
out;

e.g. recycling, bottle banks etc

 (

  node["amenity"="recycling"](around:50000,{{geocodeCoords:Dublin}});
  way["amenity"="recycling"](around:50000,{{geocodeCoords:Dublin}});
  relation["amenity"="recycling"](around:50000,{{geocodeCoords:Dublin}});
);
out;
>;
out;

Query-to-map


https://wiki.openstreetmap.org/wiki/Query-to-map

MAYBE TOO BIG an area to query ? too slow:  Maybe BROKEN ? 



select BBOX 

e.g. around Leopardstown Heights:
EXPORT => too big but it shows you bbox format:
https://www.openstreetmap.org/api/0.6/map?bbox=-6.2448%2C53.2532%2C-6.1834%2C53.2846
 = -6.2448,53.2532,-6.1834,53.2846

Learning about Overpass queries:

HELPFUL:
Your example – hospitals in a 50 km radius around Denver – might look like this
(
  node["amenity"="hospital"](around:50000,{{geocodeCoords:Denver}});
  way["amenity"="hospital"](around:50000,{{geocodeCoords:Denver}});
  relation["amenity"="hospital"](around:50000,{{geocodeCoords:Denver}});
);
out;
>;
out;
AROUND filter:

GOOD TUTORIAL:

Fun with Wales’ map data: a tutorial using Overpass queries and OpenStreetmap













No comments: