Distance Matrix API

Calculate, evaluate and plan your routes to improve customer experience and business efficiency
Main API features
Real-time traffic
Accounts for traffic conditions, traffic jams, and restrictions

Travel modes
Distances are calculated to account for driving, walking, or bicycling
Departure and arrival time option is used to build a forecast
Unlimited matrix size
From 2500 in basic plan and unlimited in pro
How it works
The Matrix API returns the duration in seconds and the distance in meters for the fastest route between the coordinates of the selected points.
The task
For example, let's say you need to find the distance and travel time between the following address points on a map:

1677 Easton Rd, Willow Grove, PA 19090, USA
119 S Easton Rd, Glenside, PA 19038, USA
API geocode
The API geocode returns these queries as point coordinates. It is necessary to obtain the distances between points in a straight line or determine whether the user is in a certain zone.

The result
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.
For example, 310 meters and 2600 seconds.
Find out how easy it is to migrate to the Distance Matrix API
Case study
Distance Matrix API in action
How we reduced delivery time
by 10% for 966.ua food delivery
966.ua is one of the largest Asian food delivery chains in Ukraine. With the help of the Distance Matrix API, the company can determine the best routes for its couriers and optimize its business processes.

Up to 120 orders per hour are analyzed by our API, and a large number of requests are returned with needed data every hour, taking into account traffic jams. As a result, 966.ua is saving money on its deliveries.
Check out the pricing plans
Matrix size up to 50 elements
Matrix size up to 2500 elements
Unlimited matrix size
Information for developers
The request and response format of DistanceMatrix API is similar to Google's Distance Matrix API, and migration is easy.

    "destination_addresses": [
        "Westminster Abbey, Westminster, London SW1P 3PA, UK"
    "origin_addresses": [
        "Chapel, Fulham, London SW6 1BA, UK"
    "rows": [
            "elements": [
                    "distance": {
                        "text":"4.7 miles",
                        "text":"31 min",
                    "duration_in_traffic": {
                        "text":"31 min",
Fill in the form and get a free 7 days trial period for Distance Matrix API
Tell us more about your project and we'll help you to choose the best solution and pricing plan.
Link to your website or your company name and job position
Email where to send a token and instructions
What is the most comfortable channel to communicate with you?
How many requests do you want to make per month?
Have you ever used Google Distance Matrix API or any other similar API before?
You agree with our Terms and Conditions
Made on