Created
January 15, 2015 19:54
-
-
Save vgeorge/0acbe5a1e361d16c7d55 to your computer and use it in GitHub Desktop.
Overpass query for bicycle infrastructure
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
/* | |
This shows cycleways, cycleroutes and other bicycle infra-structure. | |
*/ | |
[out:json]; | |
( | |
// Get cycle route relations | |
relation[route=bicycle]({{bbox}})->.cr; | |
// Get cycleways | |
way[highway=cycleway]({{bbox}}); | |
// Cycleways on road streets | |
way[highway]["cycleway:left"=lane]({{bbox}}); | |
way[highway]["cycleway:right"=lane]({{bbox}}); | |
// The convention is to use highway="path", | |
// but get all highways with bicycle=designated | |
//way[highway=path][bicycle=designated]({{bbox}}); | |
way[highway][bicycle=designated]({{bbox}}); | |
node[amenity=bicycle_parking]({{bbox}}); | |
node[amenity=bicycle_rental]({{bbox}}); | |
node[amenity=fuel]({{bbox}}); | |
node[shop=bicycle]({{bbox}}); | |
); | |
out body; | |
>; | |
out skel qt; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment