Fix plan route direction
This commit is contained in:
parent
31ffca2547
commit
6e584b4913
1 changed files with 3 additions and 0 deletions
|
@ -78,6 +78,9 @@ public class RouteTestingTest {
|
||||||
}
|
}
|
||||||
RoutingConfiguration config = builder.build(params.containsKey("vehicle") ? params.get("vehicle") : "car",
|
RoutingConfiguration config = builder.build(params.containsKey("vehicle") ? params.get("vehicle") : "car",
|
||||||
RoutingConfiguration.DEFAULT_MEMORY_LIMIT * 3, params);
|
RoutingConfiguration.DEFAULT_MEMORY_LIMIT * 3, params);
|
||||||
|
if (params.containsKey("planRoadDirection")) {
|
||||||
|
config.planRoadDirection = Integer.parseInt(params.get("planRoadDirection"));
|
||||||
|
}
|
||||||
RoutingContext ctx = fe.buildRoutingContext(config, null, binaryMapIndexReaders,
|
RoutingContext ctx = fe.buildRoutingContext(config, null, binaryMapIndexReaders,
|
||||||
RoutePlannerFrontEnd.RouteCalculationMode.NORMAL);
|
RoutePlannerFrontEnd.RouteCalculationMode.NORMAL);
|
||||||
ctx.leftSideNavigation = false;
|
ctx.leftSideNavigation = false;
|
||||||
|
|
Loading…
Reference in a new issue