Tech and product leaders in fast-growing logistics and transportation use NextBillion.ai Distance Matrix API.
Protect your margins from the insane cost
of making 1000000s of API calls.
And break out of the 25x25 matrix limit that forces you to estimate transit time and distance in several small batches.
Compute large matrices in secs.
Stop dividing a large set of locations into multiple small requests that take too long to process.
Pay for your fleet size or volume of orders.
Say no to ‘per API call’ pricing that raises your cost exponentially and eats into your profits.
Get ETAs and miles for your route restrictions.
Calculate realistic transit durations and mileage for your unique fleet and regulatory requirements.
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 QuoteProcess 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 DemoGet 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 DocsAvoid 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 ExampleGet regulation-aware estimates with route restrictions
Add special route restrictions and road edits to the map to calculate realistic ETAs and distances.
Learn moreGet 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.
Last mile delivery
Get door-to-door time and distance estimates to allocate processed orders to the nearest delivery or service agents.
On-demand services
Get instant time and distance estimates to assign field service requests or repair jobs to the nearest available rep.
Building route optimization
Trying to build your route optimization logic in-house? Power it with a high-performance yet cost-effective distance matrix API.
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.
CASE STUDY
Learn how transportation and logistics businesses improve operational KPIs with NextBillion.ai
Switch to NextBillion.ai Distance Matrix API within a week.
- 1
- 2
- 3
Get the trial
API key
Book a trial onboarding call and get the trial API key.
Test it with your
tech and data
Connect API with your tech stack and run it with your sample data.
Push it to
production
Replace your current distance matrix API with NextBillion.ai.
Logistics product managers and developers
love NextBillion.ai APIs & SDKs
Explore more location intelligence APIs & SDKs
to automate your operations.
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 |
- 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.