Skip to content

Instantly share code, notes, and snippets.

View govvin's full-sized avatar

거윈 | Win govvin

View GitHub Profile
@govvin
govvin / otq_party_edits.md
Created March 8, 2016 02:58
query for changes made during events, given a geographical area, and a list of OSM uids

#Overpass Turbo query: for edits made during events, given a geographical area, and a list of OSM uids

[out:json]
[timeout:55];

{{dates="2016-02-23T00:00:00+8", "2016-03-07T00:00:00+8"}}
{{party=1041828}}

//union areas of study
@govvin
govvin / otq_area_mappers.md
Created March 8, 2016 03:03
mappers around a certain geographic coordinate
/**/
[out:csv(::user, ::uid)]
//[out:json][timeout:25]
[diff:"2016-02-22T00:00:00+8","2016-03-06T23:59:59+8"];

// adjust the search radius (in meters) here
{{radius=3000}}
@govvin
govvin / otq_mapathon_edits.md
Last active March 10, 2016 01:37
Mapathon edits

Useful query for mapathon edits.

Original query: http://overpass-turbo.eu/s/eTp

/*
Overpass Turbo Query for edits made during mapathons, and similar activities.

*/
@govvin
govvin / otq_manila_fire_brigades.md
Created May 9, 2016 07:26
Overpass Turbo query to gather fire stations, volunteer fire brigades, and fire hydrants in Manila.
/*
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
@govvin
govvin / otq_ql_manila_districts.txt
Created May 11, 2016 06:27
query Overpass Turbo for all districts of the city of Manila
[out:json];
area[name~"Manila"]["admin_level"=6]->.a;
rel["admin_level"=7](area.a);
out geom;
{{style:
node {
width: 0;
opacity:0;
fill-opacity:0;
@govvin
govvin / otq_ql_bus_routes.txt
Created May 11, 2016 10:59
Display Public Transport routes in given bbox
/*
This has been generated by the overpass-turbo wizard.
The original search was:
“route=bus”
*/
[out:json][timeout:25];
// gather results
(
// query part for: “route=bus”
node["route"="bus"]({{bbox}});
@govvin
govvin / otq_ql_querying_changes.md
Last active May 12, 2016 04:20
Overpass Turbo QL :: querying for changes

There are several ways to query for modifications using OverPass, with slightly varying results. Use wisely.

##Using diffs

//Overpass QL for querying results
//http://overpass-turbo.eu/s/b6e

//[out:csv(::lat,::lon,::type, ::version, ::user, place,name)]
[diff:"2016-05-07T00:00:00+8","2016-05-14T00:00:00+8"]; 
@govvin
govvin / overpass_turbo_tiles.md
Last active March 26, 2021 23:39
URIs of tiles that work with Overpass Turbo

#URIs that work with Overpass Turbo Go to Settings > Map and change the URI to your server of choice.

The default is: //{s}.tile.openstreetmap.org/{z}/{x}/{y}.png

The following tile servers also work:

  • Humanitarian: //{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png
  • Mapnik, Grayscale: //tiles.wmflabs.org/bw-mapnik/{z}/{x}/{y}.png
  • Thunderforest
@govvin
govvin / otq_barangay_townhalls.txt
Created March 4, 2017 02:38
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
(
@govvin
govvin / otq_maps.me_cleanup_streets_as_tourism
Created April 8, 2017 23:36
Overpass Turbo query to collect all nodes tagged as tourism=viewpoint OR tourism=attraction OR tourism=artwork with "street" or "st." in their names
/*
This has been generated by the overpass-turbo wizard.
The original search was:
“(tourism=viewpoint || tourism=attraction || tourism=artwork) && (name ~ /street$/i || name ~ /str[.]/i) && type:node in philippines”
*/
[out:json][timeout:250];
// fetch area “philippines” to search in
{{geocodeArea:philippines}}->.searchArea;
// gather results
(