Fix time conditional routing for app modes
This commit is contained in:
parent
581082ef5f
commit
c93a2087f6
1 changed files with 1 additions and 1 deletions
|
@ -720,7 +720,7 @@ public class RouteProvider {
|
||||||
RoutingConfiguration cf = config.build( params.mode.getRoutingProfile(), params.start.hasBearing() ?
|
RoutingConfiguration cf = config.build( params.mode.getRoutingProfile(), params.start.hasBearing() ?
|
||||||
params.start.getBearing() / 180d * Math.PI : null,
|
params.start.getBearing() / 180d * Math.PI : null,
|
||||||
memoryLimit, paramsR);
|
memoryLimit, paramsR);
|
||||||
if(settings.ENABLE_TIME_CONDITIONAL_ROUTING.get()) {
|
if(settings.ENABLE_TIME_CONDITIONAL_ROUTING.getModeValue(params.mode)) {
|
||||||
cf.routeCalculationTime = System.currentTimeMillis();
|
cf.routeCalculationTime = System.currentTimeMillis();
|
||||||
}
|
}
|
||||||
return cf;
|
return cf;
|
||||||
|
|
Loading…
Reference in a new issue