When you are computing a route,
a [custom route](https://developers.google.com/maps/documentation/routes_preferred/custom_routes.md.txt) (deprecated),
or a [route matrix](https://developers.google.com/maps/documentation/routes_preferred/compute_route_matrix.md.txt),
you may want to take into consideration any toll fees on the route.
For select cities, you can compute the estimated
toll fee for a route in the appropriate currency.

> [!NOTE]
> **Note** : The Routes Preferred API calculates tolls on a route differently than Google Maps:
>
> - The Routes Preferred API returns only the toll prices (pass or cash) that would actually be charged for the trip, assuming your request accurately represents what types of passes each driver and/or vehicle has. If you don't specify any toll passes, the API returns the cash prices, which is usually the highest toll.
> - Google Maps typically returns the cheapest possible price for a vehicle. Users cannot specify which toll passes they have; instead, to see cash tolls, users can disable the **See toll pass prices** option, which is enabled by default.

The Routes Preferred API calculates the estimated toll fee,
taking into consideration any toll price discounts or passes available
to the driver or vehicle, and the most convenient payment methods.
If there is no available toll price for a given route,
the Routes Preferred API indicates the existence of a toll
with an unknown fee.

To accurately calculate toll information, make sure you include the following
information in your request:

- The emission type of the vehicle used for the route ([`VehicleEmissionType`](https://developers.google.com/maps/documentation/routes_preferred/reference/rest/Shared.Types/VehicleEmissionType.md.txt)). If no emission type is provided, the toll for a gasoline-fueled vehicle is returned.
- Any toll passes for the driver or vehicle that may apply ([`TollPass`](https://developers.google.com/maps/documentation/routes_preferred/reference/rest/Shared.Types/TollPass.md.txt)). In some regions, a driver or vehicle with a toll pass pays a different toll than those who don't have a pass. For example, if you have a [Good To Go!](https://en.wikipedia.org/wiki/Good_to_Go_(toll_collection_system)) toll pass in Seattle, WA, US, you pay a lower toll than if you don't have a pass. In some regions, such as Indonesia, a toll pass may be required to travel on a road. If you don't specify a toll pass for a route where a pass is required, no price is returned.

Optional toll information is available for the following regions:

| Region Code | Country/Region | State/City/Toll Road |
|---|---|---|
| AR | Argentina | Countrywide |
| AU | Australia | Brisbane |
| AU | Australia | Melbourne |
| AU | Australia | Sydney |
| BR | Brazil | Countrywide |
| ID | Indonesia | Countrywide |
| IN | India | Countrywide |
| JP | Japan | Countrywide |
| MX | Mexico | Countrywide |
| US | United States | Alabama |
| US | United States | Alaska |
| US | United States | California |
| US | United States | Colorado |
| US | United States | Delaware |
| US | United States | Florida |
| US | United States | Illinois |
| US | United States | Iowa |
| US | United States | Indiana |
| US | United States | Kansas |
| US | United States | Louisiana |
| US | United States | Maine |
| US | United States | Maryland |
| US | United States | Massachusetts |
| US | United States | Michigan |
| US | United States | Minnesota |
| US | United States | Missouri |
| US | United States | New Hampshire |
| US | United States | New Jersey |
| US | United States | New York |
| US | United States | North Carolina |
| US | United States | Ohio |
| US | United States | Pennsylvania |
| US | United States | Rhode Island |
| US | United States | South Carolina |
| US | United States | Texas |
| US | United States | Utah |
| US | United States | Virginia |
| US | United States | Washington |
| US | United States | West Virginia |

For examples of calculating toll fees, see:

- [Computing a Route Examples](https://developers.google.com/maps/documentation/routes_preferred/compute_route_examples.md.txt#toll-fee-examples)
- [Computing a Custom Route Examples](https://developers.google.com/maps/documentation/routes_preferred/custom_route_examples.md.txt#toll-fee-examples) (deprecated)
- [Computing a Route Matrix Examples](https://developers.google.com/maps/documentation/routes_preferred/compute_matrix_examples.md.txt#toll-fee-examples)