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.lang.Integer |
adminIndex()
The zero-based index into the admin list on the route leg for this intersection.
|
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 |
geometryIndex()
The zero-based index for the intersection.
|
abstract java.lang.Integer |
in()
Index into bearings/entry array.
|
abstract Interchange |
interchange() |
abstract java.lang.Boolean |
isUrban()
A boolean indicating whether the road exiting the intersection is considered to be in an urban
area.
|
abstract Junction |
junction() |
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 MapboxStreetsV8 |
mapboxStreetsV8()
An object containing detailed information about the road exiting the intersection along the
route.
|
abstract MergingArea |
mergingArea()
Object containing information about merging area starting at intersection.
|
abstract java.lang.Integer |
out()
Index out of the bearings/entry array.
|
abstract java.lang.Boolean |
railwayCrossing()
Indicates whether there is a railway crossing at the intersection.
|
protected abstract double[] |
rawLocation()
A
Point representing this intersection location. |
abstract RestStop |
restStop()
An object containing information about passing rest stops along the route.
|
abstract java.lang.Boolean |
stopSign()
Indicates whether there is a stop sign at the intersection.
|
abstract StepIntersection.Builder |
toBuilder()
Convert the current
StepIntersection to its builder holding the currently assigned
values. |
abstract TollCollection |
tollCollection()
An object containing information about a toll collection point along the route.
|
abstract java.lang.Boolean |
trafficSignal()
Indicates whether there is a traffic signal at the intersection.
|
abstract java.lang.String |
tunnelName()
Name of the tunnel.
|
static com.google.gson.TypeAdapter<StepIntersection> |
typeAdapter(com.google.gson.Gson gson)
Gson type adapter for parsing Gson to this class.
|
abstract java.lang.Boolean |
yieldSign()
Indicates whether there is a yield sign at the intersection.
|
getUnrecognizedJsonProperties, getUnrecognizedPropertiesNames, getUnrecognizedProperty, 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()
@Nullable @SerializedName(value="geometry_index") public abstract java.lang.Integer geometryIndex()
@Nullable @SerializedName(value="is_urban") public abstract java.lang.Boolean isUrban()
DirectionsCriteria.PROFILE_DRIVING profile.@Nullable @SerializedName(value="admin_index") public abstract java.lang.Integer adminIndex()
RouteLeg.admins()@Nullable @SerializedName(value="rest_stop") public abstract RestStop restStop()
@Nullable @SerializedName(value="toll_collection") public abstract TollCollection tollCollection()
DirectionsCriteria.PROFILE_DRIVING profile.@Nullable @SerializedName(value="mapbox_streets_v8") public abstract MapboxStreetsV8 mapboxStreetsV8()
classes()
specification. Only available on the DirectionsCriteria.PROFILE_DRIVING profile.@Nullable @SerializedName(value="tunnel_name") public abstract java.lang.String tunnelName()
classes() contains "tunnel".@Nullable @SerializedName(value="railway_crossing") public abstract java.lang.Boolean railwayCrossing()
@Nullable @SerializedName(value="traffic_signal") public abstract java.lang.Boolean trafficSignal()
@Nullable @SerializedName(value="stop_sign") public abstract java.lang.Boolean stopSign()
@Nullable @SerializedName(value="yield_sign") public abstract java.lang.Boolean yieldSign()
@Nullable @SerializedName(value="ic") public abstract Interchange interchange()
@Nullable @SerializedName(value="jct") public abstract Junction junction()
@Nullable @SerializedName(value="merging_area") public abstract MergingArea mergingArea()
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