public static final class NavigationRequest.Builder
extends java.lang.Object
NavigationState builder static inner class.| Constructor and Description | 
|---|
Builder()  | 
Builder(NavigationRequest copy)  | 
| Modifier and Type | Method and Description | 
|---|---|
NavigationRequest | 
build()
Returns a  
NavigationState with the previously set parameters. | 
NavigationRequest.Builder | 
distanceToGoalThreshold(double distanceToGoalThreshold)
Sets the distance threshold from when the goal is considered reached. 
 | 
NavigationRequest.Builder | 
distanceToIgnoreFirstIndication(double distanceToIgnoreFirstIndication)
Sets the maximum distance to ignore the first indication when navigating a route. 
 | 
NavigationRequest.Builder | 
outsideRouteThreshold(double outsideRouteThreshold)
Sets the  
outsideRouteThreshold. | 
NavigationRequest.Builder | 
route(Route route)
Sets the  
Route whose progress is going to be updated. | 
public Builder()
public Builder(NavigationRequest copy)
public NavigationRequest.Builder route(Route route)
Route whose progress is going to be updated.route - the route to set, so that the methods can be chained together.public NavigationRequest.Builder distanceToGoalThreshold(double distanceToGoalThreshold)
NavigationRequest.DEFAULT_DISTANCE_THRESHOLD}.distanceToGoalThreshold - the distanceToGoalThreshold to set, in meters.public NavigationRequest.Builder outsideRouteThreshold(double outsideRouteThreshold)
outsideRouteThreshold.
 Default value is {NavigationRequest.DEFAULT_DISTANCE_THRESHOLD}.outsideRouteThreshold - the outsideRouteThreshold to setpublic NavigationRequest.Builder distanceToIgnoreFirstIndication(double distanceToIgnoreFirstIndication)
NavigationRequest.DEFAULT_DISTANCE_TO_IGNORE_FIRST_INDICATION}.distanceToIgnoreFirstIndication - the distanceToIgnoreFirstIndication to setpublic NavigationRequest build() throws java.lang.IllegalArgumentException
NavigationState with the previously set parameters.NavigationStatejava.lang.IllegalArgumentException