Get a bicycling vehicle route

European Economic Area (EEA) developers

Bicycling is a human-powered travel mode; vehicles classified as two-wheelers are generally powered vehicles (for example, motorcycles).

Use the travelMode property of a request to specify the mode.

Specify the bicycling travel mode

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

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