ChargingStop
public struct ChargingStop : Hashable
The options to specify a user-planned charging stop.
Note:
In order to specify this ChargingStop, it is also required to set
[sdk.routing.BatterySpecifications.total_capacity_in_kilowatt_hours], [sdk.routing.BatterySpecifications.initial_charge_in_kilowatt_hours],
and [sdk.routing.BatterySpecifications.charging_curve].
Without all of them, the route calculation will fail as an invalid parameter error.
-
The value of rated power of the connector (in kW).
Declaration
Swift
public var powerInKilowatts: Double -
The value of rated current of the connector (in A).
Declaration
Swift
public var currentInAmperes: Double -
The value of rated voltage of the connector (in V).
Declaration
Swift
public var voltageInVolts: Double -
Supply type of the suggested connector.
Declaration
Swift
public var supplyType: ChargingSupplyType? -
The minimum duration the user expects to charge at the station, including
BatterySpecifications.chargingSetupDuration. Note: At least one ofmin_durationandmax_durationis required for a user-planned charging stop. For most use cases, providing at leastmin_durationis recommended.Declaration
Swift
public var minDuration: TimeInterval? -
The maximum duration the user plans to charge at the station, including
BatterySpecifications.chargingSetupDuration. Note: At least one ofmin_durationandmax_durationis required for a user-planned charging stop. For most use cases, providing at leastmin_durationis recommended.Declaration
Swift
public var maxDuration: TimeInterval? -
Creates a new instance.
Declaration
Swift
public init(powerInKilowatts: Double = 0.0, currentInAmperes: Double = 0.0, voltageInVolts: Double = 0.0, supplyType: ChargingSupplyType? = nil, minDuration: TimeInterval? = nil, maxDuration: TimeInterval? = nil)