Implements Exit Numbers + Names (junction:ref way tag for now)
This commit is contained in:
committed by
Patrick Niklaus
parent
6d78c11fd2
commit
7d900e3b5a
+1
-1
@@ -347,7 +347,7 @@ function way_function(way, result)
|
||||
-- check whether forward/backward directions are routable
|
||||
'handle_oneway',
|
||||
|
||||
-- check whether forward/backward directions are routable
|
||||
-- check a road's destination
|
||||
'handle_destinations',
|
||||
|
||||
-- check whether we're using a special transport mode
|
||||
|
||||
@@ -32,6 +32,7 @@ function Handlers.handle_names(way,result,data,profile)
|
||||
local name = way:get_value_by_key("name")
|
||||
local pronunciation = way:get_value_by_key("name:pronunciation")
|
||||
local ref = way:get_value_by_key("ref")
|
||||
local exits = way:get_value_by_key("junction:ref")
|
||||
|
||||
-- Set the name that will be used for instructions
|
||||
if name then
|
||||
@@ -45,6 +46,10 @@ function Handlers.handle_names(way,result,data,profile)
|
||||
if pronunciation then
|
||||
result.pronunciation = pronunciation
|
||||
end
|
||||
|
||||
if exits then
|
||||
result.exits = exits
|
||||
end
|
||||
end
|
||||
|
||||
-- junctions
|
||||
|
||||
Reference in New Issue
Block a user