---
title: "RoutingCarOptions | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> 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/sdk-js/api-reference/interfaces/RoutingAvoidances/);  
    [mode](#mode)?: "fastest" | "shortest" | "balanced";  
    [topSpeed](#topspeed)?: number;  
}

##### Index

### Properties

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

## Properties

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

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

Avoidance flags

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

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

Car routing mode: fastest, shortest or balanced

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

topSpeed?: number

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