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

Method MatchLocationToRoute

libs/map/routing_manager.cpp:1257–1266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1255}
1256
1257void RoutingManager::MatchLocationToRoute(location::GpsInfo & location, location::RouteMatchingInfo & routeMatchingInfo)
1258{
1259 if (!IsRoutingActive())
1260 return;
1261
1262 bool const matchedToRoute = m_routingSession.MatchLocationToRoute(location, routeMatchingInfo);
1263
1264 if (!matchedToRoute && m_currentRouterType == RouterType::Vehicle)
1265 m_routingSession.MatchLocationToRoadGraph(location);
1266}
1267
1268location::RouteMatchingInfo RoutingManager::GetRouteMatchingInfo(location::GpsInfo & info)
1269{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected