setDestination

suspend fun NavManagerService.setDestination(destination: SearchResult, waypoints: List<SearchResult>): Result<Unit>

Shows preview of the route to the user. Does not start the navigation yet.

Can be called to replace the destination or a waypoint, but the route would be completely rebuilt.

Throws

when the route to the destination could not be built for some routing reason (e.g. because it is physically impossible to reach the destination per car)