You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assign traffic_cost
# many pedestrians but no cars expected
if or and highway=pedestrian ( not segregated=yes )
( highway=platform|corridor )
then traffic_tier1
# anything without motor vehicles is fine
else if not any_motoraccess then 0.0
else if low_traffic then 0.0
# 3+ lanes = lots of expected traffic
else if and ( and oneway=yes|true|1|-1 lanes=3|4|5|6|7 ) ( not hascycleway ) then traffic_tier5
else if and lanes=5|6|7 ( not hascycleway ) then traffic_tier5
# no one likes HGVs (Heavy Goods Vehicle)
else if hgv=designated then traffic_tier5
# wild traffic guesses based on roadtype only
else if not hascycleway then
if highway=motorway|motorway_link|trunk|trunk_link then traffic_tier6
else if highway=primary|primary_link then traffic_tier5
else if highway=secondary|secondary_link then traffic_tier4
else if highway=tertiary|tertiary_link then traffic_tier3
else if highway=residential|mini_roundabout|road|unclassified then traffic_tier2
else 0.0
else if hascycleway then
if highway=motorway|motorway_link|trunk|trunk_link|primary|primary_link|secondary|secondary_link then traffic_tier2
else if highway=tertiary|tertiary_link then traffic_tier1
else 0.0
else 0.0
(By the way, I also increased initialcost_waypreference from 100 to 140 (the route was turning into a tertiary road and then turning back to the same secondary road after a few hundred meters. See cheng san community club to tuas lamp post 1 along tuas south ave 5).
factor in the pseudo traffic tags from brouter for traffic penalty
The text was updated successfully, but these errors were encountered: