APIVehicle

data class APIVehicle(val key: String, val name: String, val variant: String, val year: String?, val brandId: String, val transportType: APITransportationType, val height: Int, val width: Int, val length: Int, val maxWeight: Int, val maxWeightPerAxle: Int, val batteryName: String?, val connectorTypes: List<Int>, val motorType: APIMotorType?, val chargerPowerAcSinglePhase: Double, val chargerPowerAcThreePhases: Double, val chargerPowerDC: Double, val encDatasheet: String?)

Stores information about a vehicle model (API naming = Vehicle) the way they are returned by the BeMAP API. Members names must be the same as

Parameters

key

id of given vehicle

name

name of the vehicle

variant

Variant or sub name of vehicle

year

Year of release and end of series in format yyyy or yyyy-yyyy

brandId

manufacturer (brand) id of given vehicle

transportType

the transportation type of the vehicle

height

vehicle height in cm

width

vehicle width in cm

length

vehicle length (in cm)

maxWeight

Maximum weight in tenth of ton

maxWeightPerAxle

Maximum weight per axle in tenth of ton

batteryName

The commercial name or power of vehicle battery

connectorTypes

list of supported connector types by given vehicle

motorType

motor type of vehicle

chargerPowerAcSinglePhase

Maximum charge power (in kW) in AC 1 phase current type

chargerPowerAcThreePhases

Maximum charge power (in kW) in AC 3 phases current type

chargerPowerDC

Maximum charge power (in kW) in DC current type

encDatasheet

api datasheet containing additional encrypted information of given vehicle model

Constructors

Link copied to clipboard
constructor(key: String, name: String, variant: String, year: String?, brandId: String, transportType: APITransportationType, height: Int, width: Int, length: Int, maxWeight: Int, maxWeightPerAxle: Int, batteryName: String?, connectorTypes: List<Int>, motorType: APIMotorType?, chargerPowerAcSinglePhase: Double, chargerPowerAcThreePhases: Double, chargerPowerDC: Double, encDatasheet: String?)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The rule you have to apply for converting a BeMap connector type identifier to a ConnectorType (MSDK) enum:

Link copied to clipboard
Link copied to clipboard
val height: Int
Link copied to clipboard
val key: String
Link copied to clipboard
val length: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val width: Int
Link copied to clipboard
val year: String?