Pedestrian routing. Ability gathering absent countries names form start and stop points.

This commit is contained in:
Lev Dragunov 2015-08-06 10:42:47 +03:00 committed by Alex Zolotarev
parent c3bbfcbc5c
commit e624fcaf00

View file

@ -98,7 +98,6 @@ IRouter::ResultCode RoadGraphRouter::CalculateRoute(m2::PointD const & startPoin
{
for (auto const & name : mwmNames)
route.AddAbsentCountry(name);
return FileTooOld;
}
vector<pair<Edge, m2::PointD>> startVicinity;
@ -112,9 +111,11 @@ IRouter::ResultCode RoadGraphRouter::CalculateRoute(m2::PointD const & startPoin
{
for (auto const & name : mwmNames)
route.AddAbsentCountry(name);
return FileTooOld;
}
if (!route.GetAbsentCountries().empty())
return FileTooOld;
Junction const startPos(startPoint);
Junction const finalPos(finalPoint);