DISTANCE MATRIX API FOR LOGISTICS TECHNOLOGY

Get accurate transit ETAs and distances
from all origins to destinations without
high cost or latency.

  • Improve profit margins
  • Fulfill orders quickly
  • Cut transport costs
  • bryan
  • Request a live demo
    (and get the trial API key)
  • bryan
generate-optimal-routes generate-optimal-routes
James

James Nebeker,

Machine Learning Engineer, TruckIT

"NextBillion.ai solves the problem of providing a high-performance mapping platform at scale. We use them to generate large distance matrices that we use to solve unique geospatial routing problems that arise in the short-haul trucking industry."

James

Carson Stevens,

Data Engineer, Hawx Pest Control

"By substantially reducing the number of developer hours spent on scheduling, NextBillion.ai’s Route Optimization API and large Distance Matrix API have helped us improve our operational efficiency and increase our cost savings significantly!"

James

Yantisa Akhadi,

Strategy and Partnership Manager, Gojek

"I admire NextBillion.ai’s fast response and friendly manners whenever we need professional support in geospatial data processing. They have delivered a valuable service and support to our company that we appreciate."

Calculate accurate transit times and distances between thousands of origins and destinations…

…while also saving thousands of dollars every month.

Save operational costs with per-vehicle or per-order pricing

Keep costs from rising steeply as your order volume and API calls multiply in the coming months.

Request a Quote
generate-optimal-routes
generate-optimal-routes

Process high order volumes with 5000x5000 matrix size

Add thousands of origin and destination points within a single API request to estimate transit durations and distances.

Request a Demo

Get transit estimates faster with pre-processed map data

Calculate distances and ETAs between thousands of locations in just a few seconds, with pre-processed maps.

Read API Docs
generate-optimal-routes
generate-optimal-routes

Avoid on-road surprises with truck miles and ETAs

Get truck-specific mileage and transit time by specifying the mode of transport and vehicle dimensions.

Read Truck Routing Example

Get regulation-aware estimates with route restrictions

Add special route restrictions and road edits to the map to calculate realistic ETAs and distances.

Learn more
generate-optimal-routes

Get reliable transit time and distance estimates for your logistics niche and technology.

Urban mobility

Get traffic-aware ETAs for ride-hailing or ride-sharing to set accurate expectations for drivers and passengers.

Logo wrap Logo wrap Logo wrap Logo wrap
Learn more

Last mile delivery

Get door-to-door time and distance estimates to allocate processed orders to the nearest delivery or service agents.

Logo wrap Logo wrap Logo wrap Logo wrap
Learn more

On-demand services

Get instant time and distance estimates to assign field service requests or repair jobs to the nearest available rep.

Logo wrap Logo wrap Logo wrap Logo wrap
Learn more

Building route optimization

Trying to build your route optimization logic in-house? Power it with a high-performance yet cost-effective distance matrix API.

Logo wrap Logo wrap Logo wrap Logo wrap
Learn more
generate-optimal-routes
efficiently-manage-fleets
mobilize-your-workforce
reduce-wait-time
FOR LOGISTICS TECHNOLOGY PROVIDERS

Connect NextBillion.ai Distance Matrix with your TMS or logistics SaaS solution.

Get fast and accurate time and mileage calculations for ground transportation while paying less for API calls.

Logo wrap
Logo wrap
Logo wrap
CASE STUDY

Learn how transportation and logistics businesses improve operational KPIs with NextBillion.ai.

View more case studies
Field Services

EasyHealth Improved Scheduling Efficiency and Saved 62.5% with NextBillion.ai

Read more

Trucking

Truck Logistics Solution Provider Achieves Sustainable Growth and Slashes Costs by 30%

Read more

Switch to NextBillion.ai Distance Matrix API within a week.

  • 1
  • 2
  • 3
tick

Get the trial
API key

Book a trial onboarding call and get the trial API key.

tick

Test it with your
tech and data

Connect API with your tech stack and run it with your sample data.

tick

Push it to
production

Replace your current distance matrix API with NextBillion.ai.

Logistics product managers and developers
love NextBillion.ai APIs & SDKs.

G2 Badge G2 Badge G2 Badge G2 Badge G2 Badge
G2 Badge G2 Badge G2 Badge G2 Badge

Frequently asked questions

Features

Distance Matrix is a two-dimensional array or square matrix representing distances between a set of locations. Each row and column in the matrix represents a location, and the cells store the distances or travel times between each pair of locations. This matrix gives a complete picture of the distances or travel times between all possible combinations of locations in a given area.

