public abstract static class StepIntersection.Builder
extends java.lang.Object
StepIntersection.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
abstract StepIntersection.Builder |
adminIndex(java.lang.Integer adminIndex)
The zero-based index into the admin list on the route leg for this intersection.
|
abstract StepIntersection.Builder |
bearings(java.util.List<java.lang.Integer> bearing)
An integer array of bearing values available at the step intersection.
|
abstract StepIntersection |
build()
Build a new
StepIntersection object. |
abstract StepIntersection.Builder |
classes(java.util.List<java.lang.String> classes)
A list of strings signifying the classes of the road exiting the intersection.
|
abstract StepIntersection.Builder |
entry(java.util.List<java.lang.Boolean> entry)
A list of entry flags, corresponding in a 1:1 relationship to the bearings.
|
abstract StepIntersection.Builder |
geometryIndex(java.lang.Integer geometryIndex)
The zero-based index for the intersection.
|
abstract StepIntersection.Builder |
in(java.lang.Integer in)
Index into bearings/entry array.
|
abstract StepIntersection.Builder |
isUrban(java.lang.Boolean isUrban)
A boolean indicating whether the road exiting the intersection is considered to be in an
urban area.
|
abstract StepIntersection.Builder |
lanes(java.util.List<IntersectionLanes> lanes)
Array of lane objects that represent the available turn lanes at the intersection.
|
abstract StepIntersection.Builder |
mapboxStreetsV8(MapboxStreetsV8 street)
An object containing detailed information about the road exiting the intersection along the
route.
|
abstract StepIntersection.Builder |
out(java.lang.Integer out)
Index out of the bearings/entry array.
|
abstract StepIntersection.Builder |
railwayCrossing(java.lang.Boolean railwayCrossing)
Indicates whether there is a railway crossing at the intersection.
|
abstract StepIntersection.Builder |
rawLocation(double[] rawLocation)
The rawLocation as a double array.
|
abstract StepIntersection.Builder |
restStop(RestStop restStop)
An object containing information about passing rest stops along the route.
|
abstract StepIntersection.Builder |
stopSign(java.lang.Boolean stopSign)
Indicates whether there is a stop sign at the intersection.
|
abstract StepIntersection.Builder |
tollCollection(TollCollection tollCollection)
An object containing information about a toll collection point along the route.
|
abstract StepIntersection.Builder |
trafficSignal(java.lang.Boolean trafficSignal)
Indicates whether there is a traffic signal at the intersection.
|
abstract StepIntersection.Builder |
tunnelName(java.lang.String tunnelName)
Name of the tunnel.
|
T |
unrecognizedJsonProperties(java.util.Map<java.lang.String,com.google.gson.JsonElement> unrecognizedProperties)
Use this method to add parameters which are not present in the model yet but are supported
on the Directions API side in the response.
|
abstract StepIntersection.Builder |
yieldSign(java.lang.Boolean yieldSign)
Indicates whether there is a yield sign at the intersection.
|
@NonNull public abstract StepIntersection.Builder bearings(@Nullable java.util.List<java.lang.Integer> bearing)
bearing - An array of bearing values (for example [0,90,180,270]) that are available at
the intersection. The bearings describe all available roads at the
intersection.@NonNull public abstract StepIntersection.Builder classes(@Nullable java.util.List<java.lang.String> classes)
classes - a list of strings containing the classes of the road exiting the intersection@NonNull public abstract StepIntersection.Builder entry(@Nullable java.util.List<java.lang.Boolean> entry)
entry - a Boolean list of entry flags, corresponding in a 1:1 relationship to
the bearings@NonNull public abstract StepIntersection.Builder in(@Nullable java.lang.Integer in)
in - index into bearings/entry array@NonNull public abstract StepIntersection.Builder out(@Nullable java.lang.Integer out)
out - index out of the bearings/entry array@NonNull public abstract StepIntersection.Builder lanes(@Nullable java.util.List<IntersectionLanes> lanes)
lanes - array of lane objects that represent the available turn lanes at the
intersection@NonNull public abstract StepIntersection.Builder geometryIndex(@Nullable java.lang.Integer geometryIndex)
geometryIndex - index for the intersection@NonNull public abstract StepIntersection.Builder isUrban(@Nullable java.lang.Boolean isUrban)
DirectionsCriteria.PROFILE_DRIVING profile.isUrban - indicating whether the road exiting the intersection is in an urban area@NonNull public abstract StepIntersection.Builder adminIndex(@Nullable java.lang.Integer adminIndex)
adminIndex - zero-based index into the admin list on the route leg for this intersection@NonNull public abstract StepIntersection.Builder restStop(@Nullable RestStop restStop)
restStop - object containing information about passing rest stops along the route.@NonNull public abstract StepIntersection.Builder tollCollection(@Nullable TollCollection tollCollection)
tollCollection - object containing information about
a toll collection point along the route.@NonNull public abstract StepIntersection.Builder mapboxStreetsV8(@Nullable MapboxStreetsV8 street)
StepIntersection.classes()
specification. Only available on the DirectionsCriteria.PROFILE_DRIVING profile.street - an object containing detailed road information.@NonNull public abstract StepIntersection.Builder tunnelName(@Nullable java.lang.String tunnelName)
tunnelName - name of the tunnel@NonNull public abstract StepIntersection.Builder railwayCrossing(@Nullable java.lang.Boolean railwayCrossing)
railwayCrossing - whether there is a railway crossing at the intersection.@NonNull public abstract StepIntersection.Builder trafficSignal(@Nullable java.lang.Boolean trafficSignal)
trafficSignal - whether there is a traffic signal at the intersection.@NonNull public abstract StepIntersection.Builder stopSign(@Nullable java.lang.Boolean stopSign)
stopSign - whether there is a stop sign at the intersection.@NonNull public abstract StepIntersection.Builder yieldSign(@Nullable java.lang.Boolean yieldSign)
yieldSign - whether there is a yield sign at the intersection.@NonNull public abstract StepIntersection.Builder rawLocation(@NonNull double[] rawLocation)
StepIntersection object's created,
this raw location gets converted into a Point object and is public exposed as such.
The double array should have a length of two, index 0 being the longitude and index 1 being
latitude.rawLocation - a double array with a length of two, index 0 being the longitude and
index 1 being latitude.@NonNull public abstract StepIntersection build()
StepIntersection object.StepIntersection using the provided values in this builder@NonNull
public T unrecognizedJsonProperties(@Nullable
java.util.Map<java.lang.String,com.google.gson.JsonElement> unrecognizedProperties)
unrecognizedProperties - parameters to add to request