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
MaaS solution from the Netherlands
MaaS solution from the Netherlands
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
Distance Matrix pricing
Geocoding pricing
Geocoding pricing

The Distance Matrix API

Calculate, evaluate and plan your routes to improve your customers' online experience and enhance your business efficiency

distance matrix API
Read API documentation
Main API features
real-time traffic
driving distance calculator
drive time forecasting
Real-time traffic
Travel modes
Forecasting
Quick response
Our API provides the route duration, taking into account real-time traffic conditions (traffic jams, restrictions, etc.)
Distance is calculated to account for users who are driving, walking, bicycling, or using public transport
The Distance Matrix API can forecast travel times, taking into account departure and arrival times
The request calculation time is up to 50 elements per second, so you can get the API response less than in a second
quick response
Main API features
real-time traffic
driving distance calculator
drive time forecasting
Real-time traffic
Travel modes
Forecasting
Quick response
quick response
The Matrix API returns the trip duration in seconds and the distance in meters to show the fastest route between the coordinates of the selected points.
How it works
1677 Easton Rd, Willow Grove, PA 19090, USA
119 S Easton Rd, Glenside, PA 19038, USA
For example, let's say you need to find the distance and travel time between the following address points on the map:
The task
distance between places
geocoding API
time and distance calculator
40.1349979,-75.1228148
40.1000254,-75.1540458
The API geocode returns these queries as point coordinates
API geocode
For example, 310 meters and 2600 seconds
The Distance Matrix API then returns distance and travel time data on the queries with point coordinates. The API response contains a distance matrix in JSON format
The result
Find out how easy it is to migrate
to the Distance Matrix API
Migrate
Distance Matrix AI
Who can benefit from this API?
The API will improve the customer experience and business efficiency in such industries:
Food delivery
Taxi services
Courier services
Logistics & Transportation
Distance calculator for delivery route planners
Distance calculator for taxi
Drive time calculator for courier services
Distance planner for logistics and transportation
Food delivery
Distance finder for food delivery
Taxi services
Drive time calculator for taxi services
Courier services
Delivery time calculator for courier services
Logistics & Transportation
Our case studies
How we reduced delivery times by 25%
Optimizing trips and delivery for suppliers and distributors
How we reduced the cost-distance calculation by 5 times
The Distance Matrix API and delivery-time calculation for the 966.ua restaurant chain
The Distance Matrix API for Syrian application for drivers
The Distance Matrix API and food delivery optimization for Lunch24.com
How we reduced delivery times by 25%
The Distance Matrix API and delivery-time calculation for the 966.ua restaurant chain
Optimizing trips and delivery for suppliers and distributors
The Distance Matrix API for Syrian application for drivers
How we reduced the cost-distance calculation by 5 times
The Distance Matrix API and food delivery optimization for Lunch24.com
Distance matrix API for drivers app
966.ua case study
lunch24 case study
Distance matrix API for 966.ua
drivers app case study
Distance matrix API for Lunch24.com
Our case studies
How we reduced delivery times by 25%
How we reduced the cost-distance calculation by 5 times
The Distance Matrix API and delivery-time calculation for the 966.ua restaurant chain
The Distance Matrix API and food delivery optimization for Lunch24.com
How we reduced delivery times by 25%
The Distance Matrix API and delivery-time calculation for the 966.ua restaurant chain
How we reduced the cost-distance calculation by 5 times
The Distance Matrix API and food delivery optimization for Lunch24.com
966.ua case study
lunch24 case study
Distance matrix API for 966.ua
Distance matrix API for Lunch24.com
Our case studies
How we reduced delivery
times by 25%
The Distance Matrix API and delivery-time calculation for the 966.ua restaurant chain
How we reduced delivery
times by 25%
The Distance Matrix API and delivery-time calculation for the 966.ua restaurant chain
966.ua case study
Distance matrix API for 966.ua
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
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