Add switch for handling fallback name
This commit is contained in:
parent
a95bf64ccf
commit
a1e273e983
@ -65,8 +65,9 @@ leisure_speeds = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
traffic_signal_penalty = 2
|
traffic_signal_penalty = 2
|
||||||
u_turn_penalty = 2
|
u_turn_penalty = 2
|
||||||
use_turn_restrictions = false
|
use_turn_restrictions = false
|
||||||
|
local fallback_names = true
|
||||||
|
|
||||||
--modes
|
--modes
|
||||||
local mode_normal = 1
|
local mode_normal = 1
|
||||||
@ -154,7 +155,7 @@ 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
|
||||||
elseif highway then
|
elseif highway and fallback_names then
|
||||||
result.name = "{highway:"..highway.."}" -- if no name exists, use way type
|
result.name = "{highway:"..highway.."}" -- 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
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user