ChargingOptions

@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
constructor(minChargeAtDestination: Energy, minChargeAtChargingStops: Energy, avoidChargingParks: List<UUID> = emptyList(), chargingStopsStrategy: ChargingStopsStrategy = ChargingStopsStrategy.AutomaticFastest)

Represents the electric vehicle options that provide charging information.

Parameters

minChargeAtDestination

The desired minimum battery charge level upon arrival at the destination.

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.

avoidChargingParks

Charging parks to avoid. This is a soft avoid, meaning a route with avoided parks is returned if no other route can be found.

chargingStopsStrategy

Specifies the charging stops strategy to be used by the Online Routing service.

Throws

if options are invalid, namely either:

  • minChargeAtChargingStops is negative

  • minChargeAtDestination is negative