Traffic-Aware Directions API With Speed and Distance Optimization

Generate the quickest and shortest routes for a wide range of vehicle profiles. Account for factors such as traffic, distance, and mode of transportation. Easily integrate and customize.

Trusted by
Logo wrap

Key Benefits

Truck Attributes

Optimal routes and ETAs

Truck Attributes

Multiple driving modes

Truck Attributes

Advanced trip planning

Truck Attributes

Customized truck routes

Truck Attributes

Adaptable route types

Flexible API With Plug-and-Play Convenience To Meet Unique Business Needs

Find the most optimal routes and ETAs

Too wide a gap between actual arrival times and estimated numbers? Get reliable and accurate ETAs with NextBillion.ai Directions API. Leverage multiple data sources, including historical and real-time traffic data, to generate optimized routes. Set custom parameters such as waypoints, route avoidance, alternative routes and driving mode.

Public Transportation
Public Transportation

Generate vehicle-specific custom routes

Break away from the ‘one map fits all’ approach. Get tailored guidance for all modes of transportation, including cars, trucks, motorbikes, and pedestrians. Access precise turn-by-turn directions for advanced route planning, optimization, and analysis.

Plan ahead with time-dependent routing

Want to plan routes in advance for time-sensitive orders and service requests? Optimize dispatch with our departure time-based directions that factor in traffic conditions at the future departure time. Improve resource utilization, on-time delivery, and reduce operating costs.

Public Transportation
Public Transportation

Get custom and flexible directions based on vehicle size and weight

Don't let size and weight road restrictions and limitations hinder your fleet's movement. Define the dimensions and weight of your vehicle fleet to get optimized routes that avoid restrictions and detours. Reduce the risk of accidents, save time and costs, and ensure timely delivery.

Identify the shortest and fastest routes

With our Directions API, prioritize cost savings or speed based on your business needs. Optimize routes for the shortest distance to reduce fuel costs and emissions while saving time, or find the fastest routes that avoid toll roads or highways with heavy traffic.

Public Transportation

What Makes NextBillion.ai Different?

NextBillion.ai Competitors
Custom vehicle-specific ETAs and routes Calculates ETAs and optimizes routes based on your fleet composition — trucks, cars, motorbikes, etc. Limited support for custom vehicles
Performance 2X-3X lower latency & 10X higher throughput Standard performance
Pricing Flexible, customized pricing for every business model Fixed, inflexible pricing
Proprietary data integration Incorporates all your historical data and business-specific data insights via advanced ML algorithms Limited provision to incorporate business-specific data insights
Customer support Proactive and dedicated support deck for integration, testing and troubleshooting Limited or no support

Flexible Pricing Models

Choose a pricing option that’s right for your business needs

Pay as you go

Pricing based on volume of API calls or users

Subscription

Flat subscription fee with unlimited API calls for on-premise deployment

Customized

Tailored pricing to meet specific business needs

Super Simple Integration

Directions API request

Parameters

Name Required Type Description
origins ✅ String Origin is the starting point of a route. Ensure that the origin is a location on your map of interest and for which your API key is authorized.
destinations ✅ String Destination is the ending coordinates of a route. Ensure that the destination is a location on your map of interest and for which your API key is authorized.
mowaypointsde String Waypoints are coordinates along the route between the Origin and the Destination. Waypoints are represented as a pipe(|) separated list of coordinate pairs.
Default maximum limit is 50 for GET request
steps Boolean The steps flag determines whether to return the individual maneuver instructions that comprise the route in the response. Default is false.

API request example

 
https://api.nextbillion.io/directions/json?origin=12.98740754,77.58327035&destination=12.95545688,77.61554269&session=R5mvdi&alternatives=false&altcount=1&annotations=false&approaches=unrestricted;unrestricted&avoid=toll&mode=4w&waypoints=12.973691,77.58824853&departure_time=1649144593&key=

API response example

 
{
  "status": "Ok",
  "mode": "4w",
  "routes": [
    {
      "geometry": "mognA{}oxMMjAMr@CLFBXFVJb@PZJ@@`Ad@`Ah@NHXNt@h@t@s@^]^]Tm@Xm@\\s@J]@K@S@K@O@KDYBKFWH]La@BOPg@DMJ]F]@Q@iAD}@?_@AMAWO}@Mq@Kg@Q{@EUG[G[Ia@Ou@?AKe@G]EUDMCKAK@ILFh@Xf@VlBz@dAf@D@d@Tp@Z^PhAj@ZPf@VHDDBTL`@Pb@T^NTLNHd@Tx@`@h@VPHnAt@LHl@X@@dAh@d@TVLFCFCfChAdAeBr@iA~ByDPWZg@PYRYJKJMFIFI?CAG@GDOBEDEHEL?JBDBFH@M?]HUPUp@gATg@JYHa@??Dk@DaA?ADwAD{BAOCIEEQJa@La@Ba@A_@KSMGEWYM_@Ga@?a@FW@IP]HKPOZQBMDIDIHIr@qAb@_AXu@L[DOBQ@I@MBABCh@UjAMtB[r@MtCYNCPENEVGVGDEBG?GDSFURs@HWp@wBBIPi@Ro@Tq@J[Pq@DO@C?M@_@?K?q@Ag@?IAi@?KDK?O?G?KBY?G^cCDWDUBO?AJe@Ha@FWDSH[DSHe@Py@\\eB~ATH@d@Hb@FH@H@ZF\\D`ANTD\\Fb@FH@JANGNKCKOWe@{@Ye@CGEIKQMU]k@OW?AQWOQIK}@iASYfCw@f@OXKpDeAr@Ud@M`@Mp@SPGf@Of@Of@OJCPGPGBN@TxBDjAB?a@A{AAcA?A@c@@u@@W?Y@I@IDMFMBEDIBGBKF[@KJcAHq@BS@IO?EQAG?EQ{AKcAQ_Bu@yHAA?EEOEOXSTQNINKdAo@VQLKb@[HGl@c@dAu@LOtAiAh@_@VQxAgAVMFGNELBFCFAF?F?V@Z@^BxDRF?F@b@@bCPnAHB?nAH@OD_AFw@F}@Dy@Dw@JoBBYC?CACCAE?C@A@EBABAB?@I?CFaADk@Do@H@t@BP@d@@~@B@K?A?K@A@O@W@Q@O?ADe@N?n@Dv@DB?J?`@BL?d@BVBGhA?BtAB",
      "distance": 7680.200000000001,
      "duration": 1632.6999999999998,
      "legs": [
        {
          "distance": {
            "value": 2510
          },
          "duration": {
            "value": 533
          },
          "steps": []
        },
        {
          "distance": {
            "value": 5169
          },
          "duration": {
            "value": 1098
          },
          "steps": []
        }
      ]
    }
  ]
}
READ THE API DOCS

Our Customers Love Us

Awards and Honors

The quality and impact of our solutions are exemplified by the user awards we’ve won.

Awards

Find the best traffic-aware route, be it the fastest or most cost-efficient, with NextBillion.ai’s Directions API.