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

(constructor)(options)

Truck profile constructor with default diesel fuel type.

Properties

Property

Modifiers

Type

Description

axleLoad

number

Truck axle load in kg. By default it is 0 and is not considered in routing.

height

number

Truck height in cm. By default it is 0 and is not considered in routing.

length

number

Truck length in cm. By default it is 0 and is not considered in routing.

width

number

Truck width in cm. By default it is 0 and is not considered in routing.

Methods

Method

Modifiers

Description

equals(other)

Check equality with another TruckProfile

hashCode()

Get hash code for use in maps/sets