From 3131bffe110da0fc7cf5a2ccbf63bdf0faa2d015 Mon Sep 17 00:00:00 2001 From: Patrick Niklaus Date: Mon, 15 May 2017 10:17:48 +0000 Subject: [PATCH] Fix bicycle turn penalties --- profiles/bicycle.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/profiles/bicycle.lua b/profiles/bicycle.lua index d6db0739e..8925a7664 100644 --- a/profiles/bicycle.lua +++ b/profiles/bicycle.lua @@ -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