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

Function GetLastRealOrPart

libs/routing/index_router.cpp:157–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157bool GetLastRealOrPart(IndexGraphStarter const & starter, vector<Segment> const & route, Segment & real)
158{
159 for (auto rit = route.rbegin(); rit != route.rend(); ++rit)
160 {
161 real = *rit;
162 if (starter.ConvertToReal(real))
163 return true;
164 }
165 return false;
166}
167
168// Returns true if seg1 and seg2 have the same geometry.
169bool IsTheSameSegments(m2::PointD const & seg1From, m2::PointD const & seg1To, m2::PointD const & seg2From,

Callers 1

DoCalculateRouteMethod · 0.85

Calls 3

rbeginMethod · 0.80
rendMethod · 0.80
ConvertToRealMethod · 0.45

Tested by

no test coverage detected