Truck profile constructor with default diesel fuel type.
Optionaloptions: {Configuration options
OptionalaxleLoad?: numberAxle load in kilograms (default 0).
Optionalfuel?: FuelTypeEngine fuel type (default FuelType.diesel).
Optionalheight?: numberTruck height in centimetres (default 0).
Optionallength?: numberTruck length in centimetres (default 0).
Optionalmass?: numberVehicle mass in kilograms (default 0).
OptionalmaxSpeed?: numberMaximum speed in m/s (default 0).
OptionalplateNumber?: stringRegistration plate number (inherited).
Optionalwidth?: numberTruck width in centimetres (default 0).
Truck axle load in kg. By default it is 0 and is not considered in routing.
Engine fuel type. Default is FuelType.petrol.
Truck height in cm. By default it is 0 and is not considered in routing.
Truck length in cm. By default it is 0 and is not considered in routing.
Vehicle mass in kg. By default it is 0 and is not considered in routing.
Vehicle maximum speed in m/s. By default it is 0 and is not considered in routing.
The vehicle's registration plate number.
Truck width in cm. By default it is 0 and is not considered in routing.
Get hash code for use in maps/sets
ProtectedhashInternalSerializes this instance to a JSON-compatible map.
Used internally, not intended for direct use by consumers. The map structure may change without notice.
JSON-compatible map
StaticfromInternalDeserializes a JSON-compatible map to create an instance.
Used internally, not intended for direct use by consumers. The expected map structure may change without notice.
JSON-compatible map
A new TruckProfile instance
Truck routing profile.
Profile used for truck/lorry routing that includes vehicle dimensions and axle/load constraints. These parameters are considered by the routing engine when calculating truck-compatible routes (bridges, height/weight limits, etc.).
Make sure to specify accurate values for the truck dimensions as they are measured in centimetres.