类 BannerText.Builder
java.lang.Object
ai.nextbillion.kits.directions.models.BannerText.Builder
- 封闭类:
- BannerText
This builder can be used to set the values describing the
BannerText.-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明abstract BannerTextbuild()Build a newBannerTextobject.abstract BannerText.Buildercomponents(List<BannerComponents> components) A part or element of theBannerInstructions.abstract BannerText.BuilderThe degrees at which you will be exiting a roundabout, assuming `180` indicates going straight through the roundabout.abstract BannerText.BuilderdrivingSide(String drivingSide) A string representing which side the of the street people drive on in that location.abstract BannerText.Builderinstruction(String instruction) A string of the instructionabstract BannerText.BuilderThis indicates the mode of the maneuver.abstract BannerText.BuilderPlain text with all theBannerComponentstext combined.abstract BannerText.BuilderThis indicates the type of maneuver.
-
构造器详细资料
-
Builder
public Builder()
-
-
方法详细资料
-
text
Plain text with all theBannerComponentstext combined.- 参数:
text- plain text with all theBannerComponentstext items combined- 返回:
- this builder for chaining options together
-
components
A part or element of theBannerInstructions.- 参数:
components- aBannerComponentsspecific to aLegStep- 返回:
- this builder for chaining options together
-
type
This indicates the type of maneuver. SeeBannerText.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
-
degrees
The degrees at which you will be exiting a roundabout, assuming `180` indicates going straight through the roundabout.- 参数:
degrees- at which you will be exiting a roundabout- 返回:
- this builder for chaining options together
-
drivingSide
A string representing which side the of the street people drive on in that location. Can be 'left' or 'right'.- 参数:
drivingSide- either `left` or `right`- 返回:
- this builder for chaining options together
-
instruction
A string of the instruction- 参数:
instruction- a short of instruction text- 返回:
- this builder for chaining options together
-
build
Build a newBannerTextobject.- 返回:
- a new
BannerTextusing the provided values in this builder
-