类 IntersectionLanes
java.lang.Object
ai.nextbillion.kits.directions.models.DirectionsJsonObject
ai.nextbillion.kits.directions.models.IntersectionLanes
- 所有已实现的接口:
Serializable
Object representing lanes in an intersection.
- 另请参阅:
-
嵌套类概要
嵌套类修饰符和类型类说明static classThis builder can be used to set the values describing theIntersectionLanes. -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明abstract Booleanactive()Indicates whether this lane is a preferred lane (true) or not (false).static IntersectionLanes.Builderbuilder()Create a new instance of this class by using theIntersectionLanes.Builderclass.static IntersectionLanesCreate a new instance of this class by passing in a formatted valid JSON String.Array that can be made up of multiple signs such asleft,right, etc.abstract IntersectionLanes.BuilderConvert the currentIntersectionLanesto its builder holding the currently assigned values.static com.google.gson.TypeAdapter<IntersectionLanes>typeAdapter(com.google.gson.Gson gson) Gson type adapter for parsing Gson to this class.abstract Booleanvalid()Provides a boolean value you can use to determine if the given lane is valid for the user to complete the maneuver.abstract StringWhen either valid or active is set to true, this property shows which of the lane indications is applicable to the current route, when there is more than one.从类继承的方法 ai.nextbillion.kits.directions.models.DirectionsJsonObject
toJson
-
构造器详细资料
-
IntersectionLanes
public IntersectionLanes()
-
-
方法详细资料
-
builder
Create a new instance of this class by using theIntersectionLanes.Builderclass.- 返回:
- this classes
IntersectionLanes.Builderfor creating a new instance
-
valid
Provides a boolean value you can use to determine if the given lane is valid for the user to complete the maneuver.- 返回:
- 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.
-
active
Indicates whether this lane is a preferred lane (true) or not (false). A preferred lane is a lane that is recommended if there are multiple lanes available. For example, if guidance indicates that the driver must turn left at an intersection and there are multiple left turn lanes, the left turn lane that will better prepare the driver for the next maneuver will be marked as active. Only available on the nbmap/driving profile.- 返回:
- Indicates whether this lane is a preferred lane (true) or not (false).
-
validIndication
When either valid or active is set to true, this property shows which of the lane indications is applicable to the current route, when there is more than one. For example, if a lane allows you to go left or straight but your current route is guiding you to the left, then this value will be set to left. See indications for possible values. When both active and valid are false, this property will not be included in the response. Only available on the nbmap/driving profile.- 返回:
- which of the lane indications is applicable to the current route, when there is more than one
-
indications
Array that can be made up of multiple signs such asleft,right, etc.- 返回:
- Array 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.
-
toBuilder
Convert the currentIntersectionLanesto its builder holding the currently assigned values. This allows you to modify a single property and then rebuild the object resulting in an updated and modifiedIntersectionLanes.- 返回:
- a
IntersectionLanes.Builderwith the same values set to match the ones defined in thisIntersectionLanes
-
typeAdapter
Gson type adapter for parsing Gson to this class.- 参数:
gson- the builtGsonobject- 返回:
- the type adapter for this class
-
fromJson
Create a new instance of this class by passing in a formatted valid JSON String.- 参数:
json- a formatted valid JSON string defining an IntersectionLanes- 返回:
- a new instance of this class defined by the values passed inside this static factory method
-