Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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