Cleanup the profiles

This commit is contained in:
Patrick Niklaus
2015-05-15 14:45:50 +02:00
parent 0706ba9bec
commit 7ad52de2b1
2 changed files with 52 additions and 57 deletions
+2 -8
View File
@@ -132,10 +132,9 @@ maxspeed_table = {
traffic_signal_penalty = 2
use_turn_restrictions = true
local take_minimum_of_speeds = false
local obey_oneway = true
local obey_bollards = true
local ignore_areas = true -- future feature
local ignore_areas = true
local u_turn_penalty = 20
local abs = math.abs
@@ -179,6 +178,7 @@ local function parse_maxspeed(source)
return n
end
-- FIXME Why was this commented out?
-- function turn_function (angle)
-- -- print ("called at angle " .. angle )
-- local index = math.abs(math.floor(angle/10+0.5))+1 -- +1 'coz LUA starts as idx 1
@@ -420,9 +420,3 @@ function way_function (way, result)
end
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)
end
end