forked from organicmaps/organicmaps
[routing] Switching on altitude for routing integration tests for pedestrian and bicycle routing.
This commit is contained in:
parent
b2ab4d6e1a
commit
02ceb62db5
1 changed files with 3 additions and 1 deletions
|
@ -111,7 +111,9 @@ unique_ptr<IndexRouter> CreateVehicleRouter(DataSource & dataSource,
|
|||
auto countryParentGetter = std::make_unique<storage::CountryParentGetter>();
|
||||
CHECK(countryParentGetter, ());
|
||||
|
||||
auto indexRouter = make_unique<IndexRouter>(vehicleType, false /* load altitudes*/,
|
||||
bool const loadAltitudes =
|
||||
vehicleType == VehicleType::Pedestrian || vehicleType == VehicleType::Bicycle;
|
||||
auto indexRouter = make_unique<IndexRouter>(vehicleType, loadAltitudes,
|
||||
*countryParentGetter, countryFileGetter,
|
||||
getMwmRectByName, numMwmIds,
|
||||
MakeNumMwmTree(*numMwmIds, infoGetter), trafficCache, dataSource);
|
||||
|
|
Loading…
Add table
Reference in a new issue