setRemotePlannerOptions

fun setRemotePlannerOptions(allowLocalRerouting: Boolean = false, checkForBetterRoutePeriod: Long = 300, minDurationForBetterRoute: Long = 300, minDistanceForBetterRoute: Long = 2000): Boolean

Set the remote planner options.

Return

True if the options were set successfully, false if the remote planner is not set.

Parameters

allowLocalRerouting

If true, local rerouting is allowed when the remote planner is used. Default is false.

checkForBetterRoutePeriod

The period in seconds to check for a better route. Default is 300 seconds.

minDurationForBetterRoute

Ignored. Retained for source compatibility. Candidates are now exposed unfiltered via BetterRouteListener.onRemoteTrafficRouteFound; apps decide whether to apply them by calling updateRoute.

minDistanceForBetterRoute