What is the default fuel price provided in the API response, and how can we integrate diesel prices?

Our API provides gas/petrol rates by default for fuel cost calculations. Currently, we do not have an option in the request parameters to differentiate between fuel types. Only in the case of EVs do we provide the electricity costs. However, you have the flexibility to update the fuel cost manually in the request parameter 'fuelCost' within 'fuelOptions', allowing you to set pricing according to your specific needs. Below is a code snippet demonstrating how to do this:

{
"fuelOptions": {
    "fuelCost": {
        "value": 1.305,
        "units": "USD/gallon",
        "currency": "USD",
        "fuelUnit": "gallon"
    },
 },
}

Looking to optimize trip tolls and calculate toll bills for your fleet? Integrate Toll API for pre-trip, on-trip, and post-trip toll and other route cost information.

cta_desktop-min

Ready to integrate Toll Intelligence?

Get started with TollGuru Toll API or Cloud Services