类 IntersectionLanes

java.lang.Object
ai.nextbillion.kits.directions.models.DirectionsJsonObject
ai.nextbillion.kits.directions.models.IntersectionLanes
所有已实现的接口:
Serializable

public abstract class IntersectionLanes extends DirectionsJsonObject
Object representing lanes in an intersection.
另请参阅:
  • 构造器详细资料

    • IntersectionLanes

      public IntersectionLanes()
  • 方法详细资料

    • builder

      public static IntersectionLanes.Builder builder()
      Create a new instance of this class by using the IntersectionLanes.Builder class.
      返回:
      this classes IntersectionLanes.Builder for creating a new instance
    • valid

      @Nullable public abstract Boolean 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

      @Nullable public abstract Boolean 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

      @Nullable @SerializedName("valid_indication") public abstract String 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

      @Nullable public abstract List<String> indications()
      Array that can be made up of multiple signs such as left, 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

      public abstract IntersectionLanes.Builder toBuilder()
      Convert the current IntersectionLanes to 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 modified IntersectionLanes.
      返回:
      a IntersectionLanes.Builder with the same values set to match the ones defined in this IntersectionLanes
    • typeAdapter

      public static com.google.gson.TypeAdapter<IntersectionLanes> typeAdapter(com.google.gson.Gson gson)
      Gson type adapter for parsing Gson to this class.
      参数:
      gson - the built Gson object
      返回:
      the type adapter for this class
    • fromJson

      public static IntersectionLanes fromJson(String json)
      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