Places UI Kit: A ready-to-use library that provides room for customization and low-code development. Try it out, and share yourinput on your UI Kit experience.

Route Matrix vehicle types

European Economic Area (EEA) developers If your billing address is in the European Economic Area, effective on 8 July 2025, the Google Maps Platform EEA Terms of Service will apply to your use of the Services. Functionality varies by region.Learn more.

You can get a route matrix for different types of vehicles. If you don't specify a vehicle type, the Routes library uses the default ofDRIVING. You can choose driving, two-wheeled vehicles, transit, or walking.

Important: Two-wheeled, walking, and bicycling routes are in beta and might sometimes be missing clear sidewalks, pedestrian paths, or bicycling paths. You must display this warning to the user for all two-wheel, walking, or bicycling routes that you display in your app.

The following table lists the vehicle types supported by the Routes library:

  • Two-wheeled vehicle: Specify a route matrix for a two-wheeled motorized vehicle the same way you specify it for a route, using thetravelMode parameter.
  • Transit: Get a transit route matrix that uses the public transportation options available in the region. Transit options may include buses, subways, and trains, among others.
  • Bicycling: Get a bicycling route matrix that uses the public transportation options available in the region.
Note: Two-wheeled, walking, and bicycling routes are in beta and might sometimes miss clear sidewalks, pedestrian paths, or bicycling paths. You must display this warning to the user for all two-wheel, walking, or bicycling routes that you display in your app.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-10-31 UTC.