osrm-backend/profiles/lib/access.lua
2015-05-15 15:02:23 +02:00

16 lines
307 B
Lua

local ipairs = ipairs
local Access = {}
function Access.find_access_tag(source,access_tags_hierachy)
for i,v in ipairs(access_tags_hierachy) do
local tag = source:get_value_by_key(v)
if tag and tag ~= '' then
return tag
end
end
return ""
end
return Access