EvChargingAvailabilityOptions
data class EvChargingAvailabilityOptions(val availabilityId: EvChargingAvailabilityId, val connectors: Set<ConnectorType> = emptySet(), val minPower: Power? = null, val maxPower: Power? = null)
Defines the parameters of a request from the EvChargingAvailabilityProvider.
Usage example:
val options = searchResultId.evChargingAvailabilityId?.let { availabilityId ->
EvChargingAvailabilityOptions(
availabilityId = availabilityId,
connectors = setOf(ConnectorType.Iec62196Type1Ccs, ConnectorType.Tesla),
minPower = Power.kilowatts(10),
maxPower = Power.kilowatts(15)
)
}
Content copied to clipboard
Important: This is a Public Preview API. It may be changed or removed at any time.
Throws
Constructors
Link copied to clipboard
constructor(availabilityId: EvChargingAvailabilityId, connectors: Set<ConnectorType> = emptySet(), minPower: Power? = null, maxPower: Power? = null)
Properties
Link copied to clipboard
The availability ID of the target charging station. Obtain the ID from the Search API by performing a search request and extracting the ID from the result, if it represents a charging station. Alternatively, retrieve it from the POI Details API by requesting the details of a charging station.
Link copied to clipboard
A set of connector types to restrict the results to specific availability types.