Skip to content

Instantly share code, notes, and snippets.

@govvin
Created March 8, 2016 02:58
Show Gist options
  • Save govvin/918ac4732b017fc2f2b3 to your computer and use it in GitHub Desktop.
Save govvin/918ac4732b017fc2f2b3 to your computer and use it in GitHub Desktop.
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
(
  {{geocodeArea:Agusan del Sur}};
  {{geocodeArea:Surigao del Sur}};
)->.searchArea;

//gather data
(
  node(changed:{{dates}})(area.searchArea);
  way(changed:{{dates}})(area.searchArea);

)->.Edits;

//filter
(
  node.Edits(uid:{{party}});
  way.Edits(uid:{{party}});

);

out body;
>;
out skel qt;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment