Skip to content

Instantly share code, notes, and snippets.

@CharlesNepote
Last active March 3, 2022 10:52
Show Gist options
  • Save CharlesNepote/9806b459d5f7ee671681e55b35cb0a81 to your computer and use it in GitHub Desktop.
Save CharlesNepote/9806b459d5f7ee671681e55b35cb0a81 to your computer and use it in GitHub Desktop.
All things interesting bicycle in OpenStreetMap #osm #overpass
/*
This has been generated by the overpass-turbo wizard.
The original search was:
“highway=cycleway or cycleway=lane or bicycle=designated or bicycle=yes or maxspeed=30 or highway=living_street or maxspeed=20 or "zone:maxspeed"="FR:20" or restriction:bicycle=give_way or barrier=cycle_barrier or amenity=bicycle_parking or amenity=bicycle_rental or amenity=bicycle_repair_station or shop=bicycle or amenity=compressed_air or amenity=drinking_water or drinking_water=yes or surface=cobblestone or surface=sett or surface=metal or surface=metal_grid or surface=mud or traffic_calming=* or recycling:glass_bottles=yes or recycling:glass=yes or incline~="[1-9]+.*" or highway=steps or bicycle=no or highway=motorway”
*/
[out:json][timeout:125];
// gather results
(
// query part for: “highway=cycleway”
node["highway"="cycleway"]({{bbox}});
way["highway"="cycleway"]({{bbox}});
relation["highway"="cycleway"]({{bbox}});
// query part for: “cycleway=lane”
node["cycleway"="lane"]({{bbox}});
way["cycleway"="lane"]({{bbox}});
relation["cycleway"="lane"]({{bbox}});
// query part for: “bicycle=designated”
node["bicycle"="designated"]({{bbox}});
way["bicycle"="designated"]({{bbox}});
relation["bicycle"="designated"]({{bbox}});
// query part for: “bicycle=yes”
node["bicycle"="yes"]({{bbox}});
way["bicycle"="yes"]({{bbox}});
relation["bicycle"="yes"]({{bbox}});
// query part for: “maxspeed=30”
node["maxspeed"="30"]({{bbox}});
way["maxspeed"="30"]({{bbox}});
relation["maxspeed"="30"]({{bbox}});
// query part for: “highway=living_street”
node["highway"="living_street"]({{bbox}});
way["highway"="living_street"]({{bbox}});
relation["highway"="living_street"]({{bbox}});
// query part for: “maxspeed=20”
node["maxspeed"="20"]({{bbox}});
way["maxspeed"="20"]({{bbox}});
relation["maxspeed"="20"]({{bbox}});
// query part for: “"zone:maxspeed"="FR:20"”
node["zone:maxspeed"="FR:20"]({{bbox}});
way["zone:maxspeed"="FR:20"]({{bbox}});
relation["zone:maxspeed"="FR:20"]({{bbox}});
// query part for: “"restriction:bicycle"=give_way”
node["restriction:bicycle"="give_way"]({{bbox}});
way["restriction:bicycle"="give_way"]({{bbox}});
relation["restriction:bicycle"="give_way"]({{bbox}});
// query part for: “barrier=cycle_barrier”
node["barrier"="cycle_barrier"]({{bbox}});
way["barrier"="cycle_barrier"]({{bbox}});
relation["barrier"="cycle_barrier"]({{bbox}});
// query part for: “amenity=bicycle_parking”
node["amenity"="bicycle_parking"]({{bbox}});
way["amenity"="bicycle_parking"]({{bbox}});
relation["amenity"="bicycle_parking"]({{bbox}});
// query part for: “amenity=bicycle_rental”
node["amenity"="bicycle_rental"]({{bbox}});
way["amenity"="bicycle_rental"]({{bbox}});
relation["amenity"="bicycle_rental"]({{bbox}});
// query part for: “amenity=bicycle_repair_station”
node["amenity"="bicycle_repair_station"]({{bbox}});
way["amenity"="bicycle_repair_station"]({{bbox}});
relation["amenity"="bicycle_repair_station"]({{bbox}});
// query part for: “shop=bicycle”
node["shop"="bicycle"]({{bbox}});
way["shop"="bicycle"]({{bbox}});
relation["shop"="bicycle"]({{bbox}});
// query part for: “amenity=compressed_air”
node["amenity"="compressed_air"]({{bbox}});
way["amenity"="compressed_air"]({{bbox}});
relation["amenity"="compressed_air"]({{bbox}});
// query part for: “amenity=drinking_water”
node["amenity"="drinking_water"]({{bbox}});
way["amenity"="drinking_water"]({{bbox}});
relation["amenity"="drinking_water"]({{bbox}});
// query part for: “drinking_water=yes”
node["drinking_water"="yes"]({{bbox}});
way["drinking_water"="yes"]({{bbox}});
relation["drinking_water"="yes"]({{bbox}});
// query part for: “surface=cobblestone”
node["surface"="cobblestone"]({{bbox}});
way["surface"="cobblestone"]({{bbox}});
relation["surface"="cobblestone"]({{bbox}});
// query part for: “surface=sett”
node["surface"="sett"]({{bbox}});
way["surface"="sett"]({{bbox}});
relation["surface"="sett"]({{bbox}});
// query part for: “surface=metal”
node["surface"="metal"]({{bbox}});
way["surface"="metal"]({{bbox}});
relation["surface"="metal"]({{bbox}});
// query part for: “surface=metal_grid”
node["surface"="metal_grid"]({{bbox}});
way["surface"="metal_grid"]({{bbox}});
relation["surface"="metal_grid"]({{bbox}});
// query part for: “surface=mud”
node["surface"="mud"]({{bbox}});
way["surface"="mud"]({{bbox}});
relation["surface"="mud"]({{bbox}});
// query part for: “traffic_calming=*”
node["traffic_calming"]({{bbox}});
way["traffic_calming"]({{bbox}});
relation["traffic_calming"]({{bbox}});
// query part for: “"recycling:glass_bottles"=yes”
node["recycling:glass_bottles"="yes"]({{bbox}});
way["recycling:glass_bottles"="yes"]({{bbox}});
relation["recycling:glass_bottles"="yes"]({{bbox}});
// query part for: “"recycling:glass"=yes”
node["recycling:glass"="yes"]({{bbox}});
way["recycling:glass"="yes"]({{bbox}});
relation["recycling:glass"="yes"]({{bbox}});
// query part for: “incline~/[1-9]+.[…]”
node["incline"~"[1-9]+.*"]({{bbox}});
way["incline"~"[1-9]+.*"]({{bbox}});
relation["incline"~"[1-9]+.*"]({{bbox}});
// query part for: “highway=steps”
node["highway"="steps"]({{bbox}});
way["highway"="steps"]({{bbox}});
relation["highway"="steps"]({{bbox}});
// query part for: “bicycle=no”
node["bicycle"="no"]({{bbox}});
way["bicycle"="no"]({{bbox}});
relation["bicycle"="no"]({{bbox}});
// query part for: “highway=motorway”
node["highway"="motorway"]({{bbox}});
way["highway"="motorway"]({{bbox}});
relation["highway"="motorway"]({{bbox}});
);
// print results
out body;
>;
out skel qt;
{{style:
node, area
{ color:white; fill-color:white; }
node[traffic_calming=*],
area[traffic_calming=*],
node[surface=cobblestone],
way[surface=cobblestone],
area[surface=cobblestone],
node[surface=cobblestone:flattened],
way[surface=cobblestone:flattened],
area[surface=cobblestone:flattened],
node[surface=sett],
way[surface=sett],
area[surface=sett],
node[surface=metal],
way[surface=metal],
area[surface=metal],
node[surface=metal_grid],
way[surface=metal_grid],
area[surface=metal_grid],
node[surface=mud],
way[surface=mud],
area[surface=mud],
node[recycling:glass_bottles=yes],
area[recycling:glass_bottles=yes],
node[recycling:glass=yes],
area[recycling:glass=yes],
node[highway=steps],
way[highway=steps],
area[highway=steps]
{ color:orange; fill-color:orange; }
node[bicycle=no],
way[bicycle=no],
area[bicycle=no],
node[highway=motorway],
way[highway=motorway],
area[highway=motorway]
{ color:red; fill-color:red; }
node[cycleway=asl],
area[cycleway=asl],
node[restriction:bicycle=give_way],
node[barrier=cycle_barrier],
area[barrier=cycle_barrier],
node[amenity=bicycle_parking],
area[amenity=bicycle_parking],
node[amenity=bicycle_rental],
area[amenity=bicycle_rental],
node[shop=bicycle],
area[shop=bicycle],
node[amenity=bicycle_repair_station],
node[amenity=compressed_air],
area[amenity=compressed_air],
node[amenity=drinking_water],
node[drinking_water=yes]
{ color:blue; fill-color:blue; }
node[highway=cycleway],
way[highway=cycleway],
area[highway=cycleway],
node[cycleway=lane],
way[cycleway=lane],
area[cycleway=lane],
node[bicycle=designated],
way[bicycle=designated],
area[bicycle=designated],
node[bicycle=yes],
way[bicycle=yes],
area[bicycle=yes]
{ color:black; fill-color: black; }
}}
@joelgombin
Copy link

Pourquoi tu inclus le recyclage du verre ?

@CharlesNepote
Copy link
Author

@joelgombin je découvre ton commentaire par hasard, 2 ans après :(

Réponse : à Marseille certaines bennes de recyclage sont placées à quelques cm (!) de pistes cyclables :
=> immanquables bris de verre => crevaisons. Positionner les bennes permet de se rendre compte de cette problématique.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment