Fix bicycle turn penalties

This commit is contained in:
Patrick Niklaus 2017-05-15 10:17:48 +00:00 committed by Patrick Niklaus
parent 4294295242
commit 7d42e18479

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