On Demand Fuel Delivery Planning

Product Used: Navigation API

Background

Consider a fuel distributor operating from a single depot located near the city center, responsible for supplying fuel to several gas stations spread across the metropolitan area. Throughout the day, gas stations across the city place fuel orders to replenish their reserves. The routing system must plan traffic-aware, efficient routes that allow trucks to deliver fuel to multiple stations and generate accurate turn-by-turn instructions for drivers to navigate to the individual gas stations.

Problem Statements

Avoid congested areas

Given that routes are planned dynamically, it is essential to identify routes that avoid congested areas at the time of travel to ensure operationally efficient routes and facilitate the timely delivery of fuel to individual gas stations.

Determine safe routes

To ensure both regulatory compliance and the safety of the cargo, it is crucial that fuel-carrying tanker trucks utilize safe and regulated routes when transporting fuel across residential areas, central city hubs, and business centers.

Precise navigation instructions for drivers

Accurate turn-by-turn navigation instructions for fuel truck drivers are needed to navigate on the safe, traffic-aware routes to avoid costly and time-consuming problems like getting lost, taking inefficient routes, or encountering restricted roads. This ensures they can make timely deliveries, prevent deviations and re-routing, and minimize fuel wastage.

Solution

NextBillion.ai's Navigation API allows dispatchers to take into account the real-time traffic conditions, fuel transport regulations through simple configurations to generate routes and navigation instructions easily.

Traffic-aware, safe routes

Navigation API accounts for the real-time traffic conditions for the given travel mode and location, by default. Additionally, to get the routes safe for transporting fuel the dispatcher can configure the right hazmat classification using the hazmat_type setting:

1
"hazmat_type": "flammable_liquid"

Accurate Navigation Instructions for Drivers

The Navigation service can deliver turn-by-turn instructions in multiple languages so that the drivers can choose instructions in their native language. The required setting can be achieved in the following manner:

1
"lang": "en"

Sample Request and Response

Following is a JSON request that we built for this case and the corresponding response.

API Request

1
curl --location 'https://api.nextbillion.io/navigation/json?key=<your_api_key>&origin=34.07756796,-118.30833302&waypoints=34.06189271,-118.29211304|34.04522899,-118.24972483|34.02210937,-118.25242816&destination=33.98922920,-118.25736317&mode=truck&hazmat_type=flammable_liquid&option=flexible'

API Response

1
{
2
"status": "Ok",
3
"routes": '{...}'
4
}