类 DirectionsWaypoint.Builder
java.lang.Object
ai.nextbillion.kits.directions.models.DirectionsWaypoint.Builder
- 封闭类:
- DirectionsWaypoint
This builder can be used to set the values describing the
DirectionsWaypoint.-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明abstract DirectionsWaypointbuild()Build a newDirectionsWaypointobject.abstract DirectionsWaypoint.BuilderProvides the way name which the waypoint's coordinate is snapped to.abstract DirectionsWaypoint.BuilderrawLocation(double[] rawLocation) The rawLocation as a double array.
-
构造器详细资料
-
Builder
public Builder()
-
-
方法详细资料
-
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
The rawLocation as a double array. Once theDirectionsWaypointobjects created, this raw location gets converted into aPointobject 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
Build a newDirectionsWaypointobject.- 返回:
- a new
DirectionsWaypointusing the provided values in this builder
-