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

Single leg of a route

interface RoutingRouteLeg {  
    [geometry](#geometry): Position\[\];  
    [steps](#steps)?: [RoutingRouteStep](https://docs.maptiler.com/client-js/api/interfaces/services_routing.RoutingRouteStep/)\[\];  
    [summary](#summary): [RoutingSummary](https://docs.maptiler.com/client-js/api/interfaces/services_routing.RoutingSummary/);  
}

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

##### Index

### Properties

[geometry](#geometry) [steps?](#steps) [summary](#summary)

## Properties

### geometry[](#geometry)

geometry: Position\[\]

Geometry of the leg as a list of coordinates. Encoded Polyline geometry is decoded by the client before being returned.

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

### `Optional`steps[](#steps)

steps?: [RoutingRouteStep](https://docs.maptiler.com/client-js/api/interfaces/services_routing.RoutingRouteStep/)\[\]

Turn-by-turn steps

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

### summary[](#summary)

summary: [RoutingSummary](https://docs.maptiler.com/client-js/api/interfaces/services_routing.RoutingSummary/)

Summary of the leg

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