forked from organicmaps/organicmaps
Switching off pedestrian and bicycle geometry based routing.
This commit is contained in:
parent
ef05370786
commit
b7b60eef4d
1 changed files with 0 additions and 13 deletions
|
@ -329,19 +329,6 @@ IRouter::ResultCode IndexRouter::CalculateRoute(Checkpoints const & checkpoints,
|
|||
|
||||
if (!outdatedMwms.empty())
|
||||
{
|
||||
// Backward compatibility with outdated mwm versions.
|
||||
if (m_vehicleType == VehicleType::Pedestrian)
|
||||
{
|
||||
return CreatePedestrianAStarBidirectionalRouter(m_index, m_countryFileFn, m_numMwmIds)
|
||||
->CalculateRoute(checkpoints, startDirection, adjustToPrevRoute, delegate, route);
|
||||
}
|
||||
|
||||
if (m_vehicleType == VehicleType::Bicycle)
|
||||
{
|
||||
return CreateBicycleAStarBidirectionalRouter(m_index, m_countryFileFn, m_numMwmIds)
|
||||
->CalculateRoute(checkpoints, startDirection, adjustToPrevRoute, delegate, route);
|
||||
}
|
||||
|
||||
for (string const & mwm : outdatedMwms)
|
||||
route.AddAbsentCountry(mwm);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue