Switching off pedestrian and bicycle geometry based routing.

This commit is contained in:
Vladimir Byko-Ianko 2018-01-25 17:42:40 +03:00 committed by mpimenov
parent ef05370786
commit b7b60eef4d

View file

@ -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);