Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save definiteIymaybe/83870e89f39ee4bfb7b39b321742103f to your computer and use it in GitHub Desktop.
Save definiteIymaybe/83870e89f39ee4bfb7b39b321742103f to your computer and use it in GitHub Desktop.
osm edits since a data/time
#
Simply modify the three following strings for node, ways and relations
newer than="2013-05-28T00:00:00Z
This script is for statistics. For example, it does not extract all nodes from a way if only one node is modified, since the way object and other nodes are not affected.
If you want only the nodes, you only keep the first section of the script where the nodes are extracted.
The polygon-query bounds is to clip the CAP103 area, extracting info only for this area.
url of overpass : http://overpass-api.de/query_form.html
This is a lot faster then overpass-turbo and automatically downloads the osm file of the result. if wanted then convert to geojson using osmtogeojson
enter the below into the overpass query form.
======
<osm-script timeout="3600">
<union into="_">
<query into="_" type="node">
<newer than="2017-06-10T00:00:00Z"/>
<polygon-query bounds="16.713151157567154 94.64447021484375 16.713151157567154 94.82780456542969 16.929391324813995 94.82780456542969 16.929391324813995 94.64447021484375 16.713151157567154 94.64447021484375" into="_"/>
</query>
</union>
<print from="_" limit="" mode="meta" order="id"/>
<union into="_">
<query into="_" type="way">
<newer than="2017-06-10T00:00:00Z"/>
<polygon-query bounds="16.713151157567154 94.64447021484375 16.713151157567154 94.82780456542969 16.929391324813995 94.82780456542969 16.929391324813995 94.64447021484375 16.713151157567154 94.64447021484375" into="_"/>
</query>
</union>
<print from="_" limit="" mode="meta" order="id"/>
<union into="_">
<query into="_" type="relation">
<newer than="2017-06-10T00:00:00Z"/>
<polygon-query bounds="16.713151157567154 94.64447021484375 16.713151157567154 94.82780456542969 16.929391324813995 94.82780456542969 16.929391324813995 94.64447021484375 16.713151157567154 94.64447021484375" into="_"/>
</query>
</union>
<print from="_" limit="" mode="meta" order="id"/>
</osm-script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment