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













OpenStreetMap query: show paths in Leadmines/Barnaslingan area

maps - osm query paths on leadmines - show in 3D view on google earth 
Jan 21, 2022, 5:59 PM 

1. select bbox area 

e.g. around Leopardstown Heights bigger area:

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

2. make a query to select nodes and ways 


2.1 and then export data export.{kml,gpx,osm,geojson} 


Also make an overpass account and sign in so you can save your queries. 

/*
This is an example Overpass query.
Try it out by pressing the Run button above!
You can find more examples with the Load tool.
node
  [amenity=drinking_water]
  ({{bbox}});
out;
*/

way["highway"](53.2140,-6.1687,53.2255,-6.1478);
(._;>;);
out meta;

// YES:
//(node (53.2140,-6.1687,53.2255,-6.1478); <;); out meta;

/*
Way bicycle=no/yes highway=track/cycleway/path/unclassified surface=dirt/earth/paved name=...
Node power=pole
Way cables=3 power=line/minor_line wires=single
Relation landuse=forest type=multipolygon
*/


3. Import the data KML into Google Earth


  1. On your computer, open Google Earth. 
  2. On the left, click Projects Projects. 
  3. Click the New Project button. 
  4. To add a file directly to your computer, select Import KML File.