sdk-routing / com.tomtom.online.sdk.routing.route.vehicle / VehicleRestrictions

VehicleRestrictions

@Beta(2020, 12) data class VehicleRestrictions

Specifies the restriction that this vehicle should be subjected to.

Parameters

vehicleMaxSpeedInKph - Specifies maximum speed of the vehicle in km/hour.

isVehicleCommercial - Specifies whether the vehicle is used for commercial purposes and thus may not be allowed to drive on some roads.

vehicleLoadType - Specifies the vehicle load type for route calculation.

vehicleAdrTunnelRestrictionCode - If specified, the vehicle is subject to ADR tunnel restrictions.

Types

Builder

class Builder

Builder used to create an instance of VehicleRestrictions. Once constructed, the user cannot change the field values.

Properties

isVehicleCommercial

val isVehicleCommercial: Boolean?

Specifies whether the vehicle is used for commercial purposes and thus may not be allowed to drive on some roads.

vehicleAdrTunnelRestrictionCode

val vehicleAdrTunnelRestrictionCode: VehicleAdrTunnelRestrictionCode

If specified, the vehicle is subject to ADR tunnel restrictions.

vehicleLoadType

val vehicleLoadType: VehicleLoadType

Specifies the vehicle load type for route calculation.

vehicleMaxSpeedInKph

val vehicleMaxSpeedInKph: Int?

Specifies maximum speed of the vehicle in km/hour.