mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-21 13:53:37 +00:00
[traffic] Override EdgeEstimator::CalcOffroad()
Signed-off-by: mvglasow <michael -at- vonglasow.com>
This commit is contained in:
@@ -273,6 +273,18 @@ public:
|
||||
}
|
||||
|
||||
// EdgeEstimator overrides:
|
||||
|
||||
/**
|
||||
* @brief Estimates travel time between two points along a direct fake edge.
|
||||
*
|
||||
* Estimates time in seconds it takes to go from point `from` to point `to` along direct fake edge.
|
||||
*
|
||||
* @param from The start point.
|
||||
* @param to The destination point.
|
||||
* @param purpose The purpose for which the result is to be used.
|
||||
* @return Travel time in seconds.
|
||||
*/
|
||||
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 GetUTurnPenalty(Purpose /* purpose */) const override;
|
||||
double GetFerryLandingPenalty(Purpose purpose) const override;
|
||||
|
||||
Reference in New Issue
Block a user