Get a two-wheeled vehicle route

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.

Specify the two-wheeler travel mode

Specify the TWO_WHEELER travel mode in your computeRoute request, as shown in the following example:

const request = {
  origin: 'Mountain View, CA',
  destination: 'San Francisco, CA',
  travelMode: 'TWO_WHEELER',
  fields: ['path'],
};