Get a two-wheeled vehicle route

  • The TWO_WHEELER travel mode is used to request routes specifically for motorcycles and similar motorized two-wheeled vehicles, distinct from bicycles.

  • Using the TWO_WHEELER travel mode will result in higher billing rates compared to other travel modes.

  • Routes generated for two-wheeled vehicles are in beta and might not always include optimal paths for motorcycles; it's crucial to display a warning to users about this.

  • You can specify the TWO_WHEELER travel mode within the travelMode property of your Routes API request to obtain routes optimized for motorcycles.

  • Supported regions for two-wheeled vehicle routes may vary, so consult the documentation for coverage details.

European Economic Area (EEA) developers

Two-wheeled refers to two-wheeled motorized vehicles (for example, motorcycles). The two-wheeler travel mode differs from the bicycle travel mode, which is a human-powered travel mode.

Use the travelMode property of a request to specify the mode. The possible values of this property are defined by enumerations in RouteTravelMode (REST) and RouteTravelMode (gRPC).

Specify the two-wheeler travel mode

When you call a Routes API, you specify the RouteTravelMode enumeration value to specify the travel mode.

The following example shows how to set the travel mode to TWO_WHEELER in a computeRoutes method (REST) request body. You can also specify this option to the ComputeRoutes method (gRPC).

In this example, you compute the directions between two locations in India specified by Plus codes:

{
  "origin":{
    "address": "H8MW+WP Kolkata India"
  },
  "destination":{
    "address": "GCG2+3M Kolkata India"
  },
  "travelMode":"TWO_WHEELER"
}