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

Summary of a route or a leg

interface RoutingSummary {  
    [bbox](#bbox): [RoutingBBox](https://docs.maptiler.com/client-js/api/types/services_routing.RoutingBBox/);  
    [cost](#cost): number;  
    [ferry](#ferry)?: boolean;  
    [highway](#highway)?: boolean;  
    [toll](#toll)?: boolean;  
    [totalLength](#totallength): number;  
    [totalTime](#totaltime): number;  
}

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

##### Index

### Properties

[bbox](#bbox) [cost](#cost) [ferry?](#ferry) [highway?](#highway) [toll?](#toll) [totalLength](#totallength) [totalTime](#totaltime)

## Properties

### bbox[](#bbox)

bbox: [RoutingBBox](https://docs.maptiler.com/client-js/api/types/services_routing.RoutingBBox/)

Bounding box of the route

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

### cost[](#cost)

cost: number

Cost calculated by the costing model

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

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

ferry?: boolean

Whether route contains ferries

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

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

highway?: boolean

Whether route contains highways

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

### `Optional`toll[](#toll)

toll?: boolean

Whether route contains tolls

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

### totalLength[](#totallength)

totalLength: number

Total travel distance in chosen units

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

### totalTime[](#totaltime)

totalTime: number

Total travel time in seconds

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