public abstract static class StepIntersection.Builder
extends java.lang.Object
StepIntersection.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
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 |
in(java.lang.Integer in)
Index into bearings/entry array.
|
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 |
out(java.lang.Integer out)
Index out of the bearings/entry array.
|
abstract StepIntersection.Builder |
rawLocation(double[] rawLocation)
The rawLocation as a double array.
|
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.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 intersectionpublic 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 bearingspublic abstract StepIntersection.Builder in(@Nullable java.lang.Integer in)
in - index into bearings/entry arraypublic abstract StepIntersection.Builder out(@Nullable java.lang.Integer out)
out - index out of the bearings/entry arraypublic abstract StepIntersection.Builder lanes(@Nullable java.util.List<IntersectionLanes> lanes)
lanes - array of lane objects that represent the available turn lanes at the
intersectionpublic 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.public abstract StepIntersection build()
StepIntersection object.StepIntersection using the provided values in this builder