Created
April 22, 2013 13:42
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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