forked from organicmaps/organicmaps
[routing] Route calculation on world graph in case of start and finish leaps.
This commit is contained in:
parent
15d3d351a2
commit
7976081f0d
1 changed files with 7 additions and 0 deletions
|
@ -316,6 +316,13 @@ IRouter::ResultCode IndexRouter::ProcessLeaps(vector<Segment> const & input,
|
|||
continue;
|
||||
}
|
||||
|
||||
// In case of leaps from the start to its mwm transition and from finish mwm transition
|
||||
// Route calculation should be made on the world graph (WorldGraph::Mode::NoLeaps).
|
||||
if ((i == 0 || i + 2 == input.size()) && worldRouteMode == WorldGraph::Mode::LeapsOnly)
|
||||
worldGraph.SetMode(WorldGraph::Mode::NoLeaps);
|
||||
else
|
||||
worldGraph.SetMode(WorldGraph::Mode::SingleMwm);
|
||||
|
||||
++i;
|
||||
CHECK_LESS(i, input.size(), ());
|
||||
Segment const & next = input[i];
|
||||
|
|
Loading…
Add table
Reference in a new issue