Removes constant speed offset from calibration two years ago, resolves #3023.
Our fine-tuned profiles are better in modelling real speed by now. This constant offset is no longer needed. We still scale maxspeed, though. https://github.com/Project-OSRM/osrm-backend/issues/3053
This commit is contained in:
committed by
Patrick Niklaus
parent
7f28a14c76
commit
19f00589de
+2
-2
@@ -571,7 +571,7 @@ function way_function (way, result)
|
||||
|
||||
-- scale speeds to get better avg driving times
|
||||
if result.forward_speed > 0 then
|
||||
local scaled_speed = result.forward_speed*speed_reduction + 11
|
||||
local scaled_speed = result.forward_speed * speed_reduction
|
||||
local penalized_speed = math.huge
|
||||
if service and service ~= "" and service_speeds[service] then
|
||||
penalized_speed = service_speeds[service]
|
||||
@@ -582,7 +582,7 @@ function way_function (way, result)
|
||||
end
|
||||
|
||||
if result.backward_speed > 0 then
|
||||
local scaled_speed = result.backward_speed*speed_reduction + 11
|
||||
local scaled_speed = result.backward_speed * speed_reduction
|
||||
local penalized_speed = math.huge
|
||||
if service and service ~= "" and service_speeds[service]then
|
||||
penalized_speed = service_speeds[service]
|
||||
|
||||
Reference in New Issue
Block a user