מגדירים את אמצעי התחבורה. אפשר לבחור באפשרויות 'נהיגה', 'כלי רכב דו-גלגליים', 'תחבורה ציבורית' או 'הליכה'. אין תמיכה ברכיבה על אופניים במטריצות מסלולים.
לקבל מטריצה של מסלולי תחבורה ציבורית שמבוססת על אפשרויות התחבורה הציבורית הזמינות באזור. אפשרויות התחבורה הציבורית יכולות לכלול, בין היתר, אוטובוסים, רכבות תחתית ורכבות.
[null,null,["עדכון אחרון: 2025-06-20 (שעון UTC)."],[[["\u003cp\u003eThe Routes API offers route matrix calculations for various vehicle types, defaulting to driving if unspecified.\u003c/p\u003e\n"],["\u003cp\u003eSupported vehicle types include driving, two-wheeled vehicles, transit, and walking, with bicycling excluded for route matrixes.\u003c/p\u003e\n"],["\u003cp\u003eTwo-wheeled, walking, and bicycling routes are in beta and require a user-displayed warning due to potential path inaccuracies.\u003c/p\u003e\n"],["\u003cp\u003eTransit route matrixes leverage available public transportation like buses, subways, and trains within the specified region.\u003c/p\u003e\n"]]],[],null,["# Available route matrix vehicle types\n\n**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](https://cloud.google.com/terms/maps-platform/eea) will apply to your use of the Services. Functionality varies by region. [Learn more](/maps/comms/eea/faq).\n\nYou can get a route matrix for different types of vehicles. If you don't specify\na vehicle type, the Routes API uses the default of DRIVE.\n\n| Vehicle type | Description |\n|-----------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Travel mode](/maps/documentation/routes/reference/rest/v2/RouteTravelMode) | Set the mode of travel. You can choose driving, two-wheeled vehicles, transit, or walking. Bicycling is not supported for route matrixes. | **Note:** 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. |\n| [Two-wheeled vehicle](/maps/documentation/routes/route_two_wheel) | You specify a route matrix for a two-wheeled motorized vehicle the same way you specify it for a route, using the `Travel_mode` parameter. |\n| [Transit](/maps/documentation/routes/transit-rm) | 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. |"]]