Class TrafficOnRoute

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

  • public final class TrafficOnRoute
    extends java.lang.Object

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

    • Field Detail

      • 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 java.util.List<TrafficOnSection> trafficSections

        List of traffic sections.

    • Constructor Detail

      • TrafficOnRoute

        public TrafficOnRoute()

        Creates a new instance.

    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object