Fix plan route direction

This commit is contained in:
Victor Shcherb 2021-01-07 11:28:53 +01:00
parent 31ffca2547
commit 6e584b4913

View file

@ -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;