Remove {highway: type} fallback from bike / walk profile, fixes #3231

References:
- https://github.com/Project-OSRM/osrm-text-instructions/issues/62#issuecomment-257889721
- https://github.com/Project-OSRM/osrm-text-instructions/pull/63
This commit is contained in:
Daniel J. Hofmann
2016-11-08 12:55:32 +01:00
parent 9c11f4231c
commit ef2261661c
7 changed files with 16 additions and 27 deletions
-6
View File
@@ -106,7 +106,6 @@ local turn_bias = 1.4
-- local safety_penalty = 0.7
local safety_penalty = 1.0
local use_public_transport = true
local fallback_names = true
local function parse_maxspeed(source)
if not source then
@@ -214,11 +213,6 @@ function way_function (way, result)
-- name
if name and "" ~= name then
result.name = name
-- 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 expected to be a temporary solution
result.name = "{highway:"..highway.."}"
end
-- ref