Package-level declarations
Types
Link copied to clipboard
Represents the difference in charging time between the base route and the forking route.
Link copied to clipboard
Indicates the variance in consumption between the base route and the forking route.
Link copied to clipboard
Indicates the variance in length between the base route and the forking route.
Link copied to clipboard
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 result of comparing two routes.
Link copied to clipboard
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 sections of the base and forking routes, starting from the sections containing the forking point and moving towards the destination.
Link copied to clipboard
Indicates the variance in travel time between the base route and the forking route.
Functions
Link copied to clipboard
fun Route.compareToForkingRoute(forkingRoute: Route): Result<RouteDifferences, RouteComparisonFailure>
Compares this route to a forking route and returns the differences between the two.