Fix test
This commit is contained in:
parent
197b49e794
commit
a8347f349b
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++) {
|
for (int i = 0; i < objectAttributes.length; i++) {
|
||||||
objectAttributes[i] = new RouteAttributeContext(parent.objectAttributes[i], params);
|
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);
|
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);
|
heightObstacles = params.containsKey(USE_HEIGHT_OBSTACLES) && parseSilentBoolean(params.get(USE_HEIGHT_OBSTACLES), false);
|
||||||
if(shortestRoute) {
|
if(shortestRoute) {
|
||||||
|
|
|
@ -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