Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
abstract LegStep.Builder |
bannerInstructions(java.util.List<BannerInstructions> bannerInstructions)
If in your request you set
MapboxDirections.bannerInstructions() to true, you'll
receive a list of BannerInstructions which encompasses all information necessary for
creating a visual cue about a given LegStep . |
abstract LegStep |
build()
Build a new
LegStep object. |
abstract LegStep.Builder |
destinations(java.lang.String destinations)
String with the destinations of the way along which the travel proceeds.
|
abstract LegStep.Builder |
distance(double distance)
The distance traveled from the maneuver to the next
LegStep . |
abstract LegStep.Builder |
drivingSide(java.lang.String drivingSide)
The legal driving side at the location for this step.
|
abstract LegStep.Builder |
duration(double duration)
The estimated travel time from the maneuver to the next
LegStep . |
abstract LegStep.Builder |
exits(java.lang.String exits)
String with the exit numbers or names of the way.
|
abstract LegStep.Builder |
geometry(java.lang.String geometry)
Gives the geometry of the leg step.
|
abstract LegStep.Builder |
intersections(java.util.List<StepIntersection> intersections)
Provide a list of all the intersections connected to the current way the user is traveling
along.
|
abstract LegStep.Builder |
maneuver(StepManeuver maneuver)
A
StepManeuver object that typically represents the first coordinate making up the
LegStep.geometry() . |
abstract LegStep.Builder |
mode(java.lang.String mode)
Indicates the mode of transportation in the step.
|
abstract LegStep.Builder |
name(java.lang.String name)
String with the name of the way along which the travel proceeds.
|
abstract LegStep.Builder |
pronunciation(java.lang.String pronunciation)
The pronunciation hint of the way name.
|
abstract LegStep.Builder |
ref(java.lang.String ref)
String with reference number or code of the way along which the travel proceeds.
|
abstract LegStep.Builder |
rotaryName(java.lang.String rotaryName)
An optional string indicating the name of the rotary.
|
abstract LegStep.Builder |
rotaryPronunciation(java.lang.String rotaryPronunciation)
An optional string indicating the pronunciation of the name of the rotary.
|
abstract LegStep.Builder |
voiceInstructions(java.util.List<VoiceInstructions> voiceInstructions)
The voice instructions object is useful for navigation sessions providing well spoken text
instructions along with the distance from the maneuver the instructions should be said.
|
abstract LegStep.Builder |
weight(double weight)
Specifies a decimal precision of edge weights, default value 1.
|
public abstract LegStep.Builder distance(double distance)
LegStep
.distance
- a double number with unit meterspublic abstract LegStep.Builder duration(double duration)
LegStep
.duration
- a double number with unit secondspublic abstract LegStep.Builder geometry(@Nullable java.lang.String geometry)
geometry
- an encoded polyline stringpublic abstract LegStep.Builder name(@Nullable java.lang.String name)
name
- a String
representing the way along which the travel proceedspublic abstract LegStep.Builder ref(@Nullable java.lang.String ref)
ref
- String with reference number or code of the way along which the travel proceeds.
Optionally included, if data is availablepublic abstract LegStep.Builder destinations(@Nullable java.lang.String destinations)
destinations
- String with the destinations of the way along which the travel proceeds.
Optionally included, if data is availablepublic abstract LegStep.Builder mode(@NonNull java.lang.String mode)
mode
- String indicating the mode of transportationpublic abstract LegStep.Builder pronunciation(@Nullable java.lang.String pronunciation)
pronunciation
- String with the pronunciationpublic abstract LegStep.Builder rotaryName(@Nullable java.lang.String rotaryName)
rotary
.rotaryName
- String with the rotary namepublic abstract LegStep.Builder rotaryPronunciation(@Nullable java.lang.String rotaryPronunciation)
rotary
.rotaryPronunciation
- String in IPA with the rotary name's pronunciation.public abstract LegStep.Builder maneuver(@NonNull StepManeuver maneuver)
StepManeuver
object that typically represents the first coordinate making up the
LegStep.geometry()
.maneuver
- new StepManeuver
objectpublic abstract LegStep.Builder voiceInstructions(@NonNull java.util.List<VoiceInstructions> voiceInstructions)
voiceInstructions
- a list of voice instructions which can be triggered on this current
steppublic abstract LegStep.Builder bannerInstructions(@NonNull java.util.List<BannerInstructions> bannerInstructions)
MapboxDirections.bannerInstructions()
to true, you'll
receive a list of BannerInstructions
which encompasses all information necessary for
creating a visual cue about a given LegStep
.bannerInstructions
- a list of BannerInstructions
s which help display visual
cues inside your applicationpublic abstract LegStep.Builder drivingSide(@Nullable java.lang.String drivingSide)
left
or
right
.drivingSide
- a string with either a left or right valuepublic abstract LegStep.Builder weight(double weight)
weight
- a decimal precision double valuepublic abstract LegStep.Builder intersections(@NonNull java.util.List<StepIntersection> intersections)
intersections
- list of StepIntersection
representing all intersections along
the steppublic abstract LegStep.Builder exits(@Nullable java.lang.String exits)
exits
- a String identifying the exit number or name