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

Method OnExtrapolatedLocationUpdate

libs/map/routing_manager.cpp:1626–1636  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1624}
1625
1626void RoutingManager::OnExtrapolatedLocationUpdate(location::GpsInfo const & info)
1627{
1628 location::GpsInfo gpsInfo(info);
1629 if (!m_drapeEngine)
1630 m_gpsInfoCache = make_unique<location::GpsInfo>(gpsInfo);
1631
1632 auto routeMatchingInfo = GetRouteMatchingInfo(gpsInfo);
1633 m_drapeEngine.SafeCall(&df::DrapeEngine::SetGpsInfo, gpsInfo, m_routingSession.IsNavigable(),
1634 m_routingSession.GetDistanceToNextTurn(), m_routingSession.GetCurrentSpeedLimit(),
1635 routeMatchingInfo);
1636}
1637
1638void RoutingManager::DeleteSavedRoutePoints()
1639{

Callers 1

Calls 4

SafeCallMethod · 0.80
GetDistanceToNextTurnMethod · 0.80
IsNavigableMethod · 0.45
GetCurrentSpeedLimitMethod · 0.45

Tested by

no test coverage detected