-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Hi
I'm trying to add a switch to ignore_cycleway
This is because in Singapore most of our cycleways are non segregated and shared. Their speed limit is 25kmh but at certain times of the day, they are very crowded making it extremely unpleasant to ride. My guess is that cycleways in big cities will face similar issues. With the switch, the tourer can choose to avoid cycleways until outside of town and then switch back to 'normal' routing.
I tried to implement this by adding the following code segment
if ignore_cycleway -> assign hascycleway = false
if ( ignore_cycleway ) then false
# cycleway in both directions
else if and ( not cycleway= ) ( not cycleway=left|right|no|none|opposite|proposed|unknown ) then true
to replace line 174 of your original code
But it does not seem to work. Any idea why?
(I am testing on cheng san community club to Tuas lamp post 1. The route continues to use the PCN along Ang Mo Kio Ave 6 between Ang Mo Kio Ave 1 & Ang Mo Kio Ave 3 even though I set lefthandtraffic=true. By the way, was the profile supposed to ignore this cycleroute since it is on the opposite side of the road?)