Skip to content

Instantly share code, notes, and snippets.

@govvin
Last active March 10, 2016 01:37
Show Gist options
  • Save govvin/2a81c880d34c6212ee45 to your computer and use it in GitHub Desktop.
Save govvin/2a81c880d34c6212ee45 to your computer and use it in GitHub Desktop.
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.

*/
// set variables
{{data:overpass,server=http://dev.overpass-api.de/api_mmd/}}
{{dates="2016-01-23T00:00:00+8", "2016-01-23T23:59:59+8"}}
{{party=uid: 900923, 3089153, 3556440, 3556185, 3556439, 3556479, 3544516, 3556432, 3311525, 2470038, 3554468, 3556437, 3556230, 462835, 3541366, 243492, 3556436, 3556428, 3556470, 3542223, 3556433, 3556410, 1981886, 3556485, 3556429, 3556444, 3556177, 3556467, 3556430, 3556421, 3556447}}

[out:json][timeout:200];

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

(
  node.EventEdits({{party}});
  way.EventEdits({{party}});
);
out meta;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment