---context:global assign downhillcost 80 assign downhillcutoff 0.1 assign uphillcost 80 assign uphillcutoff 1 assign validForBikes 1 assign validForCars 0 assign pass1coefficient 2 assign pass2coefficient 0 ---context:way assign any_cycleroute or route_bicycle_icn=yes or route_bicycle_ncn=yes or route_bicycle_rcn=yes route_bicycle_lcn=yes assign nodeaccessgranted or any_cycleroute lcn=yes assign turncost 100 assign initialcost switch route=ferry 15000 switch or highway=cycleway and highway=path bicycle=designated 100 0 assign oneway switch oneway= junction=roundabout or oneway=yes or oneway=true oneway=1 assign onewaypenalty switch switch reversedirection=yes oneway oneway=-1 switch or cycleway=opposite or cycleway=opposite_lane or cycleway=opposite_track oneway:bicycle=no 0 switch or highway=primary highway=primary_link 50 switch or highway=secondary highway=secondary_link 30 switch or highway=tertiary highway=tertiary_link 25 20.0 0.0 assign defaultaccess switch access= not motorroad=yes switch or access=private access=no 0 1 assign bikeaccess or any_cycleroute switch bicycle= switch vehicle= defaultaccess switch or vehicle=private vehicle=no 0 1 not or bicycle=private or bicycle=no bicycle=dismount assign footaccess or bikeaccess or bicycle=dismount switch foot= defaultaccess not or foot=private foot=no assign accesspenalty switch bikeaccess 0 switch footaccess 15 100000 assign speedpenalty switch maxspeed=10 4 switch maxspeed=20 0.8 switch maxspeed=30 0.3 switch maxspeed=50 0.2 0 assign surfacepenalty switch or surface=asphalt surface=paved 0 switch or surface=concrete surface=paving_stones 0.4 switch or surface=cobblestone or surface=fine_gravel surface=compacted 4 switch or surface=gravel or surface=sand surface=pebblestone 35 switch or surface=ground or surface=grass or surface=unpaved surface=dirt 75 0 assign costfactor add onewaypenalty add accesspenalty add speedpenalty add surfacepenalty switch and highway= not route=ferry 100000 switch or highway=proposed or highway=construction highway=abandoned 100000 switch or highway=motorway highway=motorway_link 100000 switch route=ferry 10 switch or highway=trunk highway=trunk_link 3 switch or highway=primary highway=primary_link 5 switch or highway=secondary highway=secondary_link 1 switch or highway=tertiary highway=tertiary_link 1 switch highway=unclassified 1 switch or highway=residential highway=service 1.4 switch highway=track switch tracktype=grade1 1.7 switch tracktype=grade2 7 switch tracktype=grade3 40 switch tracktype=grade4 50 switch tracktype=grade5 50 20 switch highway=cycleway 1.3 switch highway=living_street 4 switch highway=road 7 switch highway=footway 15 switch highway=pedestrian 15 switch highway=steps 20 switch highway=path switch bicycle=designated switch surface= 20 1.3 40 switch highway=bridleway 80 20 ---context:node # following code refers to node tags assign defaultaccess switch access= 1 # add default barrier restrictions here! switch or access=private access=no 0 1 assign bikeaccess or nodeaccessgranted=yes switch bicycle= switch vehicle= defaultaccess switch or vehicle=private vehicle=no 0 1 switch or bicycle=private or bicycle=no bicycle=dismount 0 1 assign footaccess or bicycle=dismount switch foot= defaultaccess switch or foot=private foot=no 0 1 assign initialcost add switch highway=traffic_signals 250 switch highway=stop 200 switch or railway=crossing railway=level_crossing 1000 0 switch bikeaccess 0 switch footaccess 10000 1000000