Skip to content

Instantly share code, notes, and snippets.

@y0n3l
Created March 8, 2012 13:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save y0n3l/2000981 to your computer and use it in GitHub Desktop.
Save y0n3l/2000981 to your computer and use it in GitHub Desktop.
OSM extract for motorways in Alpes-Maritimes using Overpass API. Can be used from http://overpass.osm.rambler.ru/query_form.html
<!-- Can be used at http://overpass.osm.rambler.ru/query_form.html to download the corresponding .osm file -->
<!-- Alpes-Maritimes relation is 7385. An area based on a relation has the id of the relation plus 3,600,000,000. -->
<area-query ref="3600007385" />
<!-- Get all ways from the resulting nodes -->
<recurse type="node-way"/>
<union>
<!-- Get only ways tagged with 'motorway' -->
<query type="way">
<item/>
<has-kv k="highway" v="motorway"/>
</query>
<!-- And get their nodes too -->
<recurse type="way-node"/>
</union>
<print/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment