---
title: Route
framework: mapkitjs
role: symbol
role_heading: Class
path: mapkitjs/route
---

# Route

Information about a route, including step-by-step instructions, distance, and estimated travel time.

## Declaration

```data
class Route
```

## Overview

Overview A Route object encapsulates the information for a route that the server returns, including geometry that you can use to draw a path and step-by-step text instructions. You don’t instantiate Route objects directly; MapKit JS returns them as part of the DirectionsResponse.

## Topics

### Route geometry

- [polyline](mapkitjs/route/polyline.md)

### Deprecated

- [path](mapkitjs/route/path.md)

### Route details

- [steps](mapkitjs/route/steps.md)
- [name](mapkitjs/route/name.md)
- [distance](mapkitjs/route/distance.md)
- [expectedTravelTime](mapkitjs/route/expectedtraveltime.md)
- [transportType](mapkitjs/route/transporttype.md)
- [hasTolls](mapkitjs/route/hastolls.md)

## See Also

### Getting directions

- [route(request)](mapkitjs/directions/route.md)
- [DirectionsRequest](mapkitjs/directionsrequest.md)
- [DirectionsResponse](mapkitjs/directionsresponse.md)
- [RouteStep](mapkitjs/routestep.md)
