ignore impassable ways, requested by HOT
This commit is contained in:
parent
2bd1e46ab9
commit
99e9d0d023
@ -101,6 +101,16 @@ function way_function (way)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local impassable = way.tags:Find("impassable")
|
||||||
|
if "yes" == impassable then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
local status = way.tags:Find("status")
|
||||||
|
if "impassable" == status then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
-- Check if we are allowed to access the way
|
-- Check if we are allowed to access the way
|
||||||
local access = Access.find_access_tag(way, access_tags_hierachy)
|
local access = Access.find_access_tag(way, access_tags_hierachy)
|
||||||
if access_tag_blacklist[access] then
|
if access_tag_blacklist[access] then
|
||||||
@ -121,7 +131,6 @@ function way_function (way)
|
|||||||
local duration = way.tags:Find("duration")
|
local duration = way.tags:Find("duration")
|
||||||
local service = way.tags:Find("service")
|
local service = way.tags:Find("service")
|
||||||
|
|
||||||
|
|
||||||
-- Set the name that will be used for instructions
|
-- Set the name that will be used for instructions
|
||||||
if "" ~= ref then
|
if "" ~= ref then
|
||||||
way.name = ref
|
way.name = ref
|
||||||
|
Loading…
Reference in New Issue
Block a user