Skip to content

Instantly share code, notes, and snippets.

@govvin
Created February 24, 2016 11:41
Show Gist options
  • Save govvin/591801fbd2327f18bdc1 to your computer and use it in GitHub Desktop.
Save govvin/591801fbd2327f18bdc1 to your computer and use it in GitHub Desktop.
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}}

[out:json][timeout:500];

// query changes made within a region, within date range
(
  {{geocodeArea:Caraga, Philippines}}->.searchArea;
  node(changed:{{dates}})(area.searchArea);
  way(changed:{{dates}})(area.searchArea);
)->.EventEdits;

// filter edits made by the party
(
  node.EventEdits(uid: {{party}});
  way.EventEdits(uid: {{party}});
);
out meta;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment