Merge pull request #973 from DennisOSRM/fix/clean_profile_indentation

cleanup indentation of lua profiles
This commit is contained in:
Dennis Luxen 2014-04-01 17:07:39 +02:00
commit 05c33bee78
3 changed files with 425 additions and 428 deletions

View File

@ -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

View File

@ -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)