Download OpenAPI specification:Download
You can download the TollGuru API spec using the download link above and import collections in Postman for testing. Here is how to import collections in Postman
Use TollGuru Toll API service to
With the Toll API you can calculate tolls, fuel costs and optimal routes for:
Pre-trip planning
Post-trip toll cost reconciliation
TollGuru API is designed to show you cheaper routes not shown by other mapping services such as Google maps, Apple maps, Waze, HERE, Mapquest, OpenStreetMap, Scout GPS, Trimble Maps, etc. You will see the cheapest, the fastest and the compromise routes since we return routes optimized for two vectors - time and cost. Other mapping and navigation softwares optimize for time. TollGuru is built for real America where both costs and times factor in route decisions. Still not convinced, let us take an example:
Say you want to dispatch a 5-axle semi from Englewood, NJ to Scarsdale, NY in upstate New York. Open any online map and you will see three routes. Most likely all the routes will use George Washington Bridge (GWB) ($90 one-way toll with E-ZPass NY).
In contrast, TollGuru would show the cheapest route over Tappan Zee/ Cuomo Bridge, the fastest route over GWB and then some other logical routes. If you drive on the cheapest route over Tappan Zee, it will take you about 16 minutes more than driving over GWB. But you can save $69 if you pay with NY E-ZPass. That’s a saving of $69 in an hour-long trip! Pretty sweet savings if you ask us.
Here are how some of the companies use TollGuru Toll API
Sign up for a free API key using your email and password or Google account. We suggest using Postman to test API before you integrate Toll API into your products. TollGuru Toll API is a REST API with predictable resource-oriented URLs. It uses standard HTTP response codes and authentication to accept form-encoded request bodies and return JSON-encoded response.
Download the TollGuru API spec using the download link above and import collections in Postman for testing. Here is how to import collections in Postman
Copy any individual API code snippet of 'Shell+Curl' type and use import option on Postman for testing a specific API.
Make sure you have cUrl install on your system by running 'curl' command your terminal.
Copy the 'Shell+Curl' command and replace placeholder with your API key in the command text.
Run the command on your terminal to get the results.
You can use client libraries in Java, Python, Go, Node.js, PHP, Ruby, .NET to quickly integrate Toll API.
Use this service to calculate toll and fuel cost for your origin, destination, and waypoints, if any. With this API endpoint, you can
If you are looking for toll information for routes that consider bridge height restrictions, axle count, weight restrictions, HAZMAT restrictions, we suggest that you use HERE maps (we use HERE maps by default). Specifically, with the HERE maps API service, you can
required | Address (object) or Place-Id (object) or Geo-Cordinates (object) |
required | Address (object) or Place-Id (object) or Geo-Cordinates (object) |
Array of Address (object) or Place-Id (object) or Geo-Cordinates (object) (Location) Specify a range of intermediary locations, along your route between your origin and destination points | |
vehicleType | string Default: "2AxlesAuto" Enum: "2AxlesAuto" "3AxlesAuto" "4AxlesAuto" "2AxlesDualTire" "3AxlesDualTire" "4AxlesDualTire" "2AxlesTruck" "3AxlesTruck" "4AxlesTruck" "5AxlesTruck" "6AxlesTruck" "7AxlesTruck" "8AxlesTruck" "9AxlesTruck" "2AxlesBus" "3AxlesBus" "2AxlesMotorcycle" "3AxlesMotorcycle" "2AxlesRv" "3AxlesRv" "4AxlesRv" For more information on vehicle types read here |
DateTime (string) or Timestamp (number) Default: "current time" | |
fuelPrice | number Default: 3 Specify numeric value up to two decimal places |
fuelPriceCurrency | string Default: "USD" Enum: "USD" "CAD" "MXN" "INR" |
object If you want an accurate estimate of fuel expenses, you will need to specify parameters specific to fuel price and fuel efficiency as fuelEfficiency object. | |
object Truck routing only | |
object Specify Driver wage or Value of Time. For example, if you are willing to spend $2.00 to save 15 minutes for a particular trip, your value of time is $2.00* (60/15) = $8.00 per hour | |
state_mileage | boolean Specify state mileage as boolean value |
object |
{- "from": {
- "address": "Main str, Dallas, TX"
}, - "to": {
- "address": "Addison, TX"
}, - "waypoints": [
- {
- "address": "Plano, TX"
}, - {
- "address": "Allen, TX"
}
], - "vehicleType": "2AxlesAuto",
- "departure_time": 1551541566,
- "fuelPrice": 2.79,
- "fuelPriceCurrency": "USD",
- "fuelEfficiency": {
- "city": 24,
- "hwy": 30,
- "units": "mpg"
}, - "truck": {
- "limitedWeight": 44000
}, - "driver": {
- "wage": 30,
- "rounding": 15,
- "valueOfTime": 0
}, - "state_mileage": true,
- "hos": {
- "rule": 60,
- "dutyHoursBeforeEndOfWorkDay": 11,
- "dutyHoursBeforeRestBreak": 7,
- "drivingHoursBeforeEndOfWorkDay": 11,
- "timeRemaining": 60
}
}
{- "status": "OK",
- "summary": {
- "route": [
- {
- "location": {
- "lat": 32.78165,
- "lng": -96.79448
}, - "address": "Main St, Dallas, TX 75201, United States"
}, - {
- "location": {
- "lat": 33.02079,
- "lng": -96.69925
}, - "address": "Plano, TX, United States"
}, - {
- "location": {
- "lat": 33.10144,
- "lng": -96.67449
}, - "address": "Allen, TX, United States"
}, - {
- "location": {
- "lat": 32.95398,
- "lng": -96.81769
}, - "address": "Addison, TX, United States"
}
], - "rates": {
- "USD": 1,
- "CAD": 1.342395,
- "MXN": 21.748097,
- "INR": 75.49545
}, - "departure_time": 1551541566,
- "fuelPrice": "{\"value\":2.79,\"currency\":\"USD\"}",
- "fuelEfficiency": {
- "city": 24,
- "hwy": 30,
- "units": "mpg"
}, - "vehicleType": "2AxlesAuto",
- "share": { }
}, - "routes": [
- {
- "summary": {
- "hasTolls": true,
- "diffs": "{\"cheapest\":\"2.63,\",\"fastest\":0}",
- "duration"