sdk-routing / com.tomtom.online.sdk.routing.ev.charging / ChargingMode / <init>

<init>

ChargingMode(chargingConnections: List<ChargingConnection>, chargingCurve: List<ChargingCurveSupportPoint>)

Represents information about the charging behavior of the vehicle. Creates an instance of ChargingMode.

Parameters

chargingConnections - A non-empty list of at most 20 unique chargingConnections which result in the same charging curve.

chargingCurve -

A piecewise-linear function that maps a target charge level to the time it takes to charge an empty battery to this level, and is used to compute charging times of the vehicle.

It is given by a sequence of at most 10 non-duplicate chargingCurveSupportPoints that are totally, increasingly ordered in timeToChargeInSeconds and chargeInkWh.