类 BannerText.Builder

java.lang.Object
ai.nextbillion.kits.directions.models.BannerText.Builder
封闭类:
BannerText

public abstract static class BannerText.Builder extends Object
This builder can be used to set the values describing the BannerText.
  • 构造器详细资料

    • Builder

      public Builder()
  • 方法详细资料

    • text

      public abstract BannerText.Builder text(@NonNull String text)
      Plain text with all the BannerComponents text combined.
      参数:
      text - plain text with all the BannerComponents text items combined
      返回:
      this builder for chaining options together
    • components

      public abstract BannerText.Builder components(List<BannerComponents> components)
      A part or element of the BannerInstructions.
      参数:
      components - a BannerComponents specific to a LegStep
      返回:
      this builder for chaining options together
    • type

      public abstract BannerText.Builder type(@Nullable String type)
      This indicates the type of maneuver. See BannerText.type() for a full list of options.
      参数:
      type - String with type of maneuver
      返回:
      this builder for chaining options together
      另请参阅:
    • modifier

      public abstract BannerText.Builder modifier(@Nullable String 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

      public abstract BannerText.Builder degrees(Double 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

      public abstract BannerText.Builder drivingSide(@Nullable String 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

      public abstract BannerText.Builder instruction(@Nullable String instruction)
      A string of the instruction
      参数:
      instruction - a short of instruction text
      返回:
      this builder for chaining options together
    • build

      public abstract BannerText build()
      Build a new BannerText object.
      返回:
      a new BannerText using the provided values in this builder