类 LegAnnotation.Builder
java.lang.Object
ai.nextbillion.kits.directions.models.LegAnnotation.Builder
- 封闭类:
- LegAnnotation
This builder can be used to set the values describing the
LegAnnotation.-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明abstract LegAnnotationbuild()Build a newLegAnnotationobject.abstract LegAnnotation.Buildercongestion(List<String> congestion) The congestion between each pair of coordinates.abstract LegAnnotation.BuilderThe distance, in meters, between each pair of coordinates.abstract LegAnnotation.BuilderThe speed, in meters per second, between each pair of coordinates.abstract LegAnnotation.BuilderThe posted speed limit, between each pair of coordinates.abstract LegAnnotation.BuilderThe speed, in meters per second, between each pair of coordinates.
-
构造器详细资料
-
Builder
public Builder()
-
-
方法详细资料
-
distance
The distance, in meters, between each pair of coordinates.- 参数:
distance- a list with each entry being a distance value between two of the routeLeg geometry coordinates- 返回:
- this builder for chaining options together
-
duration
The speed, in meters per second, between each pair of coordinates.- 参数:
duration- a list with each entry being a speed value between two of the routeLeg geometry coordinates- 返回:
- this builder for chaining options together
-
speed
The speed, in meters per second, between each pair of coordinates.- 参数:
speed- a list with each entry being a speed value between two of the routeLeg geometry coordinates- 返回:
- this builder for chaining options together
-
maxspeed
The posted speed limit, between each pair of coordinates. Maxspeed is only available for the `nbmap/driving` and `nbmap/driving-traffic` profiles, other profiles will return `unknown`s only.- 参数:
maxspeed- list of speeds between each pair of coordinates- 返回:
- this builder for chaining options together
-
congestion
The congestion between each pair of coordinates.- 参数:
congestion- a list of Strings with each entry being a congestion value between two of the routeLeg geometry coordinates- 返回:
- this builder for chaining options together
-
build
Build a newLegAnnotationobject.- 返回:
- a new
LegAnnotationusing the provided values in this builder
-