Solutions
Developer guides
Pricing
Sign in
Get a free trial
Products
Solutions
Cases
Developer guides
Pricing
Contact us
Contact us
The Distance Matrix API
The Distance Matrix API
The Geocoding API
The Geocoding API
The Asynchronous Distance Matrix API (Beta)
The Asynchronous Distance Matrix API (Beta)
Taxi services
Food delivery
Taxi services
Courier services
Logistics & Transportation
Courier services
Logistics & Transportation
Food delivery app from Poland
Restaurant chain from Ukraine
Food delivery app from Poland
Restaurant chain from Ukraine
Drivers app from Syria
Drivers app from Syria
Distance Matrix API guide
Geocoding API guide
Distance Matrix API guide
Geocoding API guide
Easy migration
Easy migration
DM API application guide
DM API application guide
Distance Matrix pricing
Asynchronous DM pricing
Distance Matrix pricing
Asynchronous DM pricing
Geocoding pricing
Geocoding pricing

What type of Distance Matrix API do I need?

You can choose the API for calculating distances that's most profitable for you

We provide four Distance Matrix products that differ in the number of elements in the request, real-time traffic consideration, speed of work, usages, and price.
Distance Matrix APIs with a synchronous request
Our Distance Matrix products
Using synchronous request enables calculations at the highest speed for matrices with up to 500 elements. These are the most popular solutions for the taxi, courier, food delivery, and other industries where fast data processing is critical.
The Real-time Distance Matrix API with traffic conditions
All driving modes and forecasting are available. You can get the API response less than in a second. However, the request size is limited to 100 elements. Learn more
The Real-time Distance Matrix API without traffic conditions
The response time is 10 times or more faster because real-time traffic is not factored in. For this product, the request size is up to 500 elements.
Distance Matrix APIs with an asynchronous request
An asynchronous request is for processing large and complex routing requests. These solutions are popular in logistics, transportation, and other industries where the number of origins and destinations are calculated in thousands and millions.
The Asynchronous Distance Matrix API without traffic conditions
This offers an unlimited number of elements per request and the lowest price, especially for calculating large requests. But response times depend on the size of the request (up to 300 elements per second). Learn more
The Asynchronous Distance Matrix API with traffic conditions
There's no limit on the number of elements per request, but daily usage is limited to 80,000 elements.
Here's a comparison table of all Distance Matrix APIs:
Product
Number of elements in the request
Time of calculation, elements per second
Real-time traffic consideration
Pricing plan, depending on volume usage
The Real-time Distance Matrix API without traffic conditions
The Asynchronous Distance Matrix API with traffic conditions
up to 100 EPR
up to 500 EPR
unlimited
unlimited, but daily use up to 80,000 elements
up to 50 EPS
up to 300-500 EPS
up to 300 EPS
up to 5 EPS
from $1,25 per 1,000 elements
Learn more
from $0,3 per 1,000 elements
Contact us
from $0,35 per 1,000 elements
Learn more
from $1,25 per 1,000 elements
Contact us
Here's a comparison table of all Distance Matrix APIs:
Product
Number of elements in
the request
Time of calculation,
EPS
Real-time traffic consideration
Pricing plan, depending on volume usage
The Real-time Distance Matrix API without traffic conditions
The Asynchronous Distance Matrix API with traffic conditions
up to 100 EPR
up to 500 EPR
unlimited
unlimited, but daily use up to 80,000 elements
up to 50 EPS
up to 300-500 EPS
up to 300 EPS
up to 5 EPS
from $1,25 per 1,000 elements Learn more
from $0,3 per 1,000 elements Contact us
from $0,35 per 1,000 elements Learn more
from $1,25 per 1,000 elements Contact us
Here's a comparison table of all Distance Matrix APIs:
Number of elements
Time of calculation
Real-time traffic consideration
Pricing plan
Product
Number of elements in the request
The Real-time Distance Matrix API without traffic conditions
The Asynchronous Distance Matrix API with traffic conditions
up to 100 EPR
up to 500 EPR
unlimited
unlimited, but daily use up to 80,000 elements
Product
Number of elements in the request
The Real-time DM API without traffic conditions
The Asynchronous DM API with traffic conditions
up to 100 EPR
up to 500 EPR
unlimited
unlimited, but daily use up to 80,000 elements
Product
Time of calculation, elements per second
The Real-time Distance Matrix API without traffic conditions
The Asynchronous Distance Matrix API with traffic conditions
up to 50 EPS
up to 300-500 EPS
up to 300 EPS
up to 5 EPS
Product
Time of calculation, EPS
The Real-time DM API without traffic conditions
The Asynchronous DM API with traffic conditions
up to 50 EPS
up to 300-500 EPS
up to 300 EPS
up to 5 EPS
Product
Real-time traffic consideration
The Real-time Distance Matrix API without traffic conditions
The Asynchronous Distance Matrix API with traffic conditions
Product
Real-time traffic consideration
The Real-time DM API without traffic conditions
The Asynchronous DM API with traffic conditions
Product
Pricing plan, depending on volume usage
The Real-time Distance Matrix API without traffic conditions
The Asynchronous Distance Matrix API with traffic conditions
from $1,25 per 1,000 elements Learn more
from $0,3 per 1,000 elements Contact us
from $0,35 per 1,000 elements Learn more
from $1,25 per 1,000 elements Contact us
Product
Pricing plan, depending on volume usage
The Real-time DM API without traffic conditions
The Asynchronous DM API with traffic conditions
from $1,25 per 1,000 elements Learn more
from $0,3 per 1,000 elements Contact us
from $0,35 per 1,000 elements Learn more
from $1,25 per 1,000 elements Contact us
Contact us for help in choosing the most profitable API for your application or request an individual offer
Contact us
Distancematrix.ai
Detailed explanations of the comparative table
What does the number of elements mean?
Each element in the request represents a pair of origin and destination points for which calculations need to be made.
For example, there are three starting locations, A, B, and C, and three destination locations, E, B, and D:
↓ origins \ destinations
E
B
D
A
A to E
A to B
A to D
B
B to E
B to B = 0
B to D
C
C to E
C to B
C to D
This example shows a 3x3 matrix containing 9 elements.
The API response contains a distance matrix in JSON format. Each element of this matrix in the response is a block of information along one route (for example, from point A to point E), which includes 2-3 fields:
distance
duration
duration_in_traffic (only for APIs with traffic conditions)
How many elements can I send in one request?
According to our company policy, each product has its own limitations (unless otherwise agreed upon individually).
For example, using the Real-time Distance Matrix API with traffic conditions, you can send a request with no more than 100 elements at a time. These can be matrices of 1x100, 10x10, 5x20, etc.
The Asynchronous Distance Matrix API with traffic conditions has no limit in the request size, but daily usage should not exceed 80,000 elements. For example, no more than 10 queries for 20x400 matrices (10 * 20 * 400 = 80,000) per day.
How long do distance calculations take?
When using the Real-time Distance Matrix API with traffic conditions, you can get up to 50 elements per second.
You can get the fastest response, up to 300-500 elements per second, if real-time traffic is not important to you. Just choose our Real-time Distance Matrix API without traffic conditions. Alternatively, choose the Asynchronous DM API without traffic conditions if you need to calculate matrices with a large number of elements.
For calculations while using Asynchronous Distance Matrix API with traffic conditions, the response time is up to 5 elements per second. At the same time, this product has two key advantages: calculating large requests and consideration of real-time traffic.
What does "real-time traffic" mean?
Our products predict travel times based on statistical data on road congestion in different regions. Traffic jams, travel modes, and restrictions are taken into account. We gather this data from public traffic data sources and use our algorithms to calculate travel times.
In terms of accuracy, our products are very similar to Google's Distance Matrix API.
You can use our application to check it out.
Ready to try our products?
Contact us and we'll help you choose the most profitable pricing plan. If you're interested, we'll let you test the API you're interested in