RouteDifferences

class RouteDifferences(val lengthDifference: LengthDifference, val timeDifference: TimeDifference, val chargingDifference: ChargingDifference, val consumptionDifference: ConsumptionDifference?, val sectionsDifferences: SectionsDifferences = SectionsDifferences())

Represents the result of comparing two routes.

For more details on comparison, see com.tomtom.sdk.navigation.routecomparison.compareToForkingRoute.

Constructors

Link copied to clipboard
constructor(lengthDifference: LengthDifference, timeDifference: TimeDifference, chargingDifference: ChargingDifference, consumptionDifference: ConsumptionDifference?, sectionsDifferences: SectionsDifferences = SectionsDifferences())

Properties

Link copied to clipboard

Represents the variance in charging requirements between the base route and the forking route. This value indicates how much more or less charging time the base route takes compared to the forking route and how many more or less charging stops does the base route contain compared to the forking route. For combustion engine routes the fields inside this property will be to 0.

Link copied to clipboard

This value indicates how much more or less energy will be consumed traveling on the base route compared to the forking route.

Link copied to clipboard

This value reflects how much longer or shorter the base route is compared to the forking route.

Link copied to clipboard

Represents the sections of the base and forking routes, starting from the sections containing the forking point and moving towards the destination.

Link copied to clipboard

This value indicates how much more or less travel time the base route takes compared to the forking route.