public abstract class StepManeuver
extends java.lang.Object
implements java.io.Serializable
LegStep.| Modifier and Type | Class and Description |
|---|---|
static class |
StepManeuver.Builder
This builder can be used to set the values describing the
StepManeuver. |
| Constructor and Description |
|---|
StepManeuver() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.Double |
bearingAfter()
Number between 0 and 360 indicating the clockwise angle from true north to the direction of
travel right after the maneuver.
|
abstract java.lang.Double |
bearingBefore()
Number between 0 and 360 indicating the clockwise angle from true north to the direction of
travel right before the maneuver.
|
static StepManeuver.Builder |
builder()
Create a new instance of this class by using the
StepManeuver.Builder class. |
abstract java.lang.Integer |
exit()
An optional integer indicating number of the exit to take.
|
abstract java.lang.String |
instruction()
A human-readable instruction of how to execute the returned maneuver.
|
com.mapbox.geojson.Point |
location()
A
Point representing this intersection location. |
abstract java.lang.String |
modifier()
This indicates the mode of the maneuver.
|
protected abstract double[] |
rawLocation()
A
Point representing this intersection location. |
abstract StepManeuver.Builder |
toBuilder()
Convert the current
StepManeuver to its builder holding the currently assigned
values. |
abstract java.lang.String |
type()
This indicates the type of maneuver.
|
static com.google.gson.TypeAdapter<StepManeuver> |
typeAdapter(com.google.gson.Gson gson)
Gson type adapter for parsing Gson to this class.
|
public static StepManeuver.Builder builder()
StepManeuver.Builder class.StepManeuver.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 @SerializedName(value="bearing_before") public abstract java.lang.Double bearingBefore()
@Nullable @SerializedName(value="bearing_after") public abstract java.lang.Double bearingAfter()
@Nullable public abstract java.lang.String instruction()
@Nullable public abstract java.lang.String type()
exit() in RouteStep
containing the exit number. The modifier specifies the direction of entering the roundabout.
LegStep.rotaryName() and/or LegStep.rotaryPronunciation() parameters in
addition to the exit() property.@Nullable public abstract java.lang.String modifier()
@Nullable public abstract java.lang.Integer exit()
else - indicates the number of intersections passed until the turn. roundabout - traverse roundabout rotary - a traffic circle
public abstract StepManeuver.Builder toBuilder()
StepManeuver 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 StepManeuver.StepManeuver.Builder with the same values set to match the ones defined
in this StepManeuverpublic static com.google.gson.TypeAdapter<StepManeuver> typeAdapter(com.google.gson.Gson gson)
gson - the built Gson object