Skip to content

Instantly share code, notes, and snippets.

@ole
Created April 22, 2013 13:42
Show Gist options
  • Save ole/5434952 to your computer and use it in GitHub Desktop.
Save ole/5434952 to your computer and use it in GitHub Desktop.
A query script for the Open Street Map API explorer at http://overpass-turbo.eu/ to render all the cycle routes in the current map bounding box.
<query type="relation" into="hr">
<has-kv k="route" v="bicycle"/>
<bbox-query {{bbox}}/>
</query>
<query type="way" into="hrp">
<recurse from="hr" type="relation-way"/>
<bbox-query {{bbox}}/>
</query>
<union>
<item set="hr"/>
<item set="hrp"/>
</union>
<print mode="body" order="quadtile"/>
<recurse from="hrp" type="way-node"/>
<print mode="skeleton" order="quadtile"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment