Package 

Class TollSegment

  • All Implemented Interfaces:
    android.os.Parcelable

    
    public final class TollSegment
     implements Parcelable
                        

    Define the toll information for a charged segment along the route.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final List<TollFee> getFees() The fee details of current toll segment.
      final RouteEdgeIndex getStartIndex() The starting edge on the route where current toll segment applies.
      final RouteEdgeIndex getEndIndex() The ending edge on the route where current toll segment applies.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getFees

         final List<TollFee> getFees()

        The fee details of current toll segment.

        When null, fee details are unknown or not provided by map data. Multiple fee entries may exist when different currencies or fee schemes are provided by map data.

      • getStartIndex

         final RouteEdgeIndex getStartIndex()

        The starting edge on the route where current toll segment applies.

        When null, the charged segment start is unknown or not provided by map data. Instances from native layer always provide a non-null startIndex. Together with endIndex, this identifies the exact charged segment on the route as a closed interval startIndex, endIndex.

      • getEndIndex

         final RouteEdgeIndex getEndIndex()

        The ending edge on the route where current toll segment applies.

        When null, the charged segment end is unknown or not provided by map data. When set to the same value as startIndex, the fee applies to a single edge, such as a bridge or toll gate.