diff options
author | Lev Dragunov <l.dragunov@corp.mail.ru> | 2015-08-06 10:42:47 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:59:26 +0300 |
commit | e624fcaf00efa6fe6a86909c5a5cde72c8dda1a0 (patch) | |
tree | 7af61340177efa657b959bcd63f28480aca4069d /routing | |
parent | c3bbfcbc5c062db520c61f3f8be94b60ccc2562d (diff) |
Pedestrian routing. Ability gathering absent countries names form start and stop points.
Diffstat (limited to 'routing')
-rw-r--r-- | routing/road_graph_router.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/routing/road_graph_router.cpp b/routing/road_graph_router.cpp index a5de4fea4b..3bbcc8c245 100644 --- a/routing/road_graph_router.cpp +++ b/routing/road_graph_router.cpp @@ -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); |