Builder

public struct Builder

The Builder creates the new instance of Summary with modified fields.

Public

  • 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 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 var trafficDelay: Measurement<UnitDuration>
  • Estimated departure time for the route or leg. Specified as a dateTime.

    Declaration

    Swift

    public var departureTimeDescription: String
  • Estimated arrival time for the route or leg. Specified as a dateTime.

    Declaration

    Swift

    public var arrivalTimeDescription: String
  • Estimated electric energy consumption.

    Declaration

    Swift

    public var batteryConsumption: Measurement<UnitEnergy>?
  • Estimated fuel consumption.

    Declaration

    Swift

    public var fuelConsumption: Measurement<UnitVolume>?
  • Consumption for the whole route or leg.

    Declaration

    Swift

    public let consumptionForWholeLength: Consumption?
  • Consumption for the route or leg up to the reachable offset.

    Declaration

    Swift

    public let consumptionUpToReachableOffset: Consumption?
  • Remaining fuel or energy when reaching the end of the route or leg.

    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>?