Summary
public struct Summary
Summary of the whole route or the particular leg.
Important
This is a Public Preview API. It may be changed or removed at any time.-
init(length:travelTime: trafficLength: trafficDelay: departureTimeDescription: arrivalTimeDescription: consumptionForWholeLength: consumptionUpToReachableOffset: remainingBudget: reachableOffset: ) Initializes a Summary to represent a summary.
Declaration
Swift
public init( length: Measurement<UnitLength>, travelTime: Measurement<UnitDuration>, trafficLength: Measurement<UnitLength>, trafficDelay: Measurement<UnitDuration>, departureTimeDescription: String, arrivalTimeDescription: String, 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.
departureTimeDescriptionThe estimated departure time for the route or leg. Specified as a dateTime.
arrivalTimeDescriptionThe estimated arrival time for the route or leg. Specified as a dateTime.
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 let length: Measurement<UnitLength> -
Estimated travel time.
Declaration
Swift
public let travelTime: Measurement<UnitDuration> -
Portion of the route or leg, that is affected by traffic events which cause the delay.
Declaration
Swift
public let 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 let trafficDelay: Measurement<UnitDuration> -
Estimated departure time for the route or leg. Specified as a dateTime.
Declaration
Swift
public let departureTimeDescription: String -
Estimated arrival time for the route or leg. Specified as a dateTime.
Declaration
Swift
public let arrivalTimeDescription: String -
Consumption for the route or leg up to the reachable offset.
Declaration
Swift
public let consumptionUpToReachableOffset: Consumption? -
Remaining energy at the reachable offset.
Declaration
Swift
public let remainingBudget: Consumption? -
Portion of the route or leg that can be driven with the current energy or fuel supply.
Declaration
Swift
public let reachableOffset: Measurement<UnitLength>?
-
Copies the current Summary with changes specified in build closure
Declaration
Swift
public func copy(build: (inout Builder) -> ()) -> SummaryParameters
buildThis closure allows for change of Summary values
Return Value
A Summary with the changes set on the closure
Summary Structure Reference