RouteProgress
RouteProgress
stores the user’s progress along a route.
-
Returns the current
Route
. -
Index representing current
RouteLeg
. -
If waypoints are provided in the
Route
, this will contain which leg the user is on. -
Returns the remaining legs left on the current route
-
Returns the remaining steps left on the current route
-
Returns true if
currentLeg
is the last leg. -
Total distance traveled by user along all legs.
-
Total seconds remaining on all legs.
-
Number between 0 and 1 representing how far along the
Route
the user has traveled. -
Total distance remaining in meters along route.
-
Number of waypoints remaining on the current route.
-
Returns the progress along the current
RouteLeg
. -
Tuple containing a
CongestionLevel
and a correspondingTimeInterval
representing the expected travel time for this segment. -
If the route contains both
segmentCongestionLevels
andexpectedSegmentTravelTimes
, this property is set to a deeply nested array ofTimeCongestionLevels
per segment per step per leg. -
An dictionary containing a
TimeInterval
total perCongestionLevel
. OnlyCongestionLevel
founnd on that step will present. Broken up by leg and then step. -
Intializes a new
RouteProgress
. -
An index into the route’s coordinates and congestionTravelTimesSegmentsByStep that corresponds to a step’s maneuver location.