类 IntersectionLanes.Builder

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

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

    • Builder

      public Builder()
  • 方法详细资料

    • valid

      public abstract IntersectionLanes.Builder valid(@Nullable Boolean valid)
      Provide a boolean value you can use to determine if the given lane is valid for the user to complete the maneuver.
      参数:
      valid - Boolean value for whether this lane can be taken to complete the maneuver. For instance, if the lane array has four objects and the first two are marked as valid, then the driver can take either of the left lanes and stay on the route.
      返回:
      this builder for chaining options together
    • active

      public abstract IntersectionLanes.Builder active(@Nullable Boolean active)
      Indicates whether this lane is a preferred lane (true) or not (false).
      参数:
      active - Boolean value that indicates whether this lane is a preferred lane (true) or not (false).
      返回:
      this builder for chaining options together
    • validIndication

      public abstract IntersectionLanes.Builder validIndication(@Nullable String validIndication)
      Shows which of the lane indications is applicable to the current route, when there is more than one.
      参数:
      validIndication - lane indications applicable to the current route, when there is more than one.
      返回:
      this builder for chaining options together
    • indications

      public abstract IntersectionLanes.Builder indications(@Nullable List<String> indications)
      list that can be made up of multiple signs such as left, right, etc.
      参数:
      indications - list of signs for each turn lane. There can be multiple signs. For example, a turning lane can have a sign with an arrow pointing left and another sign with an arrow pointing straight.
      返回:
      this builder for chaining options together
    • build

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