Class RouteStepProgress.Builder
-
- All Implemented Interfaces:
public final class RouteStepProgress.BuilderBuilder of RouteStepProgress
-
-
Constructor Summary
Constructors Constructor Description RouteStepProgress.Builder()
-
Method Summary
Modifier and Type Method Description final RouteStepProgress.BuilderstepIndex(Integer stepIndex)Index representing the current step the user is on final RouteStepProgress.BuilderintersectionIndex(Integer intersectionIndex)Index representing the current intersection the user is on final RouteStepProgress.Builderstep(LegStep step)Returns the current step the user is traversing along final RouteStepProgress.BuilderstepPoints(List<Point> stepPoints)A list of points that represent the current step geometry final RouteStepProgress.BuilderdistanceRemaining(Float distanceRemaining)Total distance in meters from user to end of step final RouteStepProgress.BuilderdistanceTraveled(Float distanceTraveled)Returns distance user has traveled along current step in unit meters final RouteStepProgress.BuilderfractionTraveled(Float fractionTraveled)The fraction traveled along the current step. final RouteStepProgress.BuilderdurationRemaining(Double durationRemaining)The duration remaining in seconds until the user reaches the end of the current step final RouteStepProgressbuild()Build new instance of RouteStepProgress
-
-
-
Method Detail
-
stepIndex
final RouteStepProgress.Builder stepIndex(Integer stepIndex)
Index representing the current step the user is on
-
intersectionIndex
final RouteStepProgress.Builder intersectionIndex(Integer intersectionIndex)
Index representing the current intersection the user is on
-
step
final RouteStepProgress.Builder step(LegStep step)
Returns the current step the user is traversing along
-
stepPoints
final RouteStepProgress.Builder stepPoints(List<Point> stepPoints)
A list of points that represent the current step geometry
-
distanceRemaining
final RouteStepProgress.Builder distanceRemaining(Float distanceRemaining)
Total distance in meters from user to end of step
-
distanceTraveled
final RouteStepProgress.Builder distanceTraveled(Float distanceTraveled)
Returns distance user has traveled along current step in unit meters
-
fractionTraveled
final RouteStepProgress.Builder fractionTraveled(Float fractionTraveled)
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)
-
durationRemaining
final RouteStepProgress.Builder durationRemaining(Double durationRemaining)
The duration remaining in seconds until the user reaches the end of the current step
-
build
final RouteStepProgress build()
Build new instance of RouteStepProgress
-
-