osrm-backend/profiles/lib/access.lua

13 lines
268 B
Lua
Raw Normal View History

local ipairs = ipairs
module "Access"
function find_access_tag(source,access_tags_hierachy)
2013-06-26 13:40:25 -04:00
for i,v in ipairs(access_tags_hierachy) do
2013-06-26 13:50:07 -04:00
local tag = source.tags:Find(v)
if tag ~= '' then
return tag
end
end
return nil
end