mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-01 18:44:02 +00:00
[traffic] Eliminate any ETA calculations, always return weight
Signed-off-by: mvglasow <michael -at- vonglasow.com>
This commit is contained in:
@@ -580,11 +580,8 @@ double RoutingTraffDecoder::TraffEstimator::GetFerryLandingPenalty(Purpose /* pu
|
||||
}
|
||||
|
||||
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);
|
||||
|
||||
result *= kOffroadPenalty;
|
||||
|
||||
Reference in New Issue
Block a user