Skip to content

Instantly share code, notes, and snippets.

@govvin
Last active May 14, 2018 03:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save govvin/873a0999ccfc1f466846fe6c8ce7b0cb to your computer and use it in GitHub Desktop.
Save govvin/873a0999ccfc1f466846fe6c8ce7b0cb to your computer and use it in GitHub Desktop.
Overpass Turbo Query: Find contributors within an AOI, within a certain date range
/*
Find contributors within an AOI, within
a certain date range
source: http://overpass-turbo.eu/s/xjo
author: https://t.me/GOwin
*/
[out:csv(::user, ::uid, ::timestamp)]
//[out:json][timeout:25]
[diff:"2017-01-01T00:00:00+8","2018-03-24T23:59:59+8"];
// adjust the search radius (in meters) here
{{radius=3000}}
{{aoi=geocodeArea: Davao City Philippines}}
// gather results
(
/* use geocodeCoords
node(around:{{radius}},{{{{aoi}}}});
way(around:{{radius}},{{{{aoi}}}});
*/
/* use bbox */
node({{bbox}}); way({{bbox}});
);
// print results
out meta;
/*
Save the delimited text, and do the followinng from a terminal:
cat my_delimited.txt | sort | uniq -c | sort -nr
to get a sorted list of mappers, based on their edits.
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment