navigateTo

abstract fun navigateTo(filter: NavigationFilter, accessibilityMode: DirectionsRequest.AccessibilityMode? = null)

Starts navigation to a destination that meets the restrictions defined in the given filter. The user location must be available.

Parameters

filter

Apply the restrictions that the destination must satisfy. See {@link NavigationFilter}

accessibilityMode

Choose the type of route. If null defaults to {@link DirectionsRequest.AccessibilityMode#CHOOSE_SHORTEST}.