diff --git a/profiles/foot.lua b/profiles/foot.lua index 959e774e4..efa4ed6a7 100644 --- a/profiles/foot.lua +++ b/profiles/foot.lua @@ -128,7 +128,7 @@ function way_function (way, numberOfNodesInWay) (speed_profile[man_made] ~= nil and speed_profile[man_made] > 0) then if durationIsValid(duration) then - way.speed = parseDuration / math.max(1, numberOfSegments-1); + way.speed = parseDuration / math.max(1, numberOfNodesInWay-1); way.is_duration_set = true; end way.direction = Way.bidirectional;