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

> For AI agents: a documentation index is available at [/llms.txt](https://docs-qmgv.pages.dev/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;  
}

-   Defined in [services/routing.ts:73](https://github.com/maptiler/maptiler-client-js/blob/24dcae07591a8f57b9bf9fd7100fb66be5fdb76c/src/services/routing.ts#L73)

##### Index

### Properties

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

## Properties

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

ferry?: boolean

Avoid ferries

-   Defined in [services/routing.ts:78](https://github.com/maptiler/maptiler-client-js/blob/24dcae07591a8f57b9bf9fd7100fb66be5fdb76c/src/services/routing.ts#L78)

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

highway?: boolean

Avoid highways

-   Defined in [services/routing.ts:81](https://github.com/maptiler/maptiler-client-js/blob/24dcae07591a8f57b9bf9fd7100fb66be5fdb76c/src/services/routing.ts#L81)

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

tolls?: boolean

Avoid toll roads

-   Defined in [services/routing.ts:75](https://github.com/maptiler/maptiler-client-js/blob/24dcae07591a8f57b9bf9fd7100fb66be5fdb76c/src/services/routing.ts#L75)
