From 9d6a825983a62d10781567986789be33ab28b7f1 Mon Sep 17 00:00:00 2001 From: Vladimir Byko-Ianko Date: Tue, 10 Sep 2019 17:11:28 +0300 Subject: [PATCH] [routing] Changing off road speed to {0.1 /* weight */, 100.0 /* eta */} --- routing_common/car_model.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/routing_common/car_model.cpp b/routing_common/car_model.cpp index 5d66f0b135..5028b84371 100644 --- a/routing_common/car_model.cpp +++ b/routing_common/car_model.cpp @@ -63,7 +63,13 @@ std::array constexpr kCountries = {"Australia", "United States of America", "Venezuela"}; -SpeedKMpH constexpr kSpeedOffroadKMpH = {3.0 /* weight */, 3.0 /* eta */}; +// |kSpeedOffroadKMpH| is a speed which is used for edges that don't lie on road features. +// For example for pure fake edges. The speed for building route and the speed for +// ETA calculation is significant different for cars. The idea behind that is +// to use the closest edge for the start and the finish of the route except for some edge cases. +// And when ETA is calculated not to take into account fake edges. It's actual +// when an airport is a start of finish. +SpeedKMpH constexpr kSpeedOffroadKMpH = {0.01 /* weight */, 100.0 /* eta */}; VehicleModel::LimitsInitList const kCarOptionsDefault = { // {{roadType, roadType} passThroughAllowed}