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

Method Calc2Times

libs/routing/index_router.cpp:1428–1443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1426}
1427
1428IndexRouter::RoutingResultT const * IndexRouter::RoutesCalculator::Calc2Times(Segment const & beg, Segment const & end,
1429 ProgressPtrT const & progress,
1430 double progressCoef)
1431{
1432 /// @see RussiaMoscow_ItalySienaCenter_SplittedMotorway
1433 /// Enter Tuscany motorway (43.5016115, 11.1872607) is splitted by MWM boundaries many times.
1434
1435 m_starter.GetGraph().SetMode(WorldGraphMode::JointSingleMwm);
1436 auto const * r = Calc(beg, end, progress, progressCoef);
1437 if (r == nullptr)
1438 {
1439 m_starter.GetGraph().SetMode(WorldGraphMode::Joints);
1440 r = Calc(beg, end, progress, progressCoef);
1441 }
1442 return r;
1443}
1444
1445RouterResultCode IndexRouter::ProcessLeapsJoints(vector<Segment> const & input, IndexGraphStarter & starter,
1446 shared_ptr<AStarProgress> const & progress,

Callers 1

Calls 1

SetModeMethod · 0.45

Tested by

no test coverage detected