Products
Solutions
Resources
Pricing
Sign in
Get a free trial
Products
Solutions
Sign in
Resources
Pricing
Contact us
Contact us
Developer guides
Developer guides
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)
Distance Matrix API guide
Geocoding API guide
Distance Matrix API guide
Geocoding API guide
DM API application guide
DM API application guide
Food delivery
Taxi services
Food delivery
Taxi services
Courier services
Logistics & Transportation
Courier services
Logistics & Transportation
Distance Matrix pricing
Distance Matrix pricing
Geocoding pricing
Geocoding pricing
Our news
Our news
Useful guides
Useful guides
Case studies
Case studies

The Distance Matrix API for transport logistics and freight

Use an unlimited matrix size for your logistics application and streamline inter-city transportation using real-time traffic information

Solution
The Distance Matrix API for professional transportation logistics is created to solve complex mathematical problems, including the classic "traveling salesman", so that every truck or commercial vehicle can reach all planned destinations using the shortest routes and in the shortest possible times.
The Distance Matrix API helps find the most efficient routes by reordering stops and considering real-time traffic conditions and restrictions. It predicts the best departure time and calculates travel distance with the same accuracy as the Google API.
Main API features
You can find the optimum route for all planned destinations by building 25x25 matrixes and larger
Unlimited matrix size
Rely on real road maps, instead of straight lines from point A to point B
Optimum routes
The API considers all road conditions and restrictions that affect trucks
Real-time traffic
By determining the start time and considering traffic conditions, you can accurately predict delivery times
Predictive capabilities
Calculate distances for inter-city and international transportation, regardless of where your business is located
Worldwide coverage
Pay only for the monthly volume of elements you use. No credit card and prepayment needed
Flexible prices
truck route planner
drive time forecasting
distance matrix
real-time traffic
affordable price
global coverage
We have taken into account everything you need for building logistics software:
Main API features
You can find the optimum route for all planned destinations by building 25x25 matrixes and larger
Unlimited matrix size
Rely on real road maps, instead of straight lines from point A to point B
Optimum routes
The API considers all road conditions and restrictions that affect trucks
Real-time traffic
By determining the start time and considering traffic conditions, you can accurately predict delivery times
Predictive capabilities
Calculate distances for inter-city and international transportation, regardless of where your business is located
Worldwide coverage
Pay only for the monthly volume of elements you use. No credit card needed
Flexible prices
truck route planner
drive time forecasting
distance matrix
real-time traffic
affordable price
global coverage
We have taken into account everything you need for building logistics software:
Main API features
Unlimited matrix size
Optimum routes
Real-time traffic
Predictive capabilities
Worldwide coverage
Flexible prices
truck route planner
drive time forecasting
distance matrix
real-time traffic
affordable price
global coverage
We have taken into account everything you need for building logistics software:
Information for developers
The Distance Matrix API's request-and-response format is similar to Google's Distance Matrix API. Migrating it is easy.
Example:

https://api.distancematrix.ai/distancematrix?origins=51.4822656,-0.1933769&destinations=51.4994794,-0.1269979&key=<your_access_token>
Response:

{
  "destination_addresses": [
    "Westminster Abbey, Westminster, London SW1P 3PA, UK"
  ],
  "origin_addresses": [
    "Chapel, Fulham, London SW6 1BA, UK"
  ],
  "rows": [
    {
      "elements": [
        {
          "distance": {
            "text":"4.7 miles",
            "value":7563.898
          },
          "duration":{
            "text":"31 min",
            "value":1860.0
          },
          "duration_in_traffic": { 
            "text":"31 min",
            "value":1860.0
          },
          "status":"OK"
        }
      ]
    }
  ],
  "status":"OK",
}
Read API documentation
Read API documentation
Find out how easy it is to migrate to the Distance Matrix API
You don't need to rewrite any code – just change the API Key
Learn more
Start
Trusted by clients all over the world
distancematrix.ai's clients
No credit card required. Cancel anytime!
Start a free 7-day trial of the Distance Matrix API for Business
Get my 7-days free trial
Read API documentation
Get my 7-days free trial
Read API documentation