MCPcopy Create free account
hub / github.com/comaps/comaps / CalcSegmentWeight

Method CalcSegmentWeight

libs/routing/edge_estimator.cpp:629–634  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

627 }
628
629 double CalcSegmentWeight(Segment const & segment, RoadGeometry const & road, Purpose purpose) const override
630 {
631 return CalcClimbSegment(purpose, segment, road,
632 [purpose](double speedMpS, double tangent, geometry::Altitude altitude)
633 { return speedMpS / GetPedestrianClimbPenalty(purpose, tangent, altitude); });
634 }
635};
636
637// BicycleEstimator --------------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 2

CalcClimbSegmentFunction · 0.85

Tested by

no test coverage detected