copy

fun copy(maxSpeed: Speed? = this.maxSpeed, isCommercial: Boolean = this.isCommercial, electricEngine: ElectricEngine? = this.electricEngine, combustionEngine: CombustionEngine? = this.combustionEngine, dimensions: VehicleDimensions? = this.dimensions, modelId: String? = this.modelId, hazmatClasses: Set<HazmatClass> = this.hazmatClasses, adrTunnelRestrictionCode: AdrTunnelRestrictionCode? = this.adrTunnelRestrictionCode): Vehicle.Truck

Deprecated

This will be removed 6 months after the next release.

Replace with

Use constructor to create the copy

Creates a copy of this Truck object.

Return

The copied Truck object.

Parameters

maxSpeed

The vehicle's maximum speed.

isCommercial

If true, the vehicle is used for commercial purposes and thus may not be allowed to drive on some roads.

electricEngine

The vehicle's electric engine for route and consumption calculation.

combustionEngine

The vehicle's combustion engine for route and consumption calculation.

dimensions

The car's dimensions.

modelId

Specifies the Model ID of the vehicle as obtained from the TomTom Vehicle Database.

hazmatClasses

The hazardous materials classes of the vehicle's load.

adrTunnelRestrictionCode

The ADR tunnel restrictions of the vehicle.