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

Method GetRoadPenaltyData

libs/routing/index_graph.cpp:431–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429}
430
431IndexGraph::PenaltyData IndexGraph::GetRoadPenaltyData(Segment const & segment) const
432{
433 auto const & road = GetRoadGeometry(segment.GetFeatureId());
434 return {road.IsPassThroughAllowed(), road.GetRoutingOptions().Has(RoutingOptions::Road::Ferry)};
435}
436
437RouteWeight IndexGraph::GetPenalties(EdgeEstimator::Purpose purpose, Segment const & u, Segment const & v,
438 optional<RouteWeight> const & prevWeight) const

Callers

nothing calls this directly

Calls 4

GetFeatureIdMethod · 0.45
IsPassThroughAllowedMethod · 0.45
HasMethod · 0.45
GetRoutingOptionsMethod · 0.45

Tested by

no test coverage detected