类 StepManeuver.Builder
java.lang.Object
ai.nextbillion.kits.directions.models.StepManeuver.Builder
- 封闭类:
- StepManeuver
This builder can be used to set the values describing the
StepManeuver.-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明abstract StepManeuver.BuilderbearingAfter(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.BuilderbearingBefore(Double bearingBefore) Number between 0 and 360 indicating the clockwise angle from true north to the direction of travel right before the maneuver.abstract StepManeuverbuild()Build a newStepManeuverobject.abstract StepManeuver.BuilderAn optional integer indicating number of the exit to take.abstract StepManeuver.Builderinstruction(String instruction) A human-readable instruction of how to execute the returned maneuver.abstract StepManeuver.BuilderThis indicates the mode of the maneuver.abstract StepManeuver.Buildermuted(boolean muted) Check whether mute the voice instructions.abstract StepManeuver.BuilderrawLocation(double[] rawLocation) The rawLocation as a double array.abstract StepManeuver.BuilderThis indicates the type of maneuver.
-
构造器详细资料
-
Builder
public Builder()
-
-
方法详细资料
-
rawLocation
The rawLocation as a double array. Once theStepManeuverobject's created, this raw location gets converted into aPointobject 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.- 返回:
- this builder for chaining options together
-
bearingBefore
Number between 0 and 360 indicating the clockwise angle from true north to the direction of travel right before the maneuver.- 参数:
bearingBefore- double with value from 0 to 360- 返回:
- this builder for chaining options together
-
bearingAfter
Number between 0 and 360 indicating the clockwise angle from true north to the direction of travel right after the maneuver.- 参数:
bearingAfter- double with value from 0 to 360- 返回:
- this builder for chaining options together
-
instruction
A human-readable instruction of how to execute the returned maneuver. This String is built using OSRM-Text-Instructions and can be further customized inside either the Nbmap Navigation SDK for Android or using the OSRM-Text-Instructions.java project in Project-OSRM.- 参数:
instruction- String with instruction- 返回:
- this builder for chaining options together
- 另请参阅:
-
type
This indicates the type of maneuver. SeeStepManeuver.type()for a full list of options.- 参数:
type- String with type of maneuver- 返回:
- this builder for chaining options together
- 另请参阅:
-
modifier
This indicates the mode of the maneuver. If type is of turn, the modifier indicates the change in direction accomplished through the turn. If the type is of depart/arrive, the modifier indicates the position of waypoint from the current direction of travel.- 参数:
modifier- String with modifier- 返回:
- this builder for chaining options together
-
muted
Check whether mute the voice instructions.- 返回:
- true if mute the voice.
-
exit
An optional integer indicating number of the exit to take. If exit is undefined the destination is on the roundabout. The property exists for the following type properties: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 take- 返回:
- this builder for chaining options together
-
build
Build a newStepManeuverobject.- 返回:
- a new
StepManeuverusing the provided values in this builder
-