[traffic] Eliminate any ETA calculations, always return weight

Signed-off-by: mvglasow <michael -at- vonglasow.com>
This commit is contained in:
mvglasow
2025-10-19 17:59:48 +03:00
parent 3a45740884
commit 32d1a3a36e
2 changed files with 2 additions and 5 deletions

View File

@@ -580,11 +580,8 @@ double RoutingTraffDecoder::TraffEstimator::GetFerryLandingPenalty(Purpose /* pu
} }
double RoutingTraffDecoder::TraffEstimator::CalcOffroad(ms::LatLon const & from, ms::LatLon const & to, double RoutingTraffDecoder::TraffEstimator::CalcOffroad(ms::LatLon const & from, ms::LatLon const & to,
Purpose purpose) const Purpose /* purpose */) const
{ {
if (purpose == Purpose::ETA)
return 0.0;
double result = ms::DistanceOnEarth(from, to); double result = ms::DistanceOnEarth(from, to);
result *= kOffroadPenalty; result *= kOffroadPenalty;

View File

@@ -300,7 +300,7 @@ public:
* @param purpose The purpose for which the result is to be used. * @param purpose The purpose for which the result is to be used.
* @return Travel time in seconds. * @return Travel time in seconds.
*/ */
double CalcOffroad(ms::LatLon const & from, ms::LatLon const & to, Purpose purpose) const override; double CalcOffroad(ms::LatLon const & from, ms::LatLon const & to, Purpose /* purpose */) const override;
double CalcSegmentWeight(routing::Segment const & segment, routing::RoadGeometry const & road, Purpose /* purpose */) const override; double CalcSegmentWeight(routing::Segment const & segment, routing::RoadGeometry const & road, Purpose /* purpose */) const override;
/** /**