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:
authorMikhail Gorbushin <m.gorbushin@corp.mail.ru>2019-05-17 20:15:52 +0300
committerVlad Mihaylenko <vxmihaylenko@gmail.com>2019-05-17 20:21:31 +0300
commit645deebd5ffc631f8a28acf43508a6fa4e3cf4ef (patch)
treef68b8fc57ebc909dd303ea0d803dcc43442031bd /routing
parentcabbc20ee4585ef1b3f9aa23966a82b54d3bc673 (diff)
[routing] add altitude for transit in RIT
Diffstat (limited to 'routing')
-rw-r--r--routing/routing_integration_tests/routing_test_tools.cpp3
-rw-r--r--routing/routing_integration_tests/transit_route_test.cpp4
2 files changed, 3 insertions, 4 deletions
diff --git a/routing/routing_integration_tests/routing_test_tools.cpp b/routing/routing_integration_tests/routing_test_tools.cpp
index c7e72ec215..a375291d5f 100644
--- a/routing/routing_integration_tests/routing_test_tools.cpp
+++ b/routing/routing_integration_tests/routing_test_tools.cpp
@@ -115,8 +115,7 @@ unique_ptr<IndexRouter> CreateVehicleRouter(DataSource & dataSource,
auto countryParentGetter = std::make_unique<storage::CountryParentGetter>();
CHECK(countryParentGetter, ());
- bool const loadAltitudes =
- vehicleType == VehicleType::Pedestrian || vehicleType == VehicleType::Bicycle;
+ bool const loadAltitudes = vehicleType != VehicleType::Car;
auto indexRouter = make_unique<IndexRouter>(vehicleType, loadAltitudes,
*countryParentGetter, countryFileGetter,
getMwmRectByName, numMwmIds,
diff --git a/routing/routing_integration_tests/transit_route_test.cpp b/routing/routing_integration_tests/transit_route_test.cpp
index 4aaf62dd02..7fe54b878d 100644
--- a/routing/routing_integration_tests/transit_route_test.cpp
+++ b/routing/routing_integration_tests/transit_route_test.cpp
@@ -44,7 +44,7 @@ UNIT_TEST(Moscow_NoSubwayTest)
MercatorBounds::FromLatLon(55.73470, 37.62617));
TEST_EQUAL(routeResult.second, RouterResultCode::NoError, ());
- integration::TestRouteLength(*routeResult.first, 604.847);
+ integration::TestRouteLength(*routeResult.first, 612.664);
CHECK(routeResult.first, ());
integration::CheckSubwayAbsent(*routeResult.first);
@@ -139,7 +139,7 @@ UNIT_TEST(Vashington_FoggyToShaw)
TEST_EQUAL(routeResult.second, RouterResultCode::NoError, ());
- integration::TestRouteLength(*routeResult.first, 6102.92);
+ integration::TestRouteLength(*routeResult.first, 6318.54);
CHECK(routeResult.first, ());
integration::CheckSubwayExistence(*routeResult.first);