Loading...

by Saint Sita Ram Innovation Lab Pvt Ltd

Latency --
Success Rate --
Last Updated --

Description

The Fuel-Efficient Route API helps users find the most fuel-efficient driving routes between two locations in India.

It uses the Vehicle Model API (model_id) to analyze vehicle specifications (maker, model, fuel type, cubic capacity) and combines this with fuel prices from the start location’s state.

🚗 Suggests multiple alternative routes

⛽ Calculates trip fuel cost for each route

💰 Estimates toll charges

🛤️ Provides waypoints + polyline for map plotting

⏱️ Shares distance, travel time, and traffic-adjusted duration

👉 This allows users to compare different routes not only by distance or time, but also by fuel cost savings.

API Details

API Version

1.0.0

This is the current version of the API available for use.

ssrapi/efficient-route/

POST fuelabc_data/efficient-route

No description provided.

Parameters

ParameterTypeDescriptionExample
vehicle_model_id* Number (Integer) any vehicle model's id available in database e.g 1 , 8 1
end_location* Text (String) Enter the destination location latitude and longitude 26.9124, 75.7873
start_location* Text (String) Enter the start location latitude and longitude 28.7041, 77.1025

Example Request

{

"start_location":"Delhi",
"end_location":"jaipur",
"vehicle_model_id":"8"

}

Example Response

{
  "start_location": "Delhi",
  "destination": "Jaipur",
  "user_state": "Delhi",
  "routes": [
    {
      "route": "R1",
      "bounds": {
        "northeast": {
          "latitude": 28.7041343,
          "longitude": 77.1024072
        },
        "southwest": {
          "latitude": 26.8892588,
          "longitude": 75.72869299999999
        }
      },
      "distance": "275.4 km",
      "duration": "5 hr 54 min",
      "duration_in_traffic": "5 hr 54 min",
      "distance_value": 275411,
      "duration_value": 21262,
      "duration_in_traffic_value": 21262,
      "trip_cost": {
        "trip_cost": 1305,
        "trip_summary": "Rs 1305\n275 Km \n5 hr 54 min"
      },
      "toll_cost": {
        "estimated_price": 440,
        "currency": "INR"
      },
      "waypoints": [
        {"lat": 28.70409, "long": 77.10241},
        {"lat": 28.64187, "long": 77.08295},
        {"lat": 28.60242, "long": 77.07052},
        {"lat": 28.52056, "long": 77.02521},
        {"lat": 28.45665, "long": 76.96441},
        {"lat": 28.40497, "long": 76.98989},
        {"lat": 28.337, "long": 76.9235},
        {"lat": 28.2619, "long": 76.82891},
        {"lat": 28.18005, "long": 76.71352},
        {"lat": 28.07526, "long": 76.56277},
        {"lat": 27.97242, "long": 76.38982},
        {"lat": 27.84595, "long": 76.25895},
        {"lat": 27.69586, "long": 76.18861},
        {"lat": 27.58383, "long": 76.07577},
        {"lat": 27.45629, "long": 76.0335},
        {"lat": 27.3827, "long": 75.96354},
        {"lat": 27.285, "long": 75.95799},
        {"lat": 27.20545, "long": 75.90413},
        {"lat": 27.07416, "long": 75.83294},
        {"lat": 26.95619, "long": 75.7333},
        {"lat": 26.91242, "long": 75.78728}
      ],
      "polylinePoints": [
        // [Complete polyline points array as in original file]
      ],
      "routeLabels": ["DEFAULT_ROUTE_ALTERNATE"]
    },
    {
      "route": "R2",
      "bounds": {
        "northeast": {
          "latitude": 28.7041343,
          "longitude": 77.168412
        },
        "southwest": {
          "latitude": 26.876359,
          "longitude": 75.7872476
        }
      },
      "distance": "310.0 km",
      "duration": "5 hr 19 min",
      "duration_in_traffic": "5 hr 19 min",
      "distance_value": 310042,
      "duration_value": 19151,
      "duration_in_traffic_value": 19151,
      "trip_cost": {
        "trip_cost": 1469,
        "trip_summary": "Rs 1469\n310 Km \n5 hr 19 min"
      },
      "toll_cost": {
        "estimated_price": 0,
        "currency": "INR"
      },
      "waypoints": [
        // [Complete waypoints array as in original file]
      ],
      "polylinePoints": [
        // [Complete polyline points array as in original file]
      ],
      "routeLabels": ["DEFAULT_ROUTE_ALTERNATE"]
    },
    {
      "route": "R3",
      "bounds": {
        "northeast": {
          "latitude": 28.7512124,
          "longitude": 77.1519507
        },
        "southwest": {
          "latitude": 26.876359,
          "longitude": 75.7872476
        }
      },
      "distance": "325.9 km",
      "duration": "5 hr 11 min",
      "duration_in_traffic": "5 hr 11 min",
      "distance_value": 325868,
      "duration_value": 18680,
      "duration_in_traffic_value": 18680,
      "trip_cost": {
        "trip_cost": 1544,
        "trip_summary": "Rs 1544\n326 Km \n5 hr 11 min"
      },
      "toll_cost": {
        "estimated_price": 0,
        "currency": "INR"
      },
      "waypoints": [
        // [Complete waypoints array as in original file]
      ],
      "polylinePoints": [
        // [Complete polyline points array as in original file]
      ],
      "routeLabels": ["DEFAULT_ROUTE_ALTERNATE"]
    }
  ]
}

Support

For any questions or issues, please contact our support team at info@ssrinnovationlab.com