Home > @magiclane/maps-sdk > TruckProfile
TruckProfile class
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.
Routing
Signature:
export declare class TruckProfile extends MotorVehicleProfile Extends: MotorVehicleProfile
Constructors
Constructor | Modifiers | Description |
|---|---|---|
Truck profile constructor with default diesel fuel type. |
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
number | Truck axle load in kg. By default it is 0 and is not considered in routing. | ||
number | Truck height in cm. By default it is 0 and is not considered in routing. | ||
number | Truck length in cm. By default it is 0 and is not considered in routing. | ||
number | Truck width in cm. By default it is 0 and is not considered in routing. |
Methods
Method | Modifiers | Description |
|---|---|---|
Check equality with another TruckProfile | ||
Get hash code for use in maps/sets |