类 IntersectionLanes.Builder
java.lang.Object
ai.nextbillion.kits.directions.models.IntersectionLanes.Builder
- 封闭类:
- IntersectionLanes
This builder can be used to set the values describing the
IntersectionLanes.-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明abstract IntersectionLanes.BuilderIndicates whether this lane is a preferred lane (true) or not (false).abstract IntersectionLanesbuild()Build a newIntersectionLanesobject.abstract IntersectionLanes.Builderindications(List<String> indications) list that can be made up of multiple signs such asleft,right, etc.abstract IntersectionLanes.BuilderProvide a boolean value you can use to determine if the given lane is valid for the user to complete the maneuver.abstract IntersectionLanes.BuildervalidIndication(String validIndication) Shows which of the lane indications is applicable to the current route, when there is more than one.
-
构造器详细资料
-
Builder
public Builder()
-
-
方法详细资料
-
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
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
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
list that can be made up of multiple signs such asleft,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
Build a newIntersectionLanesobject.- 返回:
- a new
IntersectionLanesusing the provided values in this builder
-