ChargingOptions
public struct ChargingOptions
Represents the electric vehicle options that provide charging information.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Creates a new
ChargingOptions
instance with the given parameters.Declaration
Swift
public init( minChargeAtDestination: Measurement<UnitEnergy> = .tt.kilowattHours(0), minChargeAtChargingStops: Measurement<UnitEnergy> = .tt.kilowattHours(0) )
Parameters
minChargeAtDestination
The battery level upon arrival at the destination of the resulting route will be at least this much.
minChargeAtChargingStops
The desired minimum battery charge level upon arrival at each charging station. However, the remaining charge at the first charging stop may be lower.
-
The battery level upon arrival at the destination of the resulting route will be at least this much.
Declaration
Swift
public let minChargeAtDestination: Measurement<UnitEnergy>
-
The desired minimum battery charge level upon arrival at each charging station. However, the remaining charge at the first charging stop may be lower.
Declaration
Swift
public let minChargeAtChargingStops: Measurement<UnitEnergy>