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

Method InitRoutingSession

libs/routing/routing_tests/tools.cpp:5–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3namespace routing
4{
5void AsyncGuiThreadTestWithRoutingSession::InitRoutingSession()
6{
7 m_session = std::make_unique<routing::RoutingSession>();
8 m_session->Init(nullptr /* pointCheckCallback */);
9 m_session->SetRoutingSettings(routing::GetRoutingSettings(routing::VehicleType::Car));
10 m_session->SetOnNewTurnCallback([this]() { ++m_onNewTurnCallbackCounter; });
11}
12
13void RouteSegmentsFrom(std::vector<Segment> const & segments, std::vector<m2::PointD> const & path,
14 std::vector<turns::TurnItem> const & turns,

Callers

nothing calls this directly

Calls 4

GetRoutingSettingsFunction · 0.85
SetOnNewTurnCallbackMethod · 0.80
InitMethod · 0.45
SetRoutingSettingsMethod · 0.45

Tested by

no test coverage detected