From de2f06970d291536a2a9b779a4c4db8bc1fb715f Mon Sep 17 00:00:00 2001 From: Patrick Niklaus Date: Sat, 16 May 2015 14:36:32 +0200 Subject: [PATCH] Fix missing values and activate fallback names by default --- profiles/bicycle.lua | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/profiles/bicycle.lua b/profiles/bicycle.lua index 2781cc404..aaf29d28c 100644 --- a/profiles/bicycle.lua +++ b/profiles/bicycle.lua @@ -91,6 +91,9 @@ surface_speeds = { ["sand"] = 3 } +traffic_signal_penalty = 2 +use_turn_restrictions = false + local obey_oneway = true local obey_bollards = false local ignore_areas = true @@ -101,6 +104,7 @@ local turn_bias = 1.4 -- local safety_penalty = 0.7 local safety_penalty = 1.0 local use_public_transport = true +local fallback_names = true --modes local mode_normal = 1 @@ -210,11 +214,11 @@ function way_function (way, result) result.name = ref elseif name and "" ~= name then result.name = name --- TODO find a better solution for encoding way type --- elseif highway then --- -- if no name exists, use way type --- -- this encoding scheme is excepted to be a temporary solution --- result.name = "{highway:"..highway.."}" + -- TODO find a better solution for encoding way type + elseif fallback_names and highway then + -- if no name exists, use way type + -- this encoding scheme is excepted to be a temporary solution + result.name = "{highway:"..highway.."}" end -- roundabout handling