setDestinations

fun setDestinations(destinations: List<DestinationConfiguration>, routingConfiguration: RoutingConfiguration = RoutingConfiguration()): SetDestinationsError?

Replace the whole set of destinations of the currently running navigation. Keeps the given order and routes to one stop at a time. If the first entry matches the current stop, the active leg is not interrupted.

Return

null on success, or a SetDestinationsError describing why the destinations could not be updated.

Parameters

destinations

The new ordered list of stops. Must not be empty.

routingConfiguration

A RoutingConfiguration with trip-wide routing configuration.