<!--
{
  "availability" : [
    "MapKit JS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKitJS",
  "identifier" : "/documentation/MapKitJS/Route",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "MapKit JS"
    ],
    "preciseIdentifier" : "cl/mapkit.Route"
  },
  "title" : "Route"
}
-->

# Route

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

```
class Route
```

## Overview

A [`Route`](/documentation/MapKitJS/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`](/documentation/MapKitJS/Route) objects directly; MapKit JS returns them as part of the [`DirectionsResponse`](/documentation/MapKitJS/DirectionsResponse).

## Topics

### Route geometry

[`polyline`](/documentation/MapKitJS/Route/polyline)

An instance of a polyline overlay that represents the path of a route.

### Deprecated

[`path`](/documentation/MapKitJS/Route/path)

An array of coordinate objects representing the path of the route.

### Route details

[`steps`](/documentation/MapKitJS/Route/steps)

An array of steps that compose the overall route.

[`name`](/documentation/MapKitJS/Route/name)

The name assigned to the route.

[`distance`](/documentation/MapKitJS/Route/distance)

The route distance, in meters.

[`expectedTravelTime`](/documentation/MapKitJS/Route/expectedTravelTime)

The expected travel time, in seconds.

[`transportType`](/documentation/MapKitJS/Route/transportType)

The overall route transport type.

[`hasTolls`](/documentation/MapKitJS/Route/hasTolls)

A Boolean value that indicates whether a route has tolls.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)