-
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
. -
Returns the SpeedLimit for the current position along the route. Returns SpeedLimit.invalid if the speed limit is unknown or missing.
The maximum speed may be an advisory speed limit for segments where legal limits are not posted, such as highway entrance and exit ramps. If the speed limit along a particular segment is unknown, it is set to
nil
. If the speed is unregulated along the segment, such as on the German Autobahn system, it is represented by a measurement whose value isDouble.infinity
.Speed limit data is available in a number of countries and territories worldwide.
-