Use lua 5.2+ without needing compatibility flags.

This commit is contained in:
Lauren Budorick
2015-05-01 14:06:45 -04:00
committed by Patrick Niklaus
parent 407036e215
commit 566ab993df
5 changed files with 24 additions and 26 deletions
+4 -3
View File
@@ -1,7 +1,8 @@
-- Foot profile
require("lib/access")
local find_access_tag = require("lib/access").find_access_tag
-- Begin of globals
barrier_whitelist = { [""] = true, ["cycle_barrier"] = true, ["bollard"] = true, ["entrance"] = true, ["cattle_grid"] = true, ["border_control"] = true, ["toll_booth"] = true, ["sally_port"] = true, ["gate"] = true, ["no"] = true}
access_tag_whitelist = { ["yes"] = true, ["foot"] = true, ["permissive"] = true, ["designated"] = true }
access_tag_blacklist = { ["no"] = true, ["private"] = true, ["agricultural"] = true, ["forestery"] = true }
@@ -75,7 +76,7 @@ end
function node_function (node, result)
local barrier = node:get_value_by_key("barrier")
local access = Access.find_access_tag(node, access_tags_hierachy)
local access = find_access_tag(node, access_tags_hierachy)
local traffic_signal = node:get_value_by_key("highway")
-- flag node if it carries a traffic light
@@ -125,7 +126,7 @@ function way_function (way, result)
end
-- access
local access = Access.find_access_tag(way, access_tags_hierachy)
local access = find_access_tag(way, access_tags_hierachy)
if access_tag_blacklist[access] then
return
end