类 DirectionsWaypoint.Builder

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

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

    • Builder

      public Builder()
  • 方法详细资料

    • name

      public abstract DirectionsWaypoint.Builder name(@Nullable String name)
      Provides the way name which the waypoint's coordinate is snapped to.
      参数:
      name - string with the name of the way the coordinate snapped to
      返回:
      this builder for chaining options together
    • rawLocation

      public abstract DirectionsWaypoint.Builder rawLocation(@Nullable double[] rawLocation)
      The rawLocation as a double array. Once the DirectionsWaypoint objects created, this raw location gets converted into a Point object 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
    • build

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