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

# TransportType

The modes of transportation.

```
const TransportType: Readonly<{
    readonly Automobile: "AUTOMOBILE";
    readonly Walking: "WALKING";
    readonly Cycling: "CYCLING";
}>
type TransportType = (typeof TransportType)[keyof typeof TransportType];
```

## Overview

Constants that describe the mode of transportation in [`DirectionsRequest`](/documentation/MapKitJS/DirectionsRequest) and [`DirectionsResponse`](/documentation/MapKitJS/DirectionsResponse).

## Topics

### Transport types

[`readonly Walking: "WALKING";`](/documentation/MapKitJS/TransportType/Walking)

A constant identifying the mode of transportation as walking.

[`readonly Automobile: "AUTOMOBILE";`](/documentation/MapKitJS/TransportType/Automobile)

A constant identifying the mode of transportation as driving.

[`readonly Cycling: "CYCLING";`](/documentation/MapKitJS/TransportType/Cycling)

A constant identifying the mode of transportation as cycling.



---

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)