Class TollStop

java.lang.Object
com.here.sdk.navigation.TollStop

public final class TollStop extends Object

A class that provides information for a toll stop with multiple toll booths.

  • Field Details

    • id

      public int id

      Unique identifier for this specific toll stop warning instance. Each warning type (truck restrictions, speed warnings, etc.) maintains its own independent ID namespace. Use this ID to track, update, or dismiss individual warning instances of this type.

    • distanceType

      @Deprecated @NonNull public DistanceType distanceType
      Deprecated.

      Will be removed in v4.29.0. Use the WarningStatus implementation instead.

      Indicates if the specified toll stop is ahead of the vehicle or has just passed by.

    • distanceToTollStopInMeters

      @Deprecated public double distanceToTollStopInMeters
      Deprecated.

      Will be removed in v4.29.0. Use the WarningUpdate implementation instead.

      Distance to the toll stop in meters.

    • lanes

      @NonNull public List<TollBoothLane> lanes

      Describes the features of the booth for the lane. The lanes are sorted from left to right: The lane at index 0 represents the leftmost lane and the last index represents the rightmost lane. This is valid for right-hand and left-hand driving countries. An empty list means that the complex junction has been passed and that the lane information is not valid anymore. Exactly one event with a non-empty list is delivered before reaching a complex junction and one event with an empty list afterwards.

      Note: Lanes going in opposite direction are not included in the list.

  • Constructor Details

    • TollStop

      @Deprecated public TollStop(int id, @Deprecated @NonNull DistanceType distanceType, @Deprecated double distanceToTollStopInMeters, @NonNull List<TollBoothLane> lanes)
      Deprecated.

      Will be removed in v4.29.0. Use the constructor without deprecated fields instead.

      Creates a new instance.

      Parameters:
      id -

      Unique identifier for this specific toll stop warning instance. Each warning type (truck restrictions, speed warnings, etc.) maintains its own independent ID namespace. Use this ID to track, update, or dismiss individual warning instances of this type.

      distanceType -

      Indicates if the specified toll stop is ahead of the vehicle or has just passed by.

      distanceToTollStopInMeters -

      Distance to the toll stop in meters.

      lanes -

      Describes the features of the booth for the lane. The lanes are sorted from left to right: The lane at index 0 represents the leftmost lane and the last index represents the rightmost lane. This is valid for right-hand and left-hand driving countries. An empty list means that the complex junction has been passed and that the lane information is not valid anymore. Exactly one event with a non-empty list is delivered before reaching a complex junction and one event with an empty list afterwards.

      Note: Lanes going in opposite direction are not included in the list.

  • Method Details