sdk-routing / com.tomtom.online.sdk.routing.data.longDistanceEV.charging / NativeChargingMode / <init>

<init>

NativeChargingMode(chargingConnections: MutableList<NativeChargingConnection!>!, chargingCurve: MutableList<NativeChargingCurveSupportPoint!>!)

Creates an instance of ChargingMode.

Parameters

chargingConnections - MutableList<NativeChargingConnection!>!: A non-empty list of at most 20 unique chargingConnections which result in the same charging curve.

chargingCurve - MutableList<NativeChargingCurveSupportPoint!>!: A piecewise-linear function which maps a target charge level to the time it takes to charge an empty battery to this level, that 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.