forked from organicmaps/organicmaps-tmp
[routing] Fix routing integration tests + Moscow-Minsk route
This commit is contained in:
parent
716bcd2b83
commit
f0b5279262
2 changed files with 15 additions and 3 deletions
|
@ -137,6 +137,13 @@ namespace
|
|||
{39.836562407458047, 65.774372510437971}, 239426.);
|
||||
}
|
||||
|
||||
UNIT_TEST(RussiaMoscowBelarusMinsk)
|
||||
{
|
||||
integration::CalculateRouteAndTestRouteLength(integration::GetOsrmComponents(),
|
||||
MercatorBounds::FromLatLon(55.750650, 37.617673), {0., 0.},
|
||||
MercatorBounds::FromLatLon(53.902114, 27.562020), 712649.0);
|
||||
}
|
||||
|
||||
// TODO OSRM offers a possible turn to a pedestrian road in this test. It's fixing right now.
|
||||
UNIT_TEST(UKRugbyStIvesRouteTest)
|
||||
{
|
||||
|
|
|
@ -91,9 +91,14 @@ namespace integration
|
|||
return infoGetter.GetLimitRectForLeaf(countryId);
|
||||
};
|
||||
|
||||
shared_ptr<NumMwmIds> numMwmIds = make_shared<NumMwmIds>();
|
||||
for (LocalCountryFile const & f : localFiles)
|
||||
numMwmIds->RegisterFile(f.GetCountryFile());
|
||||
auto numMwmIds = make_shared<NumMwmIds>();
|
||||
for (auto const & f : localFiles)
|
||||
{
|
||||
auto const & countryFile = f.GetCountryFile();
|
||||
auto const mwmId = index.GetMwmIdByCountryFile(countryFile);
|
||||
if (mwmId.GetInfo()->GetType() == MwmInfo::COUNTRY && countryFile.GetName() != "minsk-pass")
|
||||
numMwmIds->RegisterFile(countryFile);
|
||||
}
|
||||
|
||||
auto carRouter = make_unique<CarRouter>(
|
||||
index, countryFileGetter,
|
||||
|
|
Loading…
Add table
Reference in a new issue