---
title: "RoutingDistanceUnit | 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.

# Type Alias RoutingDistanceUnit

RoutingDistanceUnit: "km" | "mi"

Unit of length to use

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