Builder
Builder used to create an instance of VehicleRestrictions. Once constructed, the user cannot change the field values.
Important: This is a Public Preview API. It may be changed or removed at any time.
Constructors
Functions
Link copied to clipboard
Creates a new instance of the VehicleRestrictions.
Link copied to clipboard
fun isVehicleCommercial(isVehicleCommercial: Boolean): VehicleRestrictions.Builder
Content copied to clipboard
Specifies whether the vehicle is used for commercial purposes and thus may not be allowed to drive on some roads.
Link copied to clipboard
fun vehicleAdrTunnelRestrictionCode(vehicleAdrTunnelRestrictionCode: VehicleAdrTunnelRestrictionCode): VehicleRestrictions.Builder
Content copied to clipboard
If vehicleAdrTunnelRestrictionCode is specified, the vehicle is subject to ADR tunnel restrictions.
Link copied to clipboard
fun vehicleLoadType(vehicleLoadType: VehicleLoadType): VehicleRestrictions.Builder
Content copied to clipboard
Specifies the vehicle load type for route calculation.
Link copied to clipboard
fun vehicleMaxSpeedInKph(vehicleMaxSpeedInKph: Int): VehicleRestrictions.Builder
Content copied to clipboard
Specifies maximum speed of the vehicle in km/hour.