public abstract class StepIntersection extends DirectionsJsonObject
| Modifier and Type | Class and Description |
|---|---|
static class |
StepIntersection.Builder
This builder can be used to set the values describing the
StepIntersection. |
| Constructor and Description |
|---|
StepIntersection() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.util.List<java.lang.Integer> |
bearings()
An integer list of bearing values available at the step intersection.
|
static StepIntersection.Builder |
builder()
Create a new instance of this class by using the
StepIntersection.Builder class. |
abstract java.util.List<java.lang.String> |
classes()
A list of strings signifying the classes of the road exiting the intersection.
|
abstract java.util.List<java.lang.Boolean> |
entry()
A list of entry flags, corresponding in a 1:1 relationship to the bearings.
|
static StepIntersection |
fromJson(java.lang.String json)
Create a new instance of this class by passing in a formatted valid JSON String.
|
abstract java.lang.Integer |
in()
Index into bearings/entry array.
|
abstract java.util.List<IntersectionLanes> |
lanes()
Array of lane objects that represent the available turn lanes at the intersection.
|
com.mapbox.geojson.Point |
location()
A
Point representing this intersection location. |
abstract java.lang.Integer |
out()
Index out of the bearings/entry array.
|
protected abstract double[] |
rawLocation()
A
Point representing this intersection location. |
abstract StepIntersection.Builder |
toBuilder()
Convert the current
StepIntersection to its builder holding the currently assigned
values. |
static com.google.gson.TypeAdapter<StepIntersection> |
typeAdapter(com.google.gson.Gson gson)
Gson type adapter for parsing Gson to this class.
|
toJsonpublic static StepIntersection.Builder builder()
StepIntersection.Builder class.StepIntersection.Builder for creating a new instance@NonNull public com.mapbox.geojson.Point location()
Point representing this intersection location.@NonNull @SerializedName(value="location") protected abstract double[] rawLocation()
Point representing this intersection location. Since the rawLocation isn't public,
it's okay to be mutable as long as nothing in this SDK changes values.@Nullable public abstract java.util.List<java.lang.Integer> bearings()
@Nullable public abstract java.util.List<java.lang.String> classes()
@Nullable public abstract java.util.List<java.lang.Boolean> entry()
@Nullable public abstract java.lang.Integer in()
@Nullable public abstract java.lang.Integer out()
@Nullable public abstract java.util.List<IntersectionLanes> lanes()
public abstract StepIntersection.Builder toBuilder()
StepIntersection 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 StepIntersection.StepIntersection.Builder with the same values set to match the ones defined
in this StepIntersectionpublic static com.google.gson.TypeAdapter<StepIntersection> typeAdapter(com.google.gson.Gson gson)
gson - the built Gson objectpublic static StepIntersection fromJson(java.lang.String json)
json - a formatted valid JSON string defining a StepIntersection