Package es.situm.sdk.model.navigation
Class NavigationProgress.Builder
java.lang.Object
es.situm.sdk.model.navigation.NavigationProgress.Builder
- Enclosing class:
- NavigationProgress
NavigationProgress builder static inner class.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns aNavigationProgressbuilt from the parameters previously set.closestLocationInRoute(Location closestLocationInRoute) Sets theclosestLocationInRouteandclosestRoutePointand returns a reference to this Builder so that the methods can be chained together.closestRoutePoint(Point closestRoutePoint) Deprecated.distanceToClosestRoutePoint(double distanceToClosestRoutePoint) Sets thedistanceToClosestPointInRouteand returns a reference to this Builder so that the methods can be chained together.distanceToEndStep(double distanceToEndStep) Sets thedistanceToEndStepand returns a reference to this Builder so that the methods can be chained together.distanceToGoal(double distanceToGoal) Sets thedistanceToGoaland returns a reference to this Builder so that the methods can be chained together.indication(Indication indication) Sets thecurrentIndicationand returns a reference to this Builder so that the methods can be chained together.nextIndication(Indication nextIndication) Sets thenextIndicationand returns a reference to this Builder so that the methods can be chained together.Sets thepointsand returns a reference to this Builder so that the methods can be chained together.Sets therouteStepand returns a reference to this Builder so that the methods can be chained together.speed(double speed) Sets thespeedand returns a reference to this Builder so that the methods can be chained together.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
speed
Sets thespeedand returns a reference to this Builder so that the methods can be chained together.- Parameters:
speed- thespeedto set- Returns:
- a reference to this Builder
-
closestRoutePoint
Deprecated.Sets theclosestPointInRouteand returns a reference to this Builder so that the methods can be chained together.- Parameters:
closestRoutePoint- theclosestPointInRouteto set- Returns:
- a reference to this Builder
-
closestLocationInRoute
@NonNull public NavigationProgress.Builder closestLocationInRoute(@NonNull Location closestLocationInRoute) Sets theclosestLocationInRouteandclosestRoutePointand returns a reference to this Builder so that the methods can be chained together.- Parameters:
closestLocationInRoute- theclosestLocationInRouteto set- Returns:
- a reference to this Builder
-
distanceToClosestRoutePoint
@NonNull public NavigationProgress.Builder distanceToClosestRoutePoint(double distanceToClosestRoutePoint) Sets thedistanceToClosestPointInRouteand returns a reference to this Builder so that the methods can be chained together.- Parameters:
distanceToClosestRoutePoint- thedistanceToClosestPointInRouteto set- Returns:
- a reference to this Builder
-
distanceToEndStep
Sets thedistanceToEndStepand returns a reference to this Builder so that the methods can be chained together.- Parameters:
distanceToEndStep- thedistanceToEndStepto set- Returns:
- a reference to this Builder
-
distanceToGoal
Sets thedistanceToGoaland returns a reference to this Builder so that the methods can be chained together.- Parameters:
distanceToGoal- thedistanceToGoalto set- Returns:
- a reference to this Builder
-
routeStep
Sets therouteStepand returns a reference to this Builder so that the methods can be chained together.- Parameters:
routeStep- therouteStepto set- Returns:
- a reference to this Builder
-
indication
Sets thecurrentIndicationand returns a reference to this Builder so that the methods can be chained together.- Parameters:
indication- thecurrentIndicationto set- Returns:
- a reference to this Builder
-
nextIndication
Sets thenextIndicationand returns a reference to this Builder so that the methods can be chained together.- Parameters:
nextIndication- thenextIndicationto set- Returns:
- a reference to this Builder
-
points
Sets thepointsand returns a reference to this Builder so that the methods can be chained together.- Parameters:
points- thepointsto set- Returns:
- a reference to this Builder
-
build
Returns aNavigationProgressbuilt from the parameters previously set.- Returns:
- a
NavigationProgressbuilt with parameters of thisNavigationProgress.Builder
-
closestLocationInRoute(Location)