Class RouteProgress
-
- All Implemented Interfaces:
public final class RouteProgressThis class contains all progress information at any given time during a navigation session. This progress includes information for the current route, leg, and step that the user is traveling along. With every new valid location update, a new route progress will be generated using the latest information.
The latest route progress object can be obtained through the com.trimblemaps.navigation.core.trip.session.RouteProgressObserver. Note that the route progress object's immutable.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRouteProgress.BuilderBuilder for RouteProgress
-
Field Summary
Fields Modifier and Type Field Description private final DirectionsRouterouteprivate final GeometryrouteGeometryWithBufferprivate final BannerInstructionsbannerInstructionsprivate final VoiceInstructionsvoiceInstructionsprivate final RouteProgressStatecurrentStateprivate final RouteLegProgresscurrentLegProgressprivate final List<Point>upcomingStepPointsprivate final BooleaninTunnelprivate final FloatdistanceRemainingprivate final FloatdistanceTraveledprivate final DoubledurationRemainingprivate final FloatfractionTraveledprivate final IntegerremainingWaypointsprivate final List<UpcomingRouteAlert>upcomingRouteAlerts
-
Method Summary
Modifier and Type Method Description final DirectionsRoutegetRoute()final GeometrygetRouteGeometryWithBuffer()final BannerInstructionsgetBannerInstructions()final VoiceInstructionsgetVoiceInstructions()final RouteProgressStategetCurrentState()final RouteLegProgressgetCurrentLegProgress()final List<Point>getUpcomingStepPoints()final BooleangetInTunnel()final FloatgetDistanceRemaining()final FloatgetDistanceTraveled()final DoublegetDurationRemaining()final FloatgetFractionTraveled()final IntegergetRemainingWaypoints()final List<UpcomingRouteAlert>getUpcomingRouteAlerts()final RouteProgress.BuildertoBuilder()Booleanequals(Object other)Indicates whether some other object is "equal to" this one. IntegerhashCode()Returns a hash code value for the object. StringtoString()Returns a string representation of the object.
-
-
-
Method Detail
-
getRoute
final DirectionsRoute getRoute()
-
getRouteGeometryWithBuffer
final Geometry getRouteGeometryWithBuffer()
-
getBannerInstructions
final BannerInstructions getBannerInstructions()
-
getVoiceInstructions
final VoiceInstructions getVoiceInstructions()
-
getCurrentState
final RouteProgressState getCurrentState()
-
getCurrentLegProgress
final RouteLegProgress getCurrentLegProgress()
-
getUpcomingStepPoints
final List<Point> getUpcomingStepPoints()
-
getInTunnel
final Boolean getInTunnel()
-
getDistanceRemaining
final Float getDistanceRemaining()
-
getDistanceTraveled
final Float getDistanceTraveled()
-
getDurationRemaining
final Double getDurationRemaining()
-
getFractionTraveled
final Float getFractionTraveled()
-
getRemainingWaypoints
final Integer getRemainingWaypoints()
-
getUpcomingRouteAlerts
final List<UpcomingRouteAlert> getUpcomingRouteAlerts()
-
toBuilder
final RouteProgress.Builder toBuilder()
-
-