Fix bicycle turn penalties
This commit is contained in:
parent
4294295242
commit
7d42e18479
@ -544,6 +544,7 @@ function turn_function(turn)
|
|||||||
turn.duration = turn.duration + profile.traffic_light_penalty
|
turn.duration = turn.duration + profile.traffic_light_penalty
|
||||||
end
|
end
|
||||||
if properties.weight_name == 'cyclability' then
|
if properties.weight_name == 'cyclability' then
|
||||||
|
turn.weight = turn.duration
|
||||||
-- penalize turns from non-local access only segments onto local access only tags
|
-- penalize turns from non-local access only segments onto local access only tags
|
||||||
if not turn.source_restricted and turn.target_restricted then
|
if not turn.source_restricted and turn.target_restricted then
|
||||||
turn.weight = turn.weight + 3000
|
turn.weight = turn.weight + 3000
|
||||||
|
Loading…
Reference in New Issue
Block a user