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

Method RemoveRoute

libs/routing/routing_session.cpp:133–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133void RoutingSession::RemoveRoute()
134{
135 CHECK_THREAD_CHECKER(m_threadChecker, ());
136
137 m_lastDistance = 0.0;
138 m_moveAwayCounter = 0;
139 m_turnNotificationsMgr.Reset();
140
141 m_route = std::make_shared<Route>(std::string{} /* router */, 0 /* route id */);
142 m_speedCameraManager.Reset();
143 m_speedCameraManager.SetRoute(m_route);
144}
145
146void RoutingSession::RebuildRouteOnTrafficUpdate()
147{

Callers

nothing calls this directly

Calls 2

SetRouteMethod · 0.80
ResetMethod · 0.45

Tested by

no test coverage detected