This commit is contained in:
Dennis Luxen 2013-09-07 11:16:45 +02:00
parent 9e75595754
commit a25e4e1ed8

View File

@ -130,8 +130,7 @@ function way_function (way)
(speed_profile[man_made] ~= nil and speed_profile[man_made] > 0) (speed_profile[man_made] ~= nil and speed_profile[man_made] > 0)
then then
if durationIsValid(duration) then if durationIsValid(duration) then
way.speed = parseDuration(duration) / math.max(1, numberOfNodesInWay-1); way.duration = math.max( parseDuration(duration), 1 );
way.is_duration_set = true;
end end
way.direction = Way.bidirectional; way.direction = Way.bidirectional;
if speed_profile[route] ~= nil then if speed_profile[route] ~= nil then