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 Stay organized with collections Save and categorize content based on your preferences.
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.
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 the
travelModeparameter. - 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.
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.