Class RouteInformation
-
- All Implemented Interfaces:
public final class RouteInformationThis class holds all information related to a route and a user's progress along the route. It also provides useful information (screen configuration and target distance) which can be used to make additional configuration changes to the map's camera.
-
-
Field Summary
Fields Modifier and Type Field Description private final DirectionsRouterouteprivate final Locationlocationprivate final RouteProgressrouteProgress
-
Constructor Summary
Constructors Constructor Description RouteInformation(DirectionsRoute route, Location location, RouteProgress routeProgress)
-
Method Summary
Modifier and Type Method Description final DirectionsRoutegetRoute()The current route the user is navigating along. final LocationgetLocation()The user's current location along the route. final RouteProgressgetRouteProgress()The user's current progress along the route.
-
-
-
Constructor Detail
-
RouteInformation
RouteInformation(DirectionsRoute route, Location location, RouteProgress routeProgress)
-
-
Method Detail
-
getRoute
final DirectionsRoute getRoute()
The current route the user is navigating along. This value will update when reroutes occur and it will be null if the RouteInformation is generated from an update to route progress or from an orientation change.
-
getLocation
final Location getLocation()
The user's current location along the route. This value will update when orientation changes occur as well as when progress along a route changes.
-
getRouteProgress
final RouteProgress getRouteProgress()
The user's current progress along the route.
-
-