This commit is contained in:
Victor Shcherb 2020-02-24 13:14:16 +01:00
parent e38821740b
commit 285ea0c1de

View file

@ -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;
}