类 RestStop.Builder

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

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

    • Builder

      public Builder()
  • 方法详细资料

    • type

      public abstract RestStop.Builder type(@Nullable String type)
      The type of rest stop, either `rest_area` (includes parking only) or `service_area` (includes amenities such as gas or restaurants). Note that adding new possible types is not considered a breaking change.
      参数:
      type - rest stop type
    • build

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