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

Method GetAltitudes

libs/routing/route.cpp:477–486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

475}
476
477void Route::GetAltitudes(geometry::Altitudes & altitudes) const
478{
479 altitudes.clear();
480
481 CHECK(!m_subrouteAttrs.empty(), ());
482 altitudes.push_back(m_subrouteAttrs.front().GetStart().GetAltitude());
483
484 for (auto const & s : m_routeSegments)
485 altitudes.push_back(s.GetJunction().GetAltitude());
486}
487
488traffic::SpeedGroup Route::GetTraffic(size_t segmentIdx) const
489{

Callers 5

TestAltitudesFunction · 0.45
ExtractRoadInfoMethod · 0.45
LoadMethod · 0.45

Calls 6

frontMethod · 0.80
clearMethod · 0.45
emptyMethod · 0.45
push_backMethod · 0.45
GetAltitudeMethod · 0.45
GetStartMethod · 0.45

Tested by 2

TestAltitudesFunction · 0.36