Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.