/*
Query for ALL fire stations and hydrants
//{s}.tile.openstreetmap.org/{z}/{x}/{y}.png
//{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png
//tiles.wmflabs.org/bw-mapnik/{z}/{x}/{y}.png
//{s}.tile.stamen.com/toner/{z}/{x}/{y}.png
//toolserver.org/~cmarqu/hill/{z}/{x}/{y}.png
//a.tile2.opencyclemap.org/transport/{z}/{x}/{y}.png
//a.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png
//{s}.tile2.opencyclemap.org/transport/{zoom}/{x}/{y}.png
//c.tile.stamen.com/watercolor/{z}/{x}/{y}.jpg
*/
[out:xml]/*fixed by auto repair*/[timeout:25];
// fetch areas to search
(
{{geocodeArea:San Miguel, Manila, Philippines}};
{{geocodeArea:Quiapo, Manila, Philippines}};
{{geocodeArea:Sampaloc, Manila, Philippines}};
)->.searchArea;
// gather results
(
// query part for: “amenity=fire_station”
node["amenity"="fire_station"](area.searchArea);
way["amenity"="fire_station"](area.searchArea);
relation["amenity"="fire_station"](area.searchArea);
// query part for: “emergency=fire_hydrant”
node["emergency"="fire_hydrant"](area.searchArea);
way["emergency"="fire_hydrant"](area.searchArea);
relation["emergency"="fire_hydrant"](area.searchArea);
// query part for: “disused:emergency=fire_hydrant”
node["disused:emergency"="fire_hydrant"](area.searchArea);
way["disused:emergency"="fire_hydrant"](area.searchArea);
relation["disused:emergency"="fire_hydrant"](area.searchArea);
);
// print results
out meta;/*fixed by auto repair*/
>;
out meta qt;/*fixed by auto repair*//*fixed by auto repair*/
{{style:
node, area
{ color:white; fill-color:white; }
node[amenity=fire_station],way[amenity=fire_station],
area[amenity=fire_station],
node[operator:type=public], way[operator:type=public], area[operator:type=public]{
/*
icon-image: url('icons/maki/fire-station-24.png');
icon-width: 24;
*/
color:blueviolet; fill-color:blueviolet;
text: name;
text-position: line;
font-size: medium;
}
node[operator:type=government], way[operator:type=government], area[operator:type=government]{
color:blue; fill-color:blue;
text: name;
text-position: line;
}
node[operator:type=ngo], way[operator:type=ngo], area[operator:type=ngo]{
color:navy; fill-color:navy;
text: alt_name;
text-position: line;
}
node[emergency=fire_hydrant]{
color:green; fill-color:green;
symbol-size: 5; symbol-fill-opacity: 1;
/*
icon-image: url('https://wiki.openstreetmap.org/w/images/thumb/a/af/Fire_hydrant.svg/10px-Fire_hydrant.svg.png');
*/
}
node[disused:emergency=fire_hydrant], node[abandoned:emergency=fire_hydrant]{
color:red; fill-color:red;
symbol-size: 3; symbol-fill-opacity: 1;
}
}}
Created
May 9, 2016 07:26
-
-
Save govvin/5c105ec6475d3d87db075a6f5d5fea8d to your computer and use it in GitHub Desktop.
Overpass Turbo query to gather fire stations, volunteer fire brigades, and fire hydrants in Manila.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment