Fix test
This commit is contained in:
parent
197b49e794
commit
a8347f349b
2 changed files with 3 additions and 2 deletions
|
@ -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");
|
||||||
|
|
Loading…
Reference in a new issue