Fix test
This commit is contained in:
parent
0d55cd5421
commit
1d2357261b
2 changed files with 3 additions and 2 deletions
|
@ -135,7 +135,7 @@ public class GeneralRouter implements VehicleRouter {
|
|||
for (int i = 0; i < objectAttributes.length; i++) {
|
||||
objectAttributes[i] = new RouteAttributeContext(parent.objectAttributes[i], params);
|
||||
}
|
||||
allowPrivate = params.containsKey(ALLOW_PRIVATE) && parseSilentBoolean(params.get(ALLOW_PRIVATE), false);
|
||||
allowPrivate = params.containsKey(ALLOW_PRIVATE) && parseSilentBoolean(params.get(ALLOW_PRIVATE), false) ;
|
||||
shortestRoute = params.containsKey(USE_SHORTEST_WAY) && parseSilentBoolean(params.get(USE_SHORTEST_WAY), false);
|
||||
heightObstacles = params.containsKey(USE_HEIGHT_OBSTACLES) && parseSilentBoolean(params.get(USE_HEIGHT_OBSTACLES), false);
|
||||
if(shortestRoute) {
|
||||
|
|
|
@ -114,7 +114,8 @@ public class RoutePlannerFrontEnd {
|
|||
private boolean needRequestPrivateAccessRouting(RoutingContext ctx, List<LatLon> points) throws IOException {
|
||||
boolean res = false;
|
||||
GeneralRouter router = (GeneralRouter) ctx.getRouter();
|
||||
if (router != null && !router.isAllowPrivate()) {
|
||||
if (router != null && !router.isAllowPrivate() &&
|
||||
router.getParameters().containsKey(GeneralRouter.ALLOW_PRIVATE)) {
|
||||
ctx.unloadAllData();
|
||||
LinkedHashMap<String, String> mp = new LinkedHashMap<String, String>();
|
||||
mp.put(GeneralRouter.ALLOW_PRIVATE, "true");
|
||||
|
|
Loading…
Reference in a new issue