Package com.mapbox.navigation.base.route

Types

Link copied to clipboard
data class ExclusionViolation(    val type: String,     val route: DirectionsRoute,     val legIndex: Int,     val leg: RouteLeg,     val stepIndex: Int,     val step: LegStep,     val intersectionIndex: Int,     val intersection: StepIntersection)

Violated road type.

Link copied to clipboard
class LegWaypoint

The class contains information about a waypoint which breaks the route into legs (not the silent one).

Link copied to clipboard
class NavigationRoute

Wraps a route object used across the Navigation SDK features.

Link copied to clipboard
interface NavigationRouterCallback

Interface definition for a callback associated with routes request.

Link copied to clipboard
class RouteAlternativesOptions

The options available for observing alternative routes. The RouteOptions used to set the current active route are updated according to the current route progress.

Link copied to clipboard
class RouteRefreshOptions

The options available for refreshing the current primary NavigationRoute, as well as the alternatives. Each refresh will update:

Link copied to clipboard
data class RouterFailure @JvmOverloads constructor(    val url: URL,     val routerOrigin: RouterOrigin,     val message: String,     val code: Int? = null,     val throwable: Throwable? = null,     val isRetryable: Boolean = false)

Describes a reason for a route request failure.

Link copied to clipboard
sealed class RouterOrigin

Describes which kind of router presents response.

Functions

Link copied to clipboard
fun NavigationRoute.exclusionViolations(): List<ExclusionViolation>

Returns all violated exclusions for this route.

Link copied to clipboard
fun List<NavigationRoute>.toDirectionsRoutes(): List<DirectionsRoute>
Link copied to clipboard
fun DirectionsRoute.toNavigationRoute(routerOrigin: RouterOrigin): NavigationRoute

Maps DirectionsRoute to NavigationRoute.

Link copied to clipboard
fun List<DirectionsRoute>.toNavigationRoutes(routerOrigin: RouterOrigin): List<NavigationRoute>

Maps DirectionsRoutes to NavigationRoutes.

Properties

Link copied to clipboard
val List<RouterFailure>?.isRetryable: Boolean

Indicates if it makes sense to retry for this type of failures. If false, it doesn't make sense to retry route request