public abstract static class StepManeuver.Builder
extends java.lang.Object
StepManeuver
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
abstract StepManeuver.Builder |
bearingAfter(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 StepManeuver.Builder |
bearingBefore(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.
|
abstract StepManeuver |
build()
Build a new
StepManeuver object. |
abstract StepManeuver.Builder |
exit(java.lang.Integer exit)
An optional integer indicating number of the exit to take.
|
abstract StepManeuver.Builder |
instruction(java.lang.String instruction)
A human-readable instruction of how to execute the returned maneuver.
|
abstract StepManeuver.Builder |
modifier(java.lang.String modifier)
This indicates the mode of the maneuver.
|
abstract StepManeuver.Builder |
rawLocation(double[] rawLocation)
The rawLocation as a double array.
|
abstract StepManeuver.Builder |
type(java.lang.String type)
This indicates the type of maneuver.
|
public abstract StepManeuver.Builder rawLocation(@NonNull double[] rawLocation)
StepManeuver
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 StepManeuver.Builder bearingBefore(@Nullable java.lang.Double bearingBefore)
bearingBefore
- double with value from 0 to 360public abstract StepManeuver.Builder bearingAfter(@Nullable java.lang.Double bearingAfter)
bearingAfter
- double with value from 0 to 360public abstract StepManeuver.Builder instruction(@Nullable java.lang.String instruction)
instruction
- String with instructionpublic abstract StepManeuver.Builder type(@Nullable java.lang.String type)
StepManeuver.type()
for a full list of
options.type
- String with type of maneuverStepManeuver.StepManeuverType
public abstract StepManeuver.Builder modifier(@Nullable java.lang.String modifier)
modifier
- String with modifierpublic abstract StepManeuver.Builder exit(@Nullable java.lang.Integer exit)
else - indicates the number of intersections passed until the turn. roundabout - traverse roundabout rotary - a traffic circle
exit
- an integer indicating number of the exit to takepublic abstract StepManeuver build()
StepManeuver
object.StepManeuver
using the provided values in this builder