setVehicle

fun setVehicle(vehicleType: <Error class: unknown class>, vehicleParameters: List<VehicleParameter>)

Set vehicle parameters, compliant with vehicle type.

Important: This is a Public Preview API. It may be changed or removed at any time.

Parameters

vehicleType

The vehicle type.

vehicleParameters

The vehicle parameters.

Throws

If vehicle parameters are not applicable to the vehicle type.


fun setVehicle(vehicleType: <Error class: unknown class>, modelId: String, vehicleParameters: List<VehicleParameter>)

Set vehicle parameters, compliant with vehicle type.

Important: This is a Public Preview API. It may be changed or removed at any time.

Parameters

vehicleType

The vehicle type.

modelId

Specifies the Model ID of the vehicle as obtained from the TomTom Vehicle Database. It allows calculating an EV route without specifying the vehicle's consumption and charging parameters. Only applicable if the vehicleType is a Motorized type. In case that the string is blank (empty or only whitespace) it is considered as not specified.

vehicleParameters

The vehicle parameters.

Throws

If are not applicable to the vehicle type or if modelId is a non-empty string and the vehicleType is non-motorized.