This commit is contained in:
Victor Shcherb 2017-04-11 21:30:02 +02:00
parent 197b49e794
commit a8347f349b
2 changed files with 3 additions and 2 deletions

View file

@ -114,7 +114,8 @@ public class RoutePlannerFrontEnd {
private boolean needRequestPrivateAccessRouting(RoutingContext ctx, List<LatLon> points) throws IOException { private boolean needRequestPrivateAccessRouting(RoutingContext ctx, List<LatLon> points) throws IOException {
boolean res = false; boolean res = false;
GeneralRouter router = (GeneralRouter) ctx.getRouter(); GeneralRouter router = (GeneralRouter) ctx.getRouter();
if (router != null && !router.isAllowPrivate()) { if (router != null && !router.isAllowPrivate() &&
router.getParameters().containsKey(GeneralRouter.ALLOW_PRIVATE)) {
ctx.unloadAllData(); ctx.unloadAllData();
LinkedHashMap<String, String> mp = new LinkedHashMap<String, String>(); LinkedHashMap<String, String> mp = new LinkedHashMap<String, String>();
mp.put(GeneralRouter.ALLOW_PRIVATE, "true"); mp.put(GeneralRouter.ALLOW_PRIVATE, "true");