osrm-backend/profiles/lib/access.lua

16 lines
307 B
Lua
Raw Normal View History

local ipairs = ipairs
local Access = {}
function Access.find_access_tag(source,access_tags_hierachy)
2013-06-26 13:40:25 -04:00
for i,v in ipairs(access_tags_hierachy) do
2014-08-27 12:10:04 -04:00
local tag = source:get_value_by_key(v)
2014-08-27 12:38:30 -04:00
if tag and tag ~= '' then
return tag
end
end
return ""
2014-08-27 12:10:04 -04:00
end
return Access