Class RouteLegProgress
-
- All Implemented Interfaces:
public final class RouteLegProgressThis is a progress object specific to the current leg the user is on. If there is only one leg in the directions route, much of this information will be identical to the parent RouteProgress.
The latest route leg progress object can be obtained through the com.trimblemaps.navigation.core.trip.session.RouteProgressObserver. Note that the route leg progress object's immutable.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRouteLegProgress.BuilderBuilder of RouteLegProgress.
-
Field Summary
Fields Modifier and Type Field Description private final IntegerlegIndexprivate final IntegergeometryIndexprivate final RouteLegrouteLegprivate final FloatdistanceTraveledprivate final FloatdistanceRemainingprivate final DoubledurationRemainingprivate final FloatfractionTraveledprivate final RouteStepProgresscurrentStepProgressprivate final LegStepupcomingStep
-
Method Summary
Modifier and Type Method Description final IntegergetLegIndex()final IntegergetGeometryIndex()final RouteLeggetRouteLeg()final FloatgetDistanceTraveled()final FloatgetDistanceRemaining()final DoublegetDurationRemaining()final FloatgetFractionTraveled()final RouteStepProgressgetCurrentStepProgress()final LegStepgetUpcomingStep()final RouteLegProgress.BuildertoBuilder()Booleanequals(Object other)Regenerate whenever a change is made IntegerhashCode()Regenerate whenever a change is made StringtoString()Returns a string representation of the object.
-
-
-
Method Detail
-
getLegIndex
final Integer getLegIndex()
-
getGeometryIndex
final Integer getGeometryIndex()
-
getRouteLeg
final RouteLeg getRouteLeg()
-
getDistanceTraveled
final Float getDistanceTraveled()
-
getDistanceRemaining
final Float getDistanceRemaining()
-
getDurationRemaining
final Double getDurationRemaining()
-
getFractionTraveled
final Float getFractionTraveled()
-
getCurrentStepProgress
final RouteStepProgress getCurrentStepProgress()
-
getUpcomingStep
final LegStep getUpcomingStep()
-
toBuilder
final RouteLegProgress.Builder toBuilder()
-
-