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:
Daniel J. Hofmann
2016-10-17 18:12:11 -07:00
committed by Patrick Niklaus
parent 7f28a14c76
commit 19f00589de
8 changed files with 145 additions and 146 deletions
+2 -2
View File
@@ -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]