routing api · early access
Routing API for Indian roads
Car, two-wheeler and walking routes for Delhi NCR and Bengaluru, with toll costs in rupees and road restrictions built in.
Built for how India drives
Two-wheeler routes
Keeps off roads and corridors closed to bikes.
Tolls in rupees
NHAI fees for every plaza on the route.
Road restrictions
Follows traffic police orders by vehicle and hour.
Time of day
Peak, night or free-flow ETAs. Not live traffic.
A DigiPin in, a route out
Send coordinates or a DigiPin. One key covers routing, maps and search.
curl -X POST https://api.quantaroute.com/v1/routing/route \
-H "x-api-key: YOUR_API_KEY" -H "Content-Type: application/json" \
-d '{"origin": {"lat": 12.9716, "lng": 77.5946},
"destination": {"digipin": "4P3-JM8-KL73"},
"profile": "motorcycle"}'Early access: what to know
- Delhi NCR and Bengaluru only; more cities follow.
- Typical traffic by time of day, not live traffic.
- Toll fees are NHAI's; state-road plazas are listed without a fee. Details in tolls and restrictions.
Routing API FAQ
Which cities does the QuantaRoute routing API cover?
Delhi NCR and Bengaluru today, in early access. A point outside the covered area returns 404 no_road_nearby. GET /v1/routing/status returns the bounding box and profiles the engine has loaded, and more Indian cities follow.
Does it route two-wheelers?
Yes. The motorcycle profile follows two-wheeler access on Indian roads: it keeps off roads tagged closed to motorcycles and off corridors closed to two-wheelers by government orders, such as the Bengaluru Traffic Police order on elevated corridors. Two-wheelers pay no fee at national-highway toll plazas, and the toll cost reflects that.
How is the toll cost in INR calculated?
Each route adds the single-journey fee of every toll plaza it drives through, for the vehicle class of the profile. Fees come from NHAI rate cards (RajMargyatra), refreshed weekly and daily around the 1 April revision. Plazas NHAI does not list come from the NETC FASTag plaza list without fees, so a route through one is marked complete: false.
Does the routing API use live traffic?
No. Durations use typical traffic for the time of travel: peak hours (Monday to Saturday, 08:30-11:30 and 17:30-21:00), night (23:00-06:00) or free flow, plus turn delays and, by car, traffic-signal waits. Set depart_at on a route to choose the time; the response says which period it used.
Can I send a DigiPin instead of coordinates?
Yes. Every point accepts {"lat", "lng"} or {"digipin": "4PJ-768-83L9"}. The DigiPin is decoded on the server with India Post's published algorithm to the centre of its 4 m square, so an address captured at checkout can be routed directly.
How is routing usage counted?
A route, isochrone, trip, nearest, map-matching, toll-plazas, restrictions or warnings call is 1 request. A matrix is 1 request per 4 origin-destination pairs, rounded up. Routing shares the account quota with geocoding, and each response carries the count in the x-quantaroute-units header.
Route your first trip
Tick Routing when you create the key. See pricing.
Road data © OpenStreetMap contributors (ODbL). Toll rates: NHAI, under the Government Open Data License - India.