Skip to content

Instantly share code, notes, and snippets.

@govvin
Created March 4, 2017 02:38
Show Gist options
  • Save govvin/ba133658062b405df3a3375c8ce89524 to your computer and use it in GitHub Desktop.
Save govvin/ba133658062b405df3a3375c8ce89524 to your computer and use it in GitHub Desktop.
Barangay Halls in San Juan, Metro Manila
/*
This has been generated by the overpass-turbo wizard.
The original search was:
“(amenity=townhall && "townhall:type"=village) && (type:node || type:way) || place=village in "San Juan, Metro Manila"”
*/
[out:json][timeout:25];
// fetch area “San Juan, Metro Manila” to search in
{{geocodeArea:San Juan, Metro Manila}}->.searchArea;
// gather results
(
// query part for: “amenity=townhall and "townhall:type"=village”
node["amenity"="townhall"]["townhall:type"="village"](area.searchArea);
// query part for: “amenity=townhall and "townhall:type"=village”
way["amenity"="townhall"]["townhall:type"="village"](area.searchArea);
// query part for: “place=village”
node["place"="village"](area.searchArea);
way["place"="village"](area.searchArea);
relation["place"="village"](area.searchArea);
);
// print results
out body;
>;
out skel qt;
{{style:
node, area
{ color:white; fill-color:white; }
node[amenity=townhall],way[amenity=townhall],
area[amenity=townhall],
node[townhall:type=village], way[townhall:type=village], area[townhall:type=village]{
icon-image: url('icons/maki/town-hall-24.png');
icon-width: 24;
color:blueviolet; fill-color:blueviolet;
/*text: name;
text-position: line;
font-size: medium;
*/
}
node[place=village],way[place=village],area[place=village], relation[place=village]{
icon-image: url('icons/maki/marker-12.png');
icon-width: 24;
color:green; fill-color:green;
/*text: name;
text-position: line;
font-size: medium;*/
}
}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment