public abstract class StepManeuver extends DirectionsJsonObject
LegStep.| Modifier and Type | Class and Description |
|---|---|
static class |
StepManeuver.Builder
This builder can be used to set the values describing the
StepManeuver. |
static interface |
StepManeuver.StepManeuverType
Maneuver types.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ARRIVE
Indicates arrival to a destination of a leg.
|
static java.lang.String |
CONTINUE
Continue on a street after a turn.
|
static java.lang.String |
DEPART
Indicates departure from a leg.
|
static java.lang.String |
END_OF_ROAD
Road ends in a T intersection.
|
static java.lang.String |
EXIT_ROTARY
Indicates the exit maneuver from a rotary.
|
static java.lang.String |
EXIT_ROUNDABOUT
Indicates the exit maneuver from a roundabout.
|
static java.lang.String |
FORK
Take the left or right side of a fork.
|
static java.lang.String |
MERGE
Merge onto a street.
|
static java.lang.String |
NEW_NAME
The road name changes (after a mandatory turn).
|
static java.lang.String |
NOTIFICATION
Indicates a change of driving conditions, for example changing the mode
from driving to ferry.
|
static java.lang.String |
OFF_RAMP
Take a ramp to exit a highway.
|
static java.lang.String |
ON_RAMP
Take a ramp to enter a highway.
|
static java.lang.String |
ROTARY
A traffic circle.
|
static java.lang.String |
ROUNDABOUT
Traverse roundabout.
|
static java.lang.String |
ROUNDABOUT_TURN
A small roundabout that is treated as an intersection.
|
static java.lang.String |
TURN
A basic turn in the direction of the modifier.
|
| 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.
|
static StepManeuver |
fromJson(java.lang.String json)
Create a new instance of this class by passing in a formatted valid JSON String.
|
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.
|
getUnrecognizedJsonProperties, getUnrecognizedPropertiesNames, getUnrecognizedProperty, toJsonpublic static final java.lang.String TURN
public static final java.lang.String NEW_NAME
public static final java.lang.String DEPART
public static final java.lang.String ARRIVE
public static final java.lang.String MERGE
public static final java.lang.String ON_RAMP
public static final java.lang.String OFF_RAMP
public static final java.lang.String FORK
public static final java.lang.String END_OF_ROAD
public static final java.lang.String CONTINUE
public static final java.lang.String ROUNDABOUT
public static final java.lang.String ROTARY
LegStep.rotaryName() parameters,
LegStep.rotaryPronunciation() ()} parameters, or both,
in addition to the exit() property.public static final java.lang.String ROUNDABOUT_TURN
public static final java.lang.String NOTIFICATION
public static final java.lang.String EXIT_ROUNDABOUT
exit() query
parameter in the request.public static final java.lang.String EXIT_ROTARY
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()
StepManeuver.StepManeuverType@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 objectpublic static StepManeuver fromJson(java.lang.String json)
json - a formatted valid JSON string defining a StepManeuver