mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +07:00
osrm startup helpers added
This commit is contained in:
parent
d9f83425f6
commit
eb091cc1a4
14 changed files with 1928 additions and 0 deletions
15
osrm/lib/access.lua
Normal file
15
osrm/lib/access.lua
Normal file
|
@ -0,0 +1,15 @@
|
|||
local ipairs = ipairs
|
||||
|
||||
local Access = {}
|
||||
|
||||
function Access.find_access_tag(source,access_tags_hierarchy)
|
||||
for i,v in ipairs(access_tags_hierarchy) do
|
||||
local tag = source:get_value_by_key(v)
|
||||
if tag then
|
||||
return tag
|
||||
end
|
||||
end
|
||||
return nil
|
||||
end
|
||||
|
||||
return Access
|
Loading…
Add table
Add a link
Reference in a new issue