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

Method MatchTraffic

libs/routing/routing_session.cpp:663–672  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

661}
662
663traffic::SpeedGroup RoutingSession::MatchTraffic(location::RouteMatchingInfo const & routeMatchingInfo) const
664{
665 CHECK_THREAD_CHECKER(m_threadChecker, ());
666 if (!routeMatchingInfo.IsMatched())
667 return SpeedGroup::Unknown;
668
669 size_t const index = routeMatchingInfo.GetIndexInRoute();
670
671 return m_route->GetTraffic(index);
672}
673
674bool RoutingSession::DisableFollowMode()
675{

Callers

nothing calls this directly

Calls 3

GetIndexInRouteMethod · 0.80
IsMatchedMethod · 0.45
GetTrafficMethod · 0.45

Tested by

no test coverage detected