Fix #8524
This commit is contained in:
parent
e38821740b
commit
285ea0c1de
1 changed files with 10 additions and 1 deletions
|
@ -546,8 +546,17 @@ public class RouteProvider {
|
|||
newParams.leftSide = rParams.leftSide;
|
||||
RouteCalculationResult newRes = null;
|
||||
try {
|
||||
newRes = findVectorMapsRoute(newParams, false);
|
||||
if (rParams.mode.getRouteService() == RouteService.OSMAND) {
|
||||
newRes = findVectorMapsRoute(newParams, false);
|
||||
} else if (rParams.mode.getRouteService() == RouteService.BROUTER) {
|
||||
newRes= findBROUTERRoute(newParams);
|
||||
} else if (rParams.mode.getRouteService() == RouteService.STRAIGHT ||
|
||||
rParams.mode.getRouteService() == RouteService.DIRECT_TO) {
|
||||
newRes = findStraightRoute(newParams);
|
||||
}
|
||||
} catch (IOException e) {
|
||||
} catch (SAXException e) {
|
||||
} catch (ParserConfigurationException e) {
|
||||
}
|
||||
return newRes;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue