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

Function FillTrafficForRendering

libs/map/routing_manager.cpp:93–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93void FillTrafficForRendering(vector<RouteSegment> const & segments, vector<traffic::SpeedGroup> & traffic)
94{
95 traffic.clear();
96 traffic.reserve(segments.size());
97 for (auto const & s : segments)
98 traffic.push_back(s.GetTraffic());
99}
100
101RouteMarkData GetLastPassedPoint(BookmarkManager * bmManager, vector<RouteMarkData> const & points)
102{

Callers 1

InsertRouteMethod · 0.85

Calls 5

clearMethod · 0.45
reserveMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45
GetTrafficMethod · 0.45

Tested by

no test coverage detected