---
title: "RoutingTruckOptions | Client js | Api client"
description: "Documentation for MapTiler Client"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Interface RoutingTruckOptions

Truck-specific routing options.

interface RoutingTruckOptions {  
    [avoidances](#avoidances)?: [RoutingAvoidances](https://docs.maptiler.com/client-js/api/interfaces/services_routing.RoutingAvoidances/);  
    [axleLoad](#axleload)?: number;  
    [hazmat](#hazmat)?: boolean;  
    [height](#height)?: number;  
    [length](#length)?: number;  
    [topSpeed](#topspeed)?: number;  
    [weight](#weight)?: number;  
}

-   Defined in [services/routing.ts:100](https://github.com/maptiler/maptiler-client-js/blob/840c3494cc9fa876b145ae8e89c35241f91cbc6f/src/services/routing.ts#L100)

##### Index

### Properties

[avoidances?](#avoidances) [axleLoad?](#axleload) [hazmat?](#hazmat) [height?](#height) [length?](#length) [topSpeed?](#topspeed) [weight?](#weight)

## Properties

### `Optional`avoidances[](#avoidances)

avoidances?: [RoutingAvoidances](https://docs.maptiler.com/client-js/api/interfaces/services_routing.RoutingAvoidances/)

Avoidance flags

-   Defined in [services/routing.ts:135](https://github.com/maptiler/maptiler-client-js/blob/840c3494cc9fa876b145ae8e89c35241f91cbc6f/src/services/routing.ts#L135)

### `Optional`axleLoad[](#axleload)

axleLoad?: number

Axle load of the truck, in metric tonnes. Default: 9.07. Maximum: 40.

-   Defined in [services/routing.ts:123](https://github.com/maptiler/maptiler-client-js/blob/840c3494cc9fa876b145ae8e89c35241f91cbc6f/src/services/routing.ts#L123)

### `Optional`hazmat[](#hazmat)

hazmat?: boolean

Whether the truck carries hazardous materials

-   Defined in [services/routing.ts:126](https://github.com/maptiler/maptiler-client-js/blob/840c3494cc9fa876b145ae8e89c35241f91cbc6f/src/services/routing.ts#L126)

### `Optional`height[](#height)

height?: number

Height of the truck, in meters. Default: 4.11.

-   Defined in [services/routing.ts:111](https://github.com/maptiler/maptiler-client-js/blob/840c3494cc9fa876b145ae8e89c35241f91cbc6f/src/services/routing.ts#L111)

### `Optional`length[](#length)

length?: number

Length of the truck, in meters. Default: 21.64.

-   Defined in [services/routing.ts:117](https://github.com/maptiler/maptiler-client-js/blob/840c3494cc9fa876b145ae8e89c35241f91cbc6f/src/services/routing.ts#L117)

### `Optional`topSpeed[](#topspeed)

topSpeed?: number

Maximal speed of the truck, in km/h. Whole numbers only. Default: 120. Maximum: 252.

-   Defined in [services/routing.ts:132](https://github.com/maptiler/maptiler-client-js/blob/840c3494cc9fa876b145ae8e89c35241f91cbc6f/src/services/routing.ts#L132)

### `Optional`weight[](#weight)

weight?: number

Weight of the truck, in metric tonnes. Used for restrictions. Default: 21.77.

-   Defined in [services/routing.ts:105](https://github.com/maptiler/maptiler-client-js/blob/840c3494cc9fa876b145ae8e89c35241f91cbc6f/src/services/routing.ts#L105)
