| 1426 | } |
| 1427 | |
| 1428 | IndexRouter::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 | |
| 1445 | RouterResultCode IndexRouter::ProcessLeapsJoints(vector<Segment> const & input, IndexGraphStarter & starter, |
| 1446 | shared_ptr<AStarProgress> const & progress, |
no test coverage detected