Distancematrix.ai

Compute the distance and travel time between points on a map with reliable and accurate APIs
Distancematrix.ai is an API service that calculates travel time and distance using real-time data across various transportation modes. Serving industries such as courier services, food delivery, logistics, and transportation, we provide Geocoding and Distance Matrix APIs to ensure seamless integration and reliable performance for websites and apps.

Start now and get access to all the products

Distance Matrix API Accurate

Duration and duration in traffic 
Based on real-time data
Driving, walking, and bicycling modes
Departure & arrival time
Distance in traffic mode
Any languages

Distance Matrix API Fast

Duration (average time)
Based on aggregated average data
The fastest response in milliseconds
Driving mode
The best result for the English language
Learn more
Geocoding API Accurate
Direct and reverse geocoding included
The highest level of accuracy
Index supported
Additional parameters
Additional data verification
Efficient response time (≈1s)
Ideal for navigation systems, real estate management, and urban planning
Geocoding API Fast
Direct and reverse geocoding included
Reasonable accuracy
Optimized database
Even faster response times (≈0,5s)
Simplified algorithms for speed
Ideal for logistics, delivery services, mobile apps requiring quick responses
Learn more

How it works

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.
distance between places
The task
For example, let's say you need to find the distance and travel time between the following address points on the map:
1677 Easton Rd, Willow Grove, PA 19090, USA
119 S Easton Rd, Glenside, PA 19038, USA
geocoding API
API geocode
The API geocode returns these queries as point coordinates:
40.1349979,-75.1228148
40.1000254,-75.1540458
time and distance calculator
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

Start for free

What is an element? - Each query sent to the Distance Matrix API generates elements, where the number of origins * the number of destinations = the number of elements.
Advantages
Unlimited usage of elements per month with post-payment
Access to all of our products: Distance Matrix API Accurate, Distance Matrix API Fast, Geocoding API Accurate, Geocoding API Fast
The unlimited number of apps (tokens)
Access to all the features: traffic information, driving and walking mode, quick response, departure & arrival time, all common languages, and many more.
$50 one-time bonus equal 25,000 elements
What is an element? - Each query sent to the Distance Matrix API generates elements, where the number of origins * the number of destinations = the number of elements.
Pay only for what you use
No subscription
No prepayment
No credit card needed
Pay at the end of the month
Free testing
Pricing for elements
1 — 100,000 elements
$2 per 1,000 elements
the next 100,000 — 300,000 elements
$1.6 per 1,000 elements
the next 300,000 — 500,000 elements
$1.25 per 1,000 elements
the next 500,000 elements and more
$1 per 1,000 elements or
Contact us for better pricing
What is an element?
Up to 5 times cheaper than the market offer, with higher accuracy and live traffic
By clicking this button, you will try APIs for free

Main APIs benefits

Improve your software and applications with features that APIs reveal
quick response
Quick response
Our APIs are designed to be cost-effective, scalable from 5 to 500 elements per second, ensuring you get maximum value and efficiency
real-time traffic
Real-time update on traffic conditions
Exclusive real-time traffic updates, including congestion, travel modes, and restrictions. You're always ahead with the most current data
alternative to google
Easy migration
If you're using Google Maps API, there's no need to rewrite your existing code. Enjoy the convenience of an easy migration.
affordable price
Transparent pricing & value
Enjoy clear, competitive pricing with bonuses, without the hidden fees often found elsewhere
high accuracy
High accuracy
The API offers accuracy and coverage comparable to industry-leading similar services.
world coverage
World coverage
Get data from any point in the world, wherever your business is located
No prepayment is needed.
Start for free and get instant
access to all Distancematrix.ai
products and features