Fix missing values and activate fallback names by default
This commit is contained in:
parent
6166d946f7
commit
de2f06970d
@ -91,6 +91,9 @@ surface_speeds = {
|
|||||||
["sand"] = 3
|
["sand"] = 3
|
||||||
}
|
}
|
||||||
|
|
||||||
|
traffic_signal_penalty = 2
|
||||||
|
use_turn_restrictions = false
|
||||||
|
|
||||||
local obey_oneway = true
|
local obey_oneway = true
|
||||||
local obey_bollards = false
|
local obey_bollards = false
|
||||||
local ignore_areas = true
|
local ignore_areas = true
|
||||||
@ -101,6 +104,7 @@ local turn_bias = 1.4
|
|||||||
-- local safety_penalty = 0.7
|
-- local safety_penalty = 0.7
|
||||||
local safety_penalty = 1.0
|
local safety_penalty = 1.0
|
||||||
local use_public_transport = true
|
local use_public_transport = true
|
||||||
|
local fallback_names = true
|
||||||
|
|
||||||
--modes
|
--modes
|
||||||
local mode_normal = 1
|
local mode_normal = 1
|
||||||
@ -210,11 +214,11 @@ function way_function (way, result)
|
|||||||
result.name = ref
|
result.name = ref
|
||||||
elseif name and "" ~= name then
|
elseif name and "" ~= name then
|
||||||
result.name = name
|
result.name = name
|
||||||
-- TODO find a better solution for encoding way type
|
-- TODO find a better solution for encoding way type
|
||||||
-- elseif highway then
|
elseif fallback_names and highway then
|
||||||
-- -- if no name exists, use way type
|
-- if no name exists, use way type
|
||||||
-- -- this encoding scheme is excepted to be a temporary solution
|
-- this encoding scheme is excepted to be a temporary solution
|
||||||
-- result.name = "{highway:"..highway.."}"
|
result.name = "{highway:"..highway.."}"
|
||||||
end
|
end
|
||||||
|
|
||||||
-- roundabout handling
|
-- roundabout handling
|
||||||
|
Loading…
Reference in New Issue
Block a user