forked from organicmaps/organicmaps
Pedestrian routing. Ability gathering absent countries names form start and stop points.
This commit is contained in:
parent
c3bbfcbc5c
commit
e624fcaf00
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue