Normalizes spaces in profiles

This commit is contained in:
Daniel J. Hofmann 2017-07-19 15:32:42 +02:00 committed by Patrick Niklaus
parent ababeb3a69
commit 48824c4c8a
3 changed files with 40 additions and 40 deletions

View File

@ -206,7 +206,7 @@ local function parse_maxspeed(source)
return n return n
end end
function process_node (profile, node, result) function process_node(profile, node, result)
-- parse access and barrier tags -- parse access and barrier tags
local highway = node:get_value_by_key("highway") local highway = node:get_value_by_key("highway")
local is_crossing = highway and highway == "crossing" local is_crossing = highway and highway == "crossing"
@ -493,7 +493,7 @@ function handle_bicycle_tags(profile,way,result,data)
end end
end end
end end
function process_way (profile, way, result) function process_way(profile, way, result)
-- the initial filtering of ways based on presence of tags -- the initial filtering of ways based on presence of tags
-- affects processing times significantly, because all ways -- affects processing times significantly, because all ways
-- have to be checked. -- have to be checked.

View File

@ -262,7 +262,7 @@ function setup()
} }
end end
function process_node (profile, node, result) function process_node(profile, node, result)
-- parse access and barrier tags -- parse access and barrier tags
local access = find_access_tag(node, profile.access_tags_hierarchy) local access = find_access_tag(node, profile.access_tags_hierarchy)
if access then if access then
@ -375,7 +375,7 @@ function process_way(profile, way, result)
WayHandlers.run(profile,way,result,data,handlers) WayHandlers.run(profile,way,result,data,handlers)
end end
function process_turn (profile, turn) function process_turn(profile, turn)
-- Use a sigmoid function to return a penalty that maxes out at turn_penalty -- Use a sigmoid function to return a penalty that maxes out at turn_penalty
-- over the space of 0-180 degrees. Values here were chosen by fitting -- over the space of 0-180 degrees. Values here were chosen by fitting
-- the function to some turn penalty samples from real driving. -- the function to some turn penalty samples from real driving.

View File

@ -137,7 +137,7 @@ function setup()
} }
end end
function process_node (profile, node, result) function process_node(profile, node, result)
-- parse access and barrier tags -- parse access and barrier tags
local access = find_access_tag(node, profile.access_tags_hierarchy) local access = find_access_tag(node, profile.access_tags_hierarchy)
if access then if access then