diff options
author | Lev Dragunov <l.dragunov@corp.mail.ru> | 2015-08-28 16:47:27 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 03:03:25 +0300 |
commit | b375c33e3a313d17e8f1cfe7887c3b26d5853d3f (patch) | |
tree | 3f932f5b9886a727ee044f46bfa182a1d6bf7a0c /routing | |
parent | c331c05746b98ae816d3a86b5e03c4062cb4e97a (diff) |
[routing] Good status after routing fail (0,0 coordinates) fix.
Diffstat (limited to 'routing')
-rw-r--r-- | routing/osrm_router.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/routing/osrm_router.cpp b/routing/osrm_router.cpp index 97a425da37..ccc890effe 100644 --- a/routing/osrm_router.cpp +++ b/routing/osrm_router.cpp @@ -539,7 +539,7 @@ OsrmRouter::ResultCode OsrmRouter::CalculateRoute(m2::PointD const & startPoint, if (!startMapping->IsValid()) { route.AddAbsentCountry(startMapping->GetCountryName()); - return startMapping->GetError(); + return IRouter::StartPointNotFound; } if (!targetMapping->IsValid()) { @@ -551,9 +551,9 @@ OsrmRouter::ResultCode OsrmRouter::CalculateRoute(m2::PointD const & startPoint, targetMapping->GetCountryName()) { route.AddAbsentCountry(targetMapping->GetCountryName()); - return targetMapping->GetError(); + return IRouter::EndPointNotFound; } - return targetMapping->GetError(); + return IRouter::EndPointNotFound; } MappingGuard startMappingGuard(startMapping); |