Package com.mapbox.navigation.core.routealternatives

Types

Link copied to clipboard
class AlternativeRouteInfo

Valid only until RoutesObserver or NavigationRouteAlternativesObserver fires again.

Link copied to clipboard
class AlternativeRouteIntersection

Valid only until RoutesObserver or NavigationRouteAlternativesObserver fires again.

Link copied to clipboard
class AlternativeRouteMetadata

Metadata of an alternative route in the current navigation session.

Link copied to clipboard
interface NavigationRouteAlternativesObserver

Interface definition for an observer that is notified whenever the Navigation SDK checks for alternative routes to the destination change.

interface NavigationRouteAlternativesRequestCallback

Interface definition for a callback that is notified whenever alternatives routes are refreshed on demand.

Link copied to clipboard
class OnlineRouteAlternativesSwitch(    connectTimeoutMilliseconds: Int,     readTimeoutMilliseconds: Int,     minimumRetryInterval: Int,     avoidManeuverSeconds: Int = DEFAULT_AVOID_MANEUVER_SECONDS_FOR_ROUTE_ALTERNATIVES) : MapboxNavigationObserver

This components replaces offline route by an online alternative when it's available. Under the hood it's requesting routes in cycle from the current position until the first successful result. Normally this job should be done by the SDK. The problem is that it currently relies on platform reachability/connectivity notifications. However some environments don't have working reachability/connectivity API. This class is a temporary workaround for those environments until we reimplement route alternatives logic so that it handles offline-online switch even if platform's reachability API doesn't work.

Link copied to clipboard
class RouteAlternativesError

Provides a reason for a route alternatives request failure.

Link copied to clipboard
fun interface RouteAlternativesObserver

Interface definition for an observer that is notified whenever the Navigation SDK checks for alternative routes to the destination change.

Link copied to clipboard
interface RouteAlternativesRequestCallback

Interface definition for a callback that is notified whenever alternatives routes are refreshed on demand.