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
-5
View File
@@ -70,8 +70,6 @@ properties.max_speed_for_map_matching = 40/3.6 -- kmph -> m/s
properties.use_turn_restrictions = false
properties.continue_straight_at_waypoint = false
local fallback_names = true
function get_restrictions(vector)
for i,v in ipairs(restrictions) do
vector:Add(v)
@@ -153,9 +151,6 @@ function way_function (way, result)
-- name
if name and "" ~= name then
result.name = name
elseif highway and fallback_names then
result.name = "{highway:"..highway.."}" -- if no name exists, use way type
-- this encoding scheme is excepted to be a temporary solution
end
if ref and "" ~= ref then
result.ref = ref