diff --git a/profiles/bicycle.lua b/profiles/bicycle.lua index 6038126ee..3c14dc250 100644 --- a/profiles/bicycle.lua +++ b/profiles/bicycle.lua @@ -162,8 +162,7 @@ function way_function (way, numberOfNodesInWay) way.direction = Way.bidirectional way.ignore_in_grid = true if durationIsValid(duration) then - way.speed = math.max( parseDuration(duration) / math.max(1, numberOfNodesInWay-1) ) - way.is_duration_set = true + way.duration = math.max( 1, parseDuration(duration) ) else way.speed = route_speeds[route] end diff --git a/profiles/testbot.lua b/profiles/testbot.lua index 3eb1ff339..9c7b103ac 100644 --- a/profiles/testbot.lua +++ b/profiles/testbot.lua @@ -49,9 +49,7 @@ function way_function (way, numberOfNodesInWay) way.name = name if route ~= nil and durationIsValid(duration) then - way.ignore_in_grid = true - way.speed = math.max( 1, parseDuration(duration) / math.max(1, numberOfNodesInWay-1) ) - way.is_duration_set = true + way.duration = math.max( 1, parseDuration(duration) ) else way.speed = speed_profile[highway] or speed_profile['default'] end