-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class TollSegment implements ParcelableDefine the toll information for a charged segment along the route.
-
-
Field Summary
Fields Modifier and Type Field Description private final List<TollFee>feesprivate final RouteEdgeIndexstartIndexprivate final RouteEdgeIndexendIndex
-
Constructor Summary
Constructors Constructor Description TollSegment(List<TollFee> fees, RouteEdgeIndex startIndex, RouteEdgeIndex endIndex)
-
Method Summary
Modifier and Type Method Description final List<TollFee>getFees()The fee details of current toll segment. final RouteEdgeIndexgetStartIndex()The starting edge on the route where current toll segment applies. final RouteEdgeIndexgetEndIndex()The ending edge on the route where current toll segment applies. -
-
Constructor Detail
-
TollSegment
TollSegment(List<TollFee> fees, RouteEdgeIndex startIndex, RouteEdgeIndex endIndex)
-
-
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.
-
-
-
-