Skip to content

Instantly share code, notes, and snippets.

@vgeorge
Created January 15, 2015 19:54
Show Gist options
  • Save vgeorge/0acbe5a1e361d16c7d55 to your computer and use it in GitHub Desktop.
Save vgeorge/0acbe5a1e361d16c7d55 to your computer and use it in GitHub Desktop.
Overpass query for bicycle infrastructure
/*
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