Summary
public struct Summary
The route summary contains the high-level route data.
-
init(length:travelTime: trafficLength: trafficDelay: departureTime: arrivalTime: consumptionForWholeLength: consumptionUpToReachableOffset: remainingBudget: reachableOffset: ) Creates an instance of
Summary.Declaration
Swift
public init( length: Measurement<UnitLength>, travelTime: Measurement<UnitDuration>, trafficLength: Measurement<UnitLength>, trafficDelay: Measurement<UnitDuration>, departureTime: Date?, arrivalTime: Date?, consumptionForWholeLength: Consumption?, consumptionUpToReachableOffset: Consumption?, remainingBudget: Consumption?, reachableOffset: Measurement<UnitLength>? )Parameters
lengthThe route length.
travelTimeThe estimated travel time.
trafficLengthThe portion of the route or leg, that is affected by traffic events which cause the delay.
trafficDelayThe difference between the travel time calculated using all available traffic information.
departureTimeDeparture time for the route or leg, specified in the departure location’s time zone.
arrivalTimeEstimated arrival time for the route or leg, specified in the destination’s location’s time zone.
consumptionForWholeLengthConsumption for the whole route or leg.
consumptionUpToReachableOffsetConsumption for the route or leg up to the reachable offset.
remainingBudgetRemaining fuel or energy when reaching the end of the route or leg.
reachableOffsetPortion of the route or leg that can be driven with the current energy or fuel supply.
-
Route or leg length.
Declaration
Swift
public var length: Measurement<UnitLength> -
Estimated travel time.
Declaration
Swift
public var travelTime: Measurement<UnitDuration> -
Portion of the route or leg, that is affected by traffic events which cause the delay.
Declaration
Swift
public var trafficLength: Measurement<UnitLength> -
Difference between the travel time calculated using all available traffic information and travel time calculated without the influence of current or historic traffic data.
Declaration
Swift
public var trafficDelay: Measurement<UnitDuration> -
Departure time for the route or leg, specified in the departure location’s time zone.
Declaration
Swift
public var departureTime: Date? -
Estimated arrival time for the route or leg, specified in the destination’s location’s time zone.
Declaration
Swift
public var arrivalTime: Date? -
Consumption for the whole route or leg.
Declaration
Swift
public var consumptionForWholeLength: Consumption? -
Consumption for the route or leg up to the reachable offset.
Declaration
Swift
public var consumptionUpToReachableOffset: Consumption? -
Remaining energy at the reachable offset.
Declaration
Swift
public var remainingBudget: Consumption? -
Portion of the route or leg that can be driven with the current energy or fuel supply.
Declaration
Swift
public var reachableOffset: Measurement<UnitLength>?
TomTom SDK for iOS (0.53.1)
Summary