Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Sviluppatori nello Spazio economico europeo (SEE)
Oltre a specificare l'origine e la destinazione, puoi anche utilizzare molte delle opzioni disponibili per i percorsi per personalizzare una matrice di percorsi. Per ulteriori dettagli su come impostare queste opzioni, consulta gli argomenti collegati nella tabella:
Richiedi il testo localizzato per la risposta della matrice di percorsi nello stesso modo
in cui lo fai per un percorso, utilizzando una maschera di campo.
[null,null,["Ultimo aggiornamento 2025-06-20 UTC."],[[["\u003cp\u003eCustomize route matrices with various options beyond origin and destination, including travel mode, toll fees calculation, and vehicle type.\u003c/p\u003e\n"],["\u003cp\u003eChoose from travel modes like driving, transit, walking, or two-wheeled vehicles, but note that walking, bicycling, and two-wheeled vehicle routes are in beta and require a user warning.\u003c/p\u003e\n"],["\u003cp\u003eRequest localized text for route matrix responses and specify additional options like departure time within the request body.\u003c/p\u003e\n"],["\u003cp\u003eCalculate estimated toll fees for routes within your matrix and explore further vehicle type selections for more tailored results.\u003c/p\u003e\n"]]],["Customize route matrices by selecting travel modes like driving, transit, walking, or two-wheeled vehicles, noting that walking, bicycling, and two-wheeled options are in beta. You can request estimated toll fees, specify localized text in responses, and select vehicle types. Additional options, such as departure time, are available in the request body. Each option has specific documentation for further details, and the warning must be displayed when walking, bicycling, or two-wheel routes are used.\n"],null,["# Available route matrix options\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\nAlong with specifying the origin and destination, you can also use many of the\noptions available for routes to customize a route matrix. For more details on\nhow to set these options, see the topics linked in the table:\n\n| Option | Description |\n|-----------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Travel mode](/maps/documentation/routes/reference/rest/v2/RouteTravelMode) | The mode of travel, such as drive, transit, walk, or two-wheeled vehicle. | **Note:** Walking, bicycling, and two-wheeled vehicle 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 walking, bicycling, and two-wheel routes that you display in your app. |\n| [Specify how and if to include traffic data](/maps/documentation/routes/config_trade_offs-rm) | Include traffic data for more accurate results, or exclude it for a faster response. |\n| [Calculate toll fees for a route matrix](/maps/documentation/routes/calculate_toll-rm) | Include estimated toll fees for routes in a route matrix. |\n| [Request localized values](/maps/documentation/routes/localized-values-rm) | You request localized text for your route matrix response in the same way as for a route, using a field mask. |\n| [Available route matrix vehicle types](/maps/documentation/routes/vehicles-rm) | Additional options for selecting the type of vehicle for the route matrix. |\n| **Additional options** | To specify additional options, such as the departure time, see [Request body](/maps/documentation/routes/reference/rest/v2/TopLevel/computeRouteMatrix#request-body). |"]]