public abstract class RouteInformation extends Object
Constructor and Description |
---|
RouteInformation() |
Modifier and Type | Method and Description |
---|---|
static RouteInformation |
create(com.mapbox.api.directions.v5.models.DirectionsRoute route,
Location location,
RouteProgress routeProgress) |
abstract Location |
location()
The user's current location along the route.
|
abstract com.mapbox.api.directions.v5.models.DirectionsRoute |
route()
The current route the user is navigating along.
|
abstract RouteProgress |
routeProgress()
The user's current progress along the route.
|
@Nullable public abstract com.mapbox.api.directions.v5.models.DirectionsRoute route()
RouteInformation
is generated from an update to route
progress or from an orientation change.@Nullable public abstract Location location()
@Nullable public abstract RouteProgress routeProgress()
public static RouteInformation create(@Nullable com.mapbox.api.directions.v5.models.DirectionsRoute route, @Nullable Location location, @Nullable RouteProgress routeProgress)
© 2019 Mapbox. All rights reserved.