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

Summary of a route or a leg

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

##### 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/sdk-js/api-reference/types/RoutingBBox/)

Bounding box of the route

### cost[](#cost)

cost: number

Cost calculated by the costing model

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

ferry?: boolean

Whether route contains ferries

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

highway?: boolean

Whether route contains highways

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

toll?: boolean

Whether route contains tolls

### totalLength[](#totallength)

totalLength: number

Total travel distance in chosen units

### totalTime[](#totaltime)

totalTime: number

Total travel time in seconds
