Skip to content

Instantly share code, notes, and snippets.

@d3netxer
Last active July 13, 2016 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save d3netxer/7dcd9696f7cb842aee87bbfc8605929d to your computer and use it in GitHub Desktop.
Save d3netxer/7dcd9696f7cb842aee87bbfc8605929d to your computer and use it in GitHub Desktop.
Time-based OverPass query on Daadab and Dollo Ado Refugee Camps

Daadab and Dollo Ado Refugee Camps were mapped in May 2012 http://www.disruptivegeo.com/2012/05/imagery-to-the-crowd-early-results/

Here are the OverPass Turbo queries to extract the buildings, roads, and POIs done during that time.

Roads

[diff:"2010-05-01T15:00:00Z","2012-07-01T15:00:00Z"];
(
  // get all roads
 way[highway]({{bbox}});
);
out body;
>;
out skel qt;

Buildings

[diff:"2012-05-01T15:00:00Z","2012-07-01T15:00:00Z"];
(
 // get all buildings
 way[building]({{bbox}});
);
out body;
>;
out skel qt;

This queries allows you to get non-way POIs, but I haven't tried making it into a time-based query as well

<osm-script output="json">
  <query type="way">
    <bbox-query {{bbox}}/>
  </query>
  <recurse type="way-node" into="waynodes"/>
  <query type="node" into="allnodes">
    <bbox-query {{bbox}}/>
  </query>
  <difference>
    <item set="allnodes"/>
    <item set="waynodes"/>
  </difference>
  <print/>
</osm-script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment