Implements Exit Numbers + Names (junction:ref way tag for now)

This commit is contained in:
Daniel J. Hofmann
2017-06-29 22:12:25 +02:00
committed by Patrick Niklaus
parent 6d78c11fd2
commit 7d900e3b5a
27 changed files with 160 additions and 30 deletions
+1 -1
View File
@@ -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
+5
View File
@@ -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