Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Developer Wilayah Ekonomi Eropa (EEA)
Anda bisa mendapatkan matriks rute untuk berbagai jenis kendaraan. Jika Anda tidak menentukan
jenis kendaraan, Routes API akan menggunakan DRIVE default.
Tetapkan mode perjalanan. Anda dapat memilih mengemudi, kendaraan roda dua, transportasi umum, atau berjalan kaki. Bersepeda tidak didukung untuk matriks rute.
Anda menentukan matriks rute untuk kendaraan bermotor roda dua dengan cara yang sama seperti menentukannya untuk rute, menggunakan parameter Travel_mode.
Dapatkan matriks rute transportasi umum yang menggunakan opsi transportasi umum yang tersedia di wilayah tersebut. Opsi transportasi umum dapat
mencakup bus, kereta bawah tanah, dan kereta, antara lain.
[null,null,["Terakhir diperbarui pada 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. |"]]