RouteLegProgress
RouteLegProgress
stores the user’s progress along a route leg.
-
Returns the current
RouteLeg
. -
Index representing the current step.
-
The remaining steps for user to complete.
-
Total distance traveled in meters along current leg.
-
Duration remaining in seconds on current leg.
-
Distance remaining on the current leg.
-
Number between 0 and 1 representing how far along the current leg the user has traveled.
-
-
Returns the
RouteStep
before a given step. Returnsnil
if there is no step prior. -
Returns the
RouteStep
after a given step. Returnsnil
if there is not a step after. -
Returns the
RouteStep
before the current step.If there is no
priorStep
, nil is returned. -
Returns the current
RouteStep
for the leg the user is on. -
-
Returns step 2 steps ahead.
If there is no
followOnStep
, nil is returned. -
Return bool whether step provided is the current
RouteStep
the user is on. -
Returns the progress along the current
RouteStep
. -
Intializes a new
RouteLegProgress
.