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

Avoidance flags. Available for the car and truck profiles only.

interface RoutingAvoidances {  
    [ferry](#ferry)?: boolean;  
    [highway](#highway)?: boolean;  
    [tolls](#tolls)?: boolean;  
}

##### Index

### Properties

[ferry?](#ferry) [highway?](#highway) [tolls?](#tolls)

## Properties

### `Optional`ferry[](#ferry)

ferry?: boolean

Avoid ferries

### `Optional`highway[](#highway)

highway?: boolean

Avoid highways

### `Optional`tolls[](#tolls)

tolls?: boolean

Avoid toll roads
