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
If RouteOptim.FASTEST: the minimum duration in seconds for a better route to be considered. Default is 300 seconds.
minDistanceForBetterRoute
If RouteOptim.SHORTEST: minimum distance in meters for a better route to be considered. Default is 2000 meters.