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

Function PushPassedSubroutes

libs/routing/index_router.cpp:147–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147void PushPassedSubroutes(Checkpoints const & checkpoints, vector<Route::SubrouteAttrs> & subroutes)
148{
149 for (size_t i = 0; i < checkpoints.GetPassedIdx(); ++i)
150 {
151 subroutes.emplace_back(geometry::PointWithAltitude(checkpoints.GetPoint(i), geometry::kDefaultAltitudeMeters),
152 geometry::PointWithAltitude(checkpoints.GetPoint(i + 1), geometry::kDefaultAltitudeMeters),
153 0 /* beginSegmentIdx */, 0 /* endSegmentIdx */);
154 }
155}
156
157bool GetLastRealOrPart(IndexGraphStarter const & starter, vector<Segment> const & route, Segment & real)
158{

Callers 2

DoCalculateRouteMethod · 0.85
AdjustRouteMethod · 0.85

Calls 4

GetPassedIdxMethod · 0.80
PointWithAltitudeClass · 0.50
emplace_backMethod · 0.45
GetPointMethod · 0.45

Tested by

no test coverage detected