Skip to content

Instantly share code, notes, and snippets.

View govvin's full-sized avatar

거윈 | Win govvin

View GitHub Profile
@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_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_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_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_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_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_buildings_by_province.md
Created March 3, 2016 04:41
Count all buildings within a province

#Overpass Turbo Query Count all buildings within a province.

See: http://overpass-turbo.eu/s/eKL

/*count buildings by province*/

[out:csv(::"type",::"id", name, admin_level,::"count")];
@govvin
govvin / gtq_all_buildings.md
Last active March 1, 2016 14:12
Overpass Turbo Query all buildings within a given area

#Overpass Turbo Query Query all buildings within a named area. A polygon is required.

[out:xml];
{{AOI="San Juan"}}


(
 area["name"={{AOI}}];
@govvin
govvin / OTQ_event_edits_geocodearea.md
Created February 24, 2016 11:41
Query edits made in a geocoded region, by enumerated uids, within a date range. Perfect for events like mapathons and training workshops.

#Overpass Turbo Query

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

// set variables
{{dates="2016-02-22T00:00:00Z", "2016-02-25T23:59:59Z"}}
{{party=1041828}}
@govvin
govvin / OTQ_event_edits_bbox_by_uid.md
Last active April 27, 2017 11:14
Overpass Turbo Query for edits made during mapathons, and similar mapping events.

Overpass Turbo Query to return all edits made by users enumerated by UID, within a {{bbox}}.

Use http://whosthat.osmz.ru to determine OSM uid of users. UID is used, instead of usernames, to work around the possibility of users changing their names later on.

// set variables
{{dates="2017-04-26T00:00:00Z", "2017-04-27T23:59:59Z"}}
{{party=uid: 3529916, 3529870, 3091096, 3529864, 2734688, 1041828, 3529877, 3529856, 3529972, 3529907, 3529855}}
//{{party=user:}}