add restricted penalty on NoTurn turns

This commit is contained in:
karenzshea
2017-03-01 13:50:53 -05:00
committed by Patrick Niklaus
parent b5c10b1fbf
commit 43bbe8f2ae
2 changed files with 35 additions and 6 deletions
+6 -6
View File
@@ -392,11 +392,11 @@ function turn_function (turn)
else
turn.weight = turn.duration
end
if properties.weight_name == 'routability' then
-- 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 + profile.restricted_penalty
end
end
end
if properties.weight_name == 'routability' then
-- 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 + profile.restricted_penalty
end
end
end