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

Method RoutingSession

libs/routing/routing_session.cpp:56–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56RoutingSession::RoutingSession()
57 : m_router(nullptr)
58 , m_route(std::make_shared<Route>(std::string{} /* router */, 0 /* route id */))
59 , m_state(SessionState::NoValidRoute)
60 , m_isFollowing(false)
61 , m_speedCameraManager(m_turnNotificationsMgr)
62 , m_routingSettings(GetRoutingSettings(VehicleType::Car))
63 , m_passedDistanceOnRouteMeters(0.0)
64 , m_lastCompletionPercent(0.0)
65{
66 // To call |m_changeSessionStateCallback| on |m_state| initialization.
67 SetState(SessionState::NoValidRoute);
68 m_speedCameraManager.SetRoute(m_route);
69}
70
71void RoutingSession::Init(PointCheckCallback const & pointCheckCallback)
72{

Calls 2

GetRoutingSettingsFunction · 0.85
SetRouteMethod · 0.80

Tested by

no test coverage detected