---
title: "RoutingCarOptions | 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 RoutingCarOptions

Car-specific routing options.

interface RoutingCarOptions {  
    [avoidances](#avoidances)?: [RoutingAvoidances](https://docs.maptiler.com/client-js/api/interfaces/services_routing.RoutingAvoidances/);  
    [mode](#mode)?: "fastest" | "shortest" | "balanced";  
    [topSpeed](#topspeed)?: number;  
}

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

##### Index

### Properties

[avoidances?](#avoidances) [mode?](#mode) [topSpeed?](#topspeed)

## Properties

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

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

Avoidance flags

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

### `Optional`mode[](#mode)

mode?: "fastest" | "shortest" | "balanced"

Car routing mode: fastest, shortest or balanced

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

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

topSpeed?: number

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

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