Class TrafficOnRoute

java.lang.Object
com.here.sdk.routing.TrafficOnRoute

public final class TrafficOnRoute extends Object

Traffic information on a route. Information for the already traveled portion of the route is omitted.

  • Field Details

    • routeTag

      @NonNull public RouteTag routeTag

      The unique identifier of the route this traffic information belongs to. Note: This is a beta release of this feature and may contain bugs or exhibit unexpected behaviour. Related APIs are subject to change without a deprecation process.

    • lastTraveledSectionIndex

      public int lastTraveledSectionIndex

      Indicates the index of the last traveled route section. Traveled part of the route won't be reused.

    • traveledDistanceOnLastSectionInMeters

      public int traveledDistanceOnLastSectionInMeters

      Offset, in meter, to the last visited position on the route section defined by the last traveled section index.

    • trafficSections

      @NonNull public List<TrafficOnSection> trafficSections

      List of traffic sections.

  • Constructor Details

    • TrafficOnRoute

      public TrafficOnRoute()

      Creates a new instance.

  • Method Details