ChargeLevel

public struct ChargeLevel

Describes capacity and current charge of the EV.

Note

This option is supported with the Orbis map only when chargingOptions are set in RoutePlanningOptions.
  • Creates an instance of ChargeLevel.

    Note

    The parameter maxCharge is ignored if the parameter modelID is set in the vehicle.

    Throws

    VehicleError.invalidVehicleSnapshot if the current charge is outside of the [0 … max charge] range.

    Declaration

    Swift

    public init
        (
            currentCharge: Measurement<UnitEnergy>,
            maxCharge: Measurement<UnitEnergy>
        ) throws

    Parameters

    currentCharge

    Specifies the current electric energy stored.

    maxCharge

    Specifies the maximum electric energy supply that may be stored in the vehicle’s battery.

  • Specifies the current electric energy stored.

    Declaration

    Swift

    public let currentCharge: Measurement<UnitEnergy>
  • Specifies the maximum electric energy supply that may be stored in the vehicle’s battery.

    Note

    This option is ignored if the parameter modelID is set in the vehicle.

    Declaration

    Swift

    public let maxCharge: Measurement<UnitEnergy>