Package-level declarations

Types

Link copied to clipboard
class ChargingDifference(val chargingTime: Duration, val numberOfChargingStops: Int)

Represents the difference between two charging times of routes.

Link copied to clipboard
class ConsumptionDifference(val consumption: Consumption)

Represents the difference between two consumption amounts of routes.

Link copied to clipboard
class LengthDifference(val length: Distance)

Represents the difference between two lengths of routes.

Link copied to clipboard
abstract class RouteComparisonFailure

Represents the various failure reasons encountered during a route comparison.

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

Represents the differences between two routes.

Link copied to clipboard
class SectionsDifference<T : Section>(val firstOnly: List<T> = listOf(), val secondOnly: List<T> = listOf())

Represents the difference between two lists of sections.

Link copied to clipboard
class SectionsDifferences(val carTrains: SectionsDifference<CarTrainSection> = SectionsDifference(), val tolls: SectionsDifference<TollSection> = SectionsDifference(), val traffic: SectionsDifference<TrafficSection> = SectionsDifference(), val tollVignettes: SectionsDifference<TollVignetteSection> = SectionsDifference(), val motorways: SectionsDifference<MotorwaySection> = SectionsDifference(), val ferries: SectionsDifference<FerrySection> = SectionsDifference(), val tunnels: SectionsDifference<TunnelSection> = SectionsDifference(), val carpoolLanes: SectionsDifference<CarpoolSection> = SectionsDifference(), val lowEmissionZones: SectionsDifference<LowEmissionZoneSection> = SectionsDifference(), val unpavedRoads: SectionsDifference<UnpavedSection> = SectionsDifference(), val countries: SectionsDifference<CountrySection> = SectionsDifference(), val vehicleRestrictions: SectionsDifference<VehicleRestrictedSection> = SectionsDifference())

Represents the differences between the sections of two routes.

Link copied to clipboard
class TimeDifference(val travelTime: Duration)

Represents the difference between two travel times of routes.

Functions

Link copied to clipboard

Compares this route to a forking route and returns the differences between the two.