Fix time conditional routing for app modes

This commit is contained in:
Chumva 2019-10-28 18:04:09 +02:00
parent 581082ef5f
commit c93a2087f6

View file

@ -720,7 +720,7 @@ public class RouteProvider {
RoutingConfiguration cf = config.build( params.mode.getRoutingProfile(), params.start.hasBearing() ?
params.start.getBearing() / 180d * Math.PI : null,
memoryLimit, paramsR);
if(settings.ENABLE_TIME_CONDITIONAL_ROUTING.get()) {
if(settings.ENABLE_TIME_CONDITIONAL_ROUTING.getModeValue(params.mode)) {
cf.routeCalculationTime = System.currentTimeMillis();
}
return cf;