public abstract class RouteOptions extends DirectionsJsonObject
Refer to Directions API documentation for details and up-to-date documentation for each of the parameters.
Modifier and Type | Class and Description |
---|---|
static class |
RouteOptions.Builder
This builder can be used to set the values describing the
RouteOptions . |
Constructor and Description |
---|
RouteOptions() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.Double |
alleyBias()
A scale from -1 to 1, where -1 biases the route against alleys
and 1 biases the route toward alleys.
|
abstract java.lang.Boolean |
alternatives()
Whether to try to return alternative routes (true) or not (false, default).
|
abstract java.lang.String |
annotations()
A comma-separated list of annotations.
|
java.util.List<java.lang.String> |
annotationsList()
A list of annotations.
|
abstract java.lang.String |
approaches()
A semicolon-separated list indicating from which side of the road
to approach a waypoint.
|
java.util.List<java.lang.String> |
approachesList()
Indicates from which side of the road to approach a waypoint.
|
abstract java.lang.String |
arriveBy()
The desired arrival time, formatted as a timestamp in ISO-8601 format
in the local time at the route destination.
|
abstract java.lang.Double |
avoidManeuverRadius()
A radius around a starting point where the routes' provider tries to avoid any
significant maneuvers.
|
abstract java.lang.Boolean |
bannerInstructions()
Whether to return banner objects associated with the route steps (true) or not
(false, default if null).
|
abstract java.lang.String |
baseUrl()
Base URL for the request.
|
abstract java.lang.String |
bearings()
Influences the direction in which a route starts from a waypoint.
|
java.util.List<Bearing> |
bearingsList()
Influences the direction in which a route starts from a waypoint.
|
static RouteOptions.Builder |
builder()
Build a new instance of
RouteOptions and sets default values for:
baseUrl() equal to DirectionsCriteria.BASE_API_URL .
user() equal to DirectionsCriteria.PROFILE_DEFAULT_USER .
geometries() equal to DirectionsCriteria.GEOMETRY_POLYLINE6 .
|
abstract java.lang.Boolean |
computeTollCost() |
abstract java.lang.Boolean |
continueStraight()
The allowed direction of travel when departing intermediate waypoints.
|
abstract java.lang.String |
coordinates()
A semicolon-separated list of {longitude},{latitude} coordinate pairs to visit in order.
|
java.util.List<com.mapbox.geojson.Point> |
coordinatesList()
A list of Points to visit in order.
|
abstract java.lang.String |
departAt()
The departure time, formatted as a timestamp in ISO-8601 format in the local time
at the route origin.
|
abstract java.lang.Boolean |
enableRefresh()
Whether the routes should be refreshable via the directions refresh API.
|
abstract java.lang.String |
exclude()
Exclude certain road types or points from routing.
|
java.util.List<java.lang.String> |
excludeList()
Exclude certain road types and points from routing.
|
Exclude |
excludeObject()
Exclude certain road types and points from routing.
|
static RouteOptions |
fromJson(java.lang.String json)
Create a new instance of this class by passing in a formatted valid JSON String
with a Mapbox Access Token.
|
static RouteOptions |
fromUrl(java.net.URL url)
Create a new instance of this class by passing a get request URL.
|
abstract java.lang.String |
geometries()
The format of the returned geometry.
|
abstract java.lang.String |
include()
Include certain road types in routing.
|
java.util.List<java.lang.String> |
includeList()
Include certain road types in routing.
|
abstract java.lang.String |
language()
The language of returned turn-by-turn text instructions.
|
abstract java.lang.String |
layers()
Influences layer of road from where route starts from a waypoint.
|
java.util.List<java.lang.Integer> |
layersList()
Influences layer of road from where route starts from a waypoint.
|
abstract java.lang.Double |
maxHeight()
The max vehicle height in meters.
|
abstract java.lang.Double |
maxWeight()
The max vehicle weight, in metric tons (1000 kg).
|
abstract java.lang.Double |
maxWidth()
The max vehicle width in meters.
|
abstract java.lang.Boolean |
metadata()
Whether the response should contain metadata holding versioning information.
|
abstract java.lang.String |
overview()
Displays the requested type of overview geometry.
|
abstract java.lang.String |
paymentMethods() |
java.util.List<java.lang.String> |
paymentMethodsList() |
abstract java.lang.String |
profile()
The routing profile to use.
|
abstract java.lang.String |
radiuses()
The maximum distance a coordinate can be moved to snap to the road network in meters.
|
java.util.List<java.lang.Double> |
radiusesList()
The maximum distance a coordinate can be moved to snap to the road network in meters.
|
abstract java.lang.Boolean |
roundaboutExits()
Whether to emit instructions at roundabout exits (true) or not (false, default if null).
|
abstract java.lang.String |
snappingIncludeClosures()
A semicolon-separated list of booleans affecting snapping of waypoint locations to road
segments.
|
java.util.List<java.lang.Boolean> |
snappingIncludeClosuresList()
A list of booleans affecting snapping of waypoint locations to road segments.
|
abstract java.lang.String |
snappingIncludeStaticClosures()
A semicolon-separated list of booleans affecting snapping of
waypoint locations to road segments.
|
java.util.List<java.lang.Boolean> |
snappingIncludeStaticClosuresList()
A list of booleans affecting snapping of waypoint locations to road segments.
|
abstract java.lang.Boolean |
steps()
Whether to return steps and turn-by-turn instructions (true)
or not (false if null, default).
|
abstract java.lang.Boolean |
suppressVoiceInstructionLocalNames() |
abstract RouteOptions.Builder |
toBuilder()
Convert the current
RouteOptions to its builder holding the currently assigned
values. |
java.lang.String |
toJson()
This takes the currently defined values found inside this instance and converts it to a json
string.
|
java.net.URL |
toUrl(java.lang.String accessToken)
Create an encoded URL from RouteOptions instance.
|
static com.google.gson.TypeAdapter<RouteOptions> |
typeAdapter(com.google.gson.Gson gson)
Gson type adapter for parsing Gson to this class.
|
abstract java.lang.String |
user()
The user parameter of the request, defaults to "mapbox".
|
abstract java.lang.Boolean |
voiceInstructions()
Whether to return SSML marked-up text for voice guidance along the route (true) or not
(false, default if null).
|
abstract java.lang.String |
voiceUnits()
A type of units to return in the text for voice instructions.
|
abstract java.lang.Double |
walkingSpeed()
The walking speed in meters per second with a minimum of 0.14 m/s (or 0.5 km/h)
and a maximum of 6.94 m/s (or 25.0 km/h).
|
abstract java.lang.Double |
walkwayBias()
A bias which determines whether the route should prefer or avoid the use of roads or paths
that are set aside for pedestrian-only use (walkways).
|
abstract java.lang.String |
waypointIndices()
A semicolon-separated list indicating which input coordinates
should be treated as waypoints.
|
java.util.List<java.lang.Integer> |
waypointIndicesList()
A list indicating which input coordinates should be treated as waypoints.
|
abstract java.lang.String |
waypointNames()
A semicolon-separated list of custom names for entries in the list of
coordinates() , used for the arrival instruction in banners and voice
instructions. |
java.util.List<java.lang.String> |
waypointNamesList()
A list of custom names for entries in the list of
coordinatesList() , used for the arrival instruction in banners and voice
instructions. |
abstract java.lang.Boolean |
waypointsPerRoute()
If true, the waypoints array is returned within the route object, else its returned
at the root of the response body.
|
abstract java.lang.String |
waypointTargets()
A semicolon-separated list of coordinate pairs used to specify drop-off
locations that are distinct from the locations specified in coordinates.
|
java.util.List<com.mapbox.geojson.Point> |
waypointTargetsList()
A list of points used to specify drop-off
locations that are distinct from the locations specified in coordinates.
|
getUnrecognizedJsonProperties, getUnrecognizedPropertiesNames, getUnrecognizedProperty
public static RouteOptions.Builder builder()
RouteOptions
and sets default values for:
baseUrl()
equal to DirectionsCriteria.BASE_API_URL
.user()
equal to DirectionsCriteria.PROFILE_DEFAULT_USER
.geometries()
equal to DirectionsCriteria.GEOMETRY_POLYLINE6
.@NonNull public abstract java.lang.String baseUrl()
@NonNull public abstract java.lang.String user()
@NonNull public abstract java.lang.String profile()
DirectionsCriteria.PROFILE_DRIVING_TRAFFIC
, DirectionsCriteria.PROFILE_DRIVING
,
DirectionsCriteria.PROFILE_WALKING
, or DirectionsCriteria.PROFILE_CYCLING
.DirectionsCriteria.ProfileCriteria
@NonNull public abstract java.lang.String coordinates()
DirectionsCriteria.PROFILE_DRIVING_TRAFFIC
requests.
Contact Mapbox Support if you'd like to extend this limit.
Note that these coordinates are different than the DirectionsWaypoint
s
found in the DirectionsResponse
which are snapped to a road.
Point
s which represent the route origin, destination,
and optionally waypoints@NonNull public java.util.List<com.mapbox.geojson.Point> coordinatesList()
DirectionsCriteria.PROFILE_DRIVING_TRAFFIC
requests.
Contact Mapbox Support if you'd like to extend this limit.
Note that these coordinates are different than the DirectionsWaypoint
s
found in the DirectionsResponse
which are snapped to a road.
Point
s which represent the route origin, destination,
and optionally waypoints@Nullable public abstract java.lang.Boolean alternatives()
DirectionsCriteria.PROFILE_DRIVING_TRAFFIC
,
DirectionsCriteria.PROFILE_DRIVING
, DirectionsCriteria.PROFILE_CYCLING
.
The order of the routes in the response is not sorted by duration, but by weight. The first route in the list is not the most preferable because of the duration, but also based on the type of maneuvers.
If null is provided, the Directions API defaults to false.
@Nullable public abstract java.lang.String language()
steps()
=true.
Refer to supported languages list for details.
@Nullable public abstract java.lang.String radiuses()
A NoSegment error is returned if no routable road is found within the radius.
@Nullable public java.util.List<java.lang.Double> radiusesList()
Double.POSITIVE_INFINITY
for unlimited.
A NoSegment error is returned if no routable road is found within the radius.
@Nullable public abstract java.lang.String bearings()
@Nullable public java.util.List<Bearing> bearingsList()
Bearing
values.
If provided, the list of bearings must be the same length as the list of coordinates.
@SerializedName(value="avoid_maneuver_radius") @Nullable public abstract java.lang.Double avoidManeuverRadius()
Note: the param cannot be used with departAt()
and arriveBy()
,
since these modes are used for reference requests, not for real-time routing.
@Nullable public abstract java.lang.String layers()
If provided, the list of layers must be the same length as the list of coordinates.
@Nullable public java.util.List<java.lang.Integer> layersList()
If provided, the list of layers must be the same length as the list of coordinates.
@SerializedName(value="continue_straight") @Nullable public abstract java.lang.Boolean continueStraight()
DirectionsCriteria.PROFILE_DRIVING
and false
for DirectionsCriteria.PROFILE_WALKING
and DirectionsCriteria.PROFILE_CYCLING
.@SerializedName(value="roundabout_exits") @Nullable public abstract java.lang.Boolean roundaboutExits()
steps()
=true.@NonNull public abstract java.lang.String geometries()
DirectionsCriteria.GEOMETRY_POLYLINE
(a polyline with a precision of five
decimal places), DirectionsCriteria.GEOMETRY_POLYLINE6
(default, a polyline with a precision of six decimal places).DirectionsCriteria.GeometriesCriteria
.@Nullable public abstract java.lang.String overview()
DirectionsCriteria.OVERVIEW_FULL
(the most detailed geometry
available), DirectionsCriteria.OVERVIEW_SIMPLIFIED
(default if null,
a simplified version of the full geometry),
or DirectionsCriteria.OVERVIEW_FALSE
(no overview geometry).DirectionsCriteria.OverviewCriteria
@Nullable public abstract java.lang.Boolean steps()
bannerInstructions()
, language()
,
roundaboutExits()
, voiceInstructions()
,
voiceUnits()
, waypointNames()
,
waypointNamesList()
, waypointTargets()
,
waypointTargetsList()
, waypointIndices()
,
waypointIndicesList()
, alleyBias()
@Nullable public abstract java.lang.String annotations()
DirectionsCriteria.ANNOTATION_DISTANCE
DirectionsCriteria.ANNOTATION_DURATION
DirectionsCriteria.ANNOTATION_SPEED
DirectionsCriteria.ANNOTATION_CONGESTION
DirectionsCriteria.ANNOTATION_CONGESTION_NUMERIC
DirectionsCriteria.ANNOTATION_MAXSPEED
DirectionsCriteria.ANNOTATION_CLOSURE
See the RouteLeg
object for more details on what is included with annotations.
Must be used in conjunction with DirectionsCriteria.OVERVIEW_FULL
in overview()
.
@Nullable public java.util.List<java.lang.String> annotationsList()
DirectionsCriteria.ANNOTATION_DISTANCE
DirectionsCriteria.ANNOTATION_DURATION
DirectionsCriteria.ANNOTATION_SPEED
DirectionsCriteria.ANNOTATION_CONGESTION
DirectionsCriteria.ANNOTATION_CONGESTION_NUMERIC
DirectionsCriteria.ANNOTATION_MAXSPEED
DirectionsCriteria.ANNOTATION_CLOSURE
See the RouteLeg
object for more details on what is included with annotations.
Must be used in conjunction with DirectionsCriteria.OVERVIEW_FULL
in overview()
.
@Nullable public abstract java.lang.String exclude()
DirectionsCriteria.PROFILE_DRIVING
: One of DirectionsCriteria.EXCLUDE_TOLL
,
DirectionsCriteria.EXCLUDE_MOTORWAY
, or DirectionsCriteria.EXCLUDE_FERRY
.
DirectionsCriteria.PROFILE_DRIVING_TRAFFIC
: One of
DirectionsCriteria.EXCLUDE_TOLL
, DirectionsCriteria.EXCLUDE_MOTORWAY
, or
DirectionsCriteria.EXCLUDE_FERRY
.
DirectionsCriteria.PROFILE_WALKING
: No excludes supported
DirectionsCriteria.PROFILE_CYCLING
: DirectionsCriteria.EXCLUDE_FERRY
Excluded points are formatted like: point(longitude latitude)
DirectionsCriteria.ExcludeCriteria
exclusion or a point@Nullable public java.util.List<java.lang.String> excludeList()
DirectionsCriteria.PROFILE_DRIVING
: One of DirectionsCriteria.EXCLUDE_TOLL
,
DirectionsCriteria.EXCLUDE_MOTORWAY
, or DirectionsCriteria.EXCLUDE_FERRY
.
DirectionsCriteria.PROFILE_DRIVING_TRAFFIC
: One of
DirectionsCriteria.EXCLUDE_TOLL
, DirectionsCriteria.EXCLUDE_MOTORWAY
, or
DirectionsCriteria.EXCLUDE_FERRY
.
DirectionsCriteria.PROFILE_WALKING
: No excludes supported
DirectionsCriteria.PROFILE_CYCLING
: DirectionsCriteria.EXCLUDE_FERRY
Excluded points are formatted like: point(longitude latitude)
DirectionsCriteria.ExcludeCriteria
exclusion or a point@Nullable public Exclude excludeObject()
Exclude object may not provide all features that are currently present by Direction API.
See Exclude
for more details.
@Nullable public abstract java.lang.String include()
DirectionsCriteria.PROFILE_DRIVING
: One of DirectionsCriteria.INCLUDE_HOV2
,
DirectionsCriteria.INCLUDE_HOV3
, or DirectionsCriteria.INCLUDE_HOT
.
DirectionsCriteria.PROFILE_DRIVING_TRAFFIC
: One of
DirectionsCriteria.INCLUDE_HOV2
, DirectionsCriteria.INCLUDE_HOV3
, or
DirectionsCriteria.INCLUDE_HOT
.
DirectionsCriteria.PROFILE_WALKING
: No includes supported
DirectionsCriteria.PROFILE_CYCLING
: No includes supported
DirectionsCriteria.IncludeCriteria
inclusions@Nullable public java.util.List<java.lang.String> includeList()
DirectionsCriteria.PROFILE_DRIVING
: One of DirectionsCriteria.INCLUDE_HOV2
,
DirectionsCriteria.INCLUDE_HOV3
, or DirectionsCriteria.INCLUDE_HOT
.
DirectionsCriteria.PROFILE_DRIVING_TRAFFIC
: One of
DirectionsCriteria.INCLUDE_HOV2
, DirectionsCriteria.INCLUDE_HOV3
, or
DirectionsCriteria.INCLUDE_HOT
.
DirectionsCriteria.PROFILE_WALKING
: No includes supported
DirectionsCriteria.PROFILE_CYCLING
: No includes supported
DirectionsCriteria.IncludeCriteria
inclusions@SerializedName(value="voice_instructions") @Nullable public abstract java.lang.Boolean voiceInstructions()
steps()
=true.@SerializedName(value="banner_instructions") @Nullable public abstract java.lang.Boolean bannerInstructions()
steps()
=true.@SerializedName(value="voice_units") @Nullable public abstract java.lang.String voiceUnits()
DirectionsCriteria.IMPERIAL
(default) or DirectionsCriteria.METRIC
.
Must be used in conjunction with steps()
=true and
steps()
=true
and voiceInstructions()
=true.@Nullable public abstract java.lang.String approaches()
DirectionsCriteria.APPROACH_UNRESTRICTED
(default) or
DirectionsCriteria.APPROACH_CURB
.
If set to DirectionsCriteria.APPROACH_UNRESTRICTED
, the route can approach waypoints
from either side of the road.
If set to DirectionsCriteria.APPROACH_CURB
, the route will be returned so that on
arrival, the waypoint will be found on the side that corresponds with the driving_side of the
region in which the returned route is located.
If provided, the list of approaches must be the same length as the list of waypoints.
However, you can skip a coordinate and show its position in the list with the ; separator.
Since the first value will not be evaluated, begin the list with a semicolon.
If the waypoint is within 1 meter of the road, this parameter is ignored.@Nullable public java.util.List<java.lang.String> approachesList()
DirectionsCriteria.APPROACH_UNRESTRICTED
(default) or
DirectionsCriteria.APPROACH_CURB
.
If set to DirectionsCriteria.APPROACH_UNRESTRICTED
, the route can approach waypoints
from either side of the road.
If set to DirectionsCriteria.APPROACH_CURB
, the route will be returned so that on
arrival, the waypoint will be found on the side that corresponds with the driving_side of the
region in which the returned route is located.
If provided, the list of approaches must be the same length as the list of waypoints.
However, you can skip a coordinate and show its position in the list with null.
Since the first value will not be evaluated, you can begin the list with a null.
If the waypoint is within 1 meter of the road, this parameter is ignored.@SerializedName(value="waypoints") @Nullable public abstract java.lang.String waypointIndices()
Waypoints form the beginning and end of each leg in the returned route and correspond to the depart and arrive steps. If a list of waypoints is not provided, all coordinates are treated as waypoints. Each item in the list must be the zero-based index of an input coordinate, and the list must include 0 (the index of the first coordinate) and the index of the last coordinate. The waypoints parameter can be used to guide the path of the route without introducing additional legs and arrive/depart instructions.
For example, if a coordinates list has 3 points, origin, some middle point, and destination, we can have below combinations:
- waypointIndices are null, the route will have 2 legs
- waypointIndices are "0;1;2", the route will have 2 legs
- waypointIndices are "0;2", the route will have only one leg that goes via the middle point
Must be used with steps()
=true.
@Nullable public java.util.List<java.lang.Integer> waypointIndicesList()
Waypoints form the beginning and end of each leg in the returned route and correspond to the depart and arrive steps. If a list of waypoints is not provided, all coordinates are treated as waypoints. Each item in the list must be the zero-based index of an input coordinate, and the list must include 0 (the index of the first coordinate) and the index of the last coordinate. The waypoints parameter can be used to guide the path of the route without introducing additional legs and arrive/depart instructions.
For example, if a coordinates list has 3 points, origin, some middle point, and destination, we can have below combinations:
- waypointIndices are null, the route will have 2 legs
- waypointIndices are [0,1,2], the route will have 2 legs
- waypointIndices are [0,2], the route will have only one leg that goes via the middle point
Must be used with steps()
=true.
@SerializedName(value="waypoint_names") @Nullable public abstract java.lang.String waypointNames()
coordinates()
, used for the arrival instruction in banners and voice
instructions. Values can be any string, and the total number of all characters cannot exceed
500. If provided, the list of waypoint_names must be the same length as the list of
coordinates. The first value in the list corresponds to the route origin, not the first
destination.
To leave the origin unnamed, begin the list with a semicolon.
Must be used in conjunction with steps()
=true.@Nullable public java.util.List<java.lang.String> waypointNamesList()
coordinatesList()
, used for the arrival instruction in banners and voice
instructions. Values can be any string, and the total number of all characters cannot exceed
500. If provided, the list of names must be the same length as the list of
coordinates. The first value in the list corresponds to the route origin, not the first
destination.
Must be used in conjunction with steps()
=true.
@SerializedName(value="waypoint_targets") @Nullable public abstract java.lang.String waypointTargets()
Must be used with steps()
=true.
@Nullable public java.util.List<com.mapbox.geojson.Point> waypointTargetsList()
steps()
=true.@SerializedName(value="waypoints_per_route") @Nullable public abstract java.lang.Boolean waypointsPerRoute()
@SerializedName(value="alley_bias") @Nullable public abstract java.lang.Double alleyBias()
@SerializedName(value="walking_speed") @Nullable public abstract java.lang.Double walkingSpeed()
Only available with the DirectionsCriteria.PROFILE_WALKING
.
@SerializedName(value="walkway_bias") @Nullable public abstract java.lang.Double walkwayBias()
Only available with the DirectionsCriteria.PROFILE_WALKING
.
@SerializedName(value="snapping_include_closures") @Nullable public abstract java.lang.String snappingIncludeClosures()
Only available with the DirectionsCriteria.PROFILE_DRIVING_TRAFFIC
.
@SerializedName(value="snapping_include_static_closures") @Nullable public abstract java.lang.String snappingIncludeStaticClosures()
Only available with the DirectionsCriteria.PROFILE_DRIVING_TRAFFIC
.
@Nullable public java.util.List<java.lang.Boolean> snappingIncludeClosuresList()
Only available with the DirectionsCriteria.PROFILE_DRIVING_TRAFFIC
.
@Nullable public java.util.List<java.lang.Boolean> snappingIncludeStaticClosuresList()
Only available with the DirectionsCriteria.PROFILE_DRIVING_TRAFFIC
.
@SerializedName(value="arrive_by") @Nullable public abstract java.lang.String arriveBy()
Only available with the DirectionsCriteria.PROFILE_DRIVING
.
@SerializedName(value="depart_at") @Nullable public abstract java.lang.String departAt()
Only available with the DirectionsCriteria.PROFILE_DRIVING
.
@SerializedName(value="max_height") @Nullable public abstract java.lang.Double maxHeight()
Available for DirectionsCriteria.PROFILE_DRIVING_TRAFFIC
and
DirectionsCriteria.PROFILE_DRIVING
.
@SerializedName(value="max_width") @Nullable public abstract java.lang.Double maxWidth()
Available for DirectionsCriteria.PROFILE_DRIVING_TRAFFIC
and
DirectionsCriteria.PROFILE_DRIVING
.
@SerializedName(value="max_weight") @Nullable public abstract java.lang.Double maxWeight()
The default value is 2.5 metric tons.
@SerializedName(value="enable_refresh") @Nullable public abstract java.lang.Boolean enableRefresh()
If false, the refresh requests will fail. Defaults to false if null.
@SerializedName(value="compute_toll_cost") @Nullable public abstract java.lang.Boolean computeTollCost()
@SerializedName(value="metadata") @Nullable public abstract java.lang.Boolean metadata()
@SerializedName(value="payment_methods") @Nullable public abstract java.lang.String paymentMethods()
@Nullable public java.util.List<java.lang.String> paymentMethodsList()
@SerializedName(value="suppress_voice_instruction_local_names") @Nullable public abstract java.lang.Boolean suppressVoiceInstructionLocalNames()
public static com.google.gson.TypeAdapter<RouteOptions> typeAdapter(com.google.gson.Gson gson)
gson
- the built Gson
object@NonNull public static RouteOptions fromJson(@NonNull java.lang.String json)
json
- a formatted valid JSON string defining a RouteOptionsfromUrl(URL)
public java.lang.String toJson()
The access token field is not serialized when using this method.
toJson
in class DirectionsJsonObject
@NonNull public static RouteOptions fromUrl(@NonNull java.net.URL url)
url
- request URLfromJson(String)
@NonNull public java.net.URL toUrl(@NonNull java.lang.String accessToken)
accessToken
- access token to make API request@NonNull public abstract RouteOptions.Builder toBuilder()
RouteOptions
to its builder holding the currently assigned
values. This allows you to modify a single property and then rebuild the object resulting in
an updated and modified RouteOptions
.RouteOptions.Builder
with the same values set to match the ones defined
in this RouteOptions