reroute

fun reroute(length: Int = 0, offset: Int = 0, findCharges: Boolean = false)

Forces rerouting (for guidance mode only): Recomputes route after blocking road segments of current route starting from next intersection and within a given length. Call this method during guidance process if you wish to force rerouting

Parameters

length

The length in meters of current route to block before rerouting

offset

The distance in meters from current position to start blocking (default = \c 0)

findCharges

defines if recalculation should include charge stops. This also requires that you have previously set a valid energetic vehicle profile and recharge parameters. You can use EVAlertingListener to be notified when the reachability of next stop (charging station or destination) has changed