Distance matrices are widely used in logistics, transportation planning, and route optimization applications to determine the most efficient routes between multiple locations. They provide critical input data for algorithms and software systems that optimize vehicle routes, delivery services, and other transportation-related activities.

The following table represents a sample Distance Matrix.

A B C
A 0 5 6
B 7 0 9
C 4 8 0
In this matrix:
  • The distance from A to A is 0, from A to B is 5, and from A to C is 6.
  • The distance from B to A is the same as from A to B (5); from B to B, it is 0, and from B to C, it is 9.
  • The distance from C to A is 4, from C to B is 8, and from C to C is 0.

Distance Matrix API service calculates distances and estimated time of arrival between the origin and destination pair for one-to-many and many-to-many scenarios.

Distance Matrix API is available in two versions – Fast and Flexible.

  • Distance Matrix Fast API version returns distances and ETAs in real-time considering the usual traffic conditions at the time.
  • Distance Matrix Flexible API version returns distances and ETAs based on additional parameters such as truck-specific routes, specific departure times, and a preference for the fastest or shortest route type.

We use Open Street Maps and TomTom which allows us to tailor and control the quality of routes much better. That said, these maps are not hardcoded into our route solver. We swap in new map data depending on what works best for a given territory or routing problem.

Yes, on accuracy, NextBillion.ai Distance Matrix is comparable to Google’s solution. We recommend you book a trial onboarding call and get a trial API key to compare the results.

NextBillion.ai Distance Matrix API supports all countries and regions across the globe. We even swap in new map data depending on what works best for a given territory or distance matrix problem.

NextBillion.ai Distance Matrix returns transit durations in minutes and distances in meters.

Yes, like every other distance matrix solution, NextBillion.ai takes into account real-time traffic data to calculate time and distance matrices.

Yes, NextBillion.ai Distance Matrix API lets you specify “truck” as your mode of transport and define “vehicle dimensions” to calculate transit time and mileage for routes that comply with trucking regulations.

Yes, NextBillion.ai Distance Matrix API allows you to enter via points in your request and take them into account when calculating distances or ETAs.

Yes, NextBillion.ai Distance Matrix supports map edits so you calculate ETAs that take into account road closures, turn restrictions, construction zones, or other rules unique to your feel and routing needs.

Directions API gives transit distance, ETA, route polyline, and turn-by-turn directions from one origin point to one destination point. Whereas Distance Matrix API gives transit distances and ETAs from multiple origin points to multiple destination points (but not route polyline or turn-by-turn directions). You may combine Directions API and Distance Matrix depending on your needs.

Pricing

Besides the number of total API calls you make, we offer you the alternative of paying for the volume of orders you generate or the number of vehicles you work with. Learn more about our pricing. Or simply talk to our sales team.

No, we do not charge anything for support or professional services.

Yes, with NextBillion.ai, you can enable alerts when you reach 50%, 75%, and 90% of your allocated API usage.

NextBillion.ai enters into annual contracts, with complete flexibility for modifying allocated API usage. We recommend you book a trial onboarding call to learn more.

Speed, scalability, and security

You can expect a response for many thousands of elements in about 100 seconds. (the number of origins times the number of destinations equals the number of elements).

NextBillion.ai supports up to 5,000 origin points and 5,000 destination points in a single distance matrix request.

We offer an on-contract guarantee of 99.9% uptime.

We are Certifications - SOC2 and ISO/IEC 27001:2013 certified.

NextBillion.ai Distance Matrix is a cloud-based solution, regionally deployed and hosted in North America, Oregon(United States), Belgium and Singapore..

Testing and deployment support

Yes, we offer a trial API key for a week or two so you can test it with your data and applications. This helps you check the accuracy of transit time and distance estimates our matrix solver generates. Plus, you can compare the results with your current Distance Matrix solution. It also helps you evaluate the speed and the scalability of our solution.

You can find comprehensive documentation on our Distance Matrix API on our website.

Yes, we recommend you book a trial onboarding call for that.

It takes less than a week to play around with the API in the testing environment and then push it to production. For advanced requirements, you can always take the help of our support team.

Yes, we have a support team and location intelligence consultants to help you integrate and implement the Distance Matrix API effectively.

Yes, NextBillion.ai offers on-premise deployment and works hands-on with your engineering and operations teams to implement and integrate it with your existing systems and workflows.

Business continuity

NextBillion.ai works with over 100 large enterprises as well as fast-growing startups in specialty logistics. Catch a few case studies here.

NextBillion.ai was founded in 2020 by veterans in location intelligence space and we recently closed our series B funding. Besides, we are tied into contracts with big enterprises, so we are here to stay. We also provide a business continuity statement.

Test NextBillion.ai Distance Matrix API for your sample set of origins and destinations.