public abstract class RouteStepProgress
extends java.lang.Object
| Constructor and Description |
|---|
RouteStepProgress() |
| Modifier and Type | Method and Description |
|---|---|
double |
getDistanceRemaining()
Total distance in meters from user to end of step.
|
double |
getDistanceTraveled()
Returns distance user has traveled along current step in unit meters.
|
double |
getDurationRemaining()
Provides the duration remaining in seconds till the user reaches the end of the current step.
|
float |
getFractionTraveled()
Get the fraction traveled along the current step, this is a float value between 0 and 1 and isn't guaranteed to
reach 1 before the user reaches the next step (if another step exist in route).
|
abstract com.mapbox.services.api.directions.v5.models.LegStep |
step() |
abstract com.mapbox.services.commons.models.Position |
userSnappedPosition() |
public abstract com.mapbox.services.api.directions.v5.models.LegStep step()
public abstract com.mapbox.services.commons.models.Position userSnappedPosition()
public double getDistanceTraveled()
public double getDistanceRemaining()
public float getFractionTraveled()
public double getDurationRemaining()
long value representing the duration remaining till end of step, in unit seconds.