cleanup indentation of lua profiles
This commit is contained in:
parent
a5232f857e
commit
762dd17512
@ -1,7 +1,7 @@
|
||||
require("lib/access")
|
||||
|
||||
-- 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}
|
||||
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, ["permissive"] = true, ["designated"] = true }
|
||||
access_tag_blacklist = { ["no"] = true, ["private"] = true, ["agricultural"] = true, ["forestery"] = true }
|
||||
access_tag_restricted = { ["destination"] = true, ["delivery"] = true }
|
||||
@ -187,8 +187,9 @@ function way_function (way)
|
||||
elseif "" ~= name then
|
||||
way.name = name
|
||||
else
|
||||
way.name = "{highway:"..highway.."}" -- if no name exists, use way type
|
||||
-- if no name exists, use way type
|
||||
-- this encoding scheme is excepted to be a temporary solution
|
||||
way.name = "{highway:"..highway.."}"
|
||||
end
|
||||
|
||||
-- roundabout handling
|
||||
@ -346,8 +347,6 @@ function way_function (way)
|
||||
way.backward_speed = maxspeed_backward
|
||||
end
|
||||
|
||||
|
||||
|
||||
way.type = 1
|
||||
return 1
|
||||
end
|
||||
|
@ -1,7 +1,7 @@
|
||||
-- Begin of globals
|
||||
--require("lib/access") --function temporarily inlined
|
||||
|
||||
barrier_whitelist = { ["cattle_grid"] = true, ["border_control"] = true, ["toll_booth"] = true, ["sally_port"] = true, ["gate"] = true, ["no"] = true, ["entrance"] = true}
|
||||
barrier_whitelist = { ["cattle_grid"] = true, ["border_control"] = true, ["toll_booth"] = true, ["sally_port"] = true, ["gate"] = true, ["no"] = true, ["entrance"] = true }
|
||||
access_tag_whitelist = { ["yes"] = true, ["motorcar"] = true, ["motor_vehicle"] = true, ["vehicle"] = true, ["permissive"] = true, ["designated"] = true }
|
||||
access_tag_blacklist = { ["no"] = true, ["private"] = true, ["agricultural"] = true, ["forestry"] = true, ["emergency"] = true }
|
||||
access_tag_restricted = { ["destination"] = true, ["delivery"] = true }
|
||||
@ -202,7 +202,7 @@ function way_function (way)
|
||||
elseif "" ~= name then
|
||||
way.name = name
|
||||
-- else
|
||||
-- way.name = highway -- if no name exists, use way type
|
||||
-- way.name = highway -- if no name exists, use way type
|
||||
end
|
||||
|
||||
if "roundabout" == junction then
|
||||
@ -229,8 +229,7 @@ function way_function (way)
|
||||
oneway == "true" or
|
||||
junction == "roundabout" or
|
||||
(highway == "motorway_link" and oneway ~="no") or
|
||||
(highway == "motorway" and oneway ~= "no")
|
||||
then
|
||||
(highway == "motorway" and oneway ~= "no") then
|
||||
way.direction = Way.oneway
|
||||
end
|
||||
end
|
||||
@ -257,7 +256,6 @@ function way_function (way)
|
||||
end
|
||||
|
||||
-- These are wrappers to parse vectors of nodes and ways and thus to speed up any tracing JIT
|
||||
|
||||
function node_vector_function(vector)
|
||||
for v in vector.nodes do
|
||||
node_function(v)
|
||||
|
Loading…
Reference in New Issue
Block a user