Along with specifying the origin and destination, you can also use many of the options available for routes to customize a route matrix. For more details on how to set these options, see the topics linked in the table:
Option | Description |
---|---|
Travel mode | The mode of travel, such as drive, transit, walk, or two-wheeled vehicle. |
Calculate toll fees for a route matrix | Include estimated toll fees for routes in a route matrix. |
Request localized values | You request localized text for your route matrix response in the same way as for a route, using a field mask. |
Available route matrix vehicle types | Additional options for selecting the type of vehicle for the route matrix. |
Additional options | To specify additional options, such as the departure time, see Request body. |