Fix bicycle turn penalties

This commit is contained in:
Patrick Niklaus 2017-05-15 10:17:48 +00:00
parent 4f3a7c1ec3
commit 3131bffe11

View File

@ -544,6 +544,7 @@ function turn_function(turn)
turn.duration = turn.duration + profile.traffic_light_penalty
end
if properties.weight_name == 'cyclability' then
turn.weight = turn.duration
-- penalize turns from non-local access only segments onto local access only tags
if not turn.source_restricted and turn.target_restricted then
turn.weight = turn.weight + 3000