Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Byko-Ianko <v.bykoianko@corp.mail.ru>2019-01-23 17:25:33 +0300
committerVlad Mihaylenko <vxmihaylenko@gmail.com>2019-01-23 19:02:23 +0300
commit02ceb62db544d78d28be1f221e5c72646fe9ba40 (patch)
treed007d22dee98820a4fc279fe7af5cf7e87de59d4
parentb2ab4d6e1adddccc1c4048da398949c8f2ee4121 (diff)
[routing] Switching on altitude for routing integration tests for pedestrian and bicycle routing.
-rw-r--r--routing/routing_integration_tests/routing_test_tools.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/routing/routing_integration_tests/routing_test_tools.cpp b/routing/routing_integration_tests/routing_test_tools.cpp
index fe9c9e192c..7c8ba2cb95 100644
--- a/routing/routing_integration_tests/routing_test_tools.cpp
+++ b/routing/routing_integration_tests/routing_test_tools.cpp
@@ -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);