DProfile

constructor(id: String, vehicleModelId: String, height: Int, length: Int, width: Int, weight: Int, weightPerAxle: Int, transportType: APITransportationType, onlyPhysical: Boolean = false, apiVehicleDatasheet: String?)

Helper constructor used to create an instance based on APIVehicleDatasheet as returned from the BeMAP API.


constructor(id: String, vehicleModelId: String, height: Double = 0.0, length: Double = 0.0, width: Double = 0.0, weight: Double = 0.0, weightPerAxle: Double = 0.0, nbTrailers: Int = 0, hazmat: Hazmat = Hazmat.NONE, adr: AdrTunnelCat = AdrTunnelCat.NONE, maxSpeed: Double = 0.0, transportationMode: TranspMode = TranspMode.PASSENGER_CAR, encryptedDatasheet: String? = null, onlyPhysical: Boolean = false)

Parameters

id

id of the profile

vehicleModelId

id of the vehicle connected to given profile

height

height of the vehicle

length

length of the vehicle

width

width of the vehicle

weight

total vehicle weight

weightPerAxle

vehicle weight for each axle

nbTrailers

amount of trailers

hazmat

hazardous material status

adr

ADR (European Agreement concerning the International Carriage of Dangerous Goods by Road) tunnel category

maxSpeed

maximum vehicle speed

transportationMode

transportation mode assigned to given model

encryptedDatasheet

datasheet containing additional encrypted information of given vehicle model

onlyPhysical

defines if vehicle's weight (weight, weight per axle) and hazmat (hazmat and ADR)* should be ignored outside respectively bridges and tunnels (default is false)