Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
A query script for the Open Street Map API explorer at 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 type="way" into="hrp">
<recurse from="hr" type="relation-way"/>
<bbox-query {{bbox}}/>
<item set="hr"/>
<item set="hrp"/>
<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