Sep 24, 2021 • Blog

Google Driving Distance Matrix API Alternatives

facebook iconx icon


The Google Distance Matrix API lets you calculate travel times and distances between a pair of locations. If you’re exploring all matrix providers to compare costs check out our latest blog:

Compare Matrix API prices and limits side by side with Mapbox, Here, TravelTime and more

This post is a deep dive into Google vs. TravelTime only. We’ll show you why the TravelTime API is the best alternative to Google’s Distance Matrix API for calculating travel times and distances between locations.

Distance matrix CTA

Why calculate drive times and distances?

Calculating driving distance can be useful for online search and for location analysis. For example,a store finder page that uses a distance matrixcan help customers decide location is easier for them to get to using a distance matrix.

Or, if you’re planning an office relocation, you could calculate the distance and travel times from the potential offices to each employee’s address.

Determining drive times to many points of interest involves multiple calculations. This is because drive times to multiple potential destinations need to be calculated.

How does the Google Distance Matrix API work?

The Google Distance Matrix API calculates travel distances and time between many origins and destinations. 

Conducting a search from a single origin to multiple destinations is called a query. Within that query are multiple origin-destination pairs. These are the number of searches between the point of origin and multiple destination points. 

Each one of these pairs is called an element. So, if there is a single start point and 10 destinations, this equates to 10 origin-destination pairs, or elements.

How much does the Google Distance Matrix API cost?

Google uses a pay-as-you-go model for its Distance Matrix API. The API is priced per element (an element being the number of origins multiplied by the number of destinations). Pricing is also different based on whether you are using a Basic or Advanced request.

The table below shows pricing for a Basic request for the Google Distance Matrix API:

Monthly Volume Range(Price per Element)
0 - 100,000 100,001 - 500,000 500,000 +
0.005 USD per each 
($5 per 1000)
0.004 USD per each 
($4 per 1000)
Contact Sales for volume pricing

What is the best alternative to the Google Distance Matrix API?

The Travel Time Matrix API is the best alternative to the Google Distance Matrix API

With the Travel Time Matrix API, you can calculate travel times between thousands of origins and destinations simultaneously, for any mode of transport – including driving, public transport, cycling and walking. To see how it works, you can test our Travel Time Matrix Playground for free here.

TravelTime is also a much more affordable option than the Google Distance Matrix API. Instead of charging per transaction, for one fixed monthly cost you can make unlimited requests. It’s significantly more scalable when you need thousands or millions of calculations.

A free trial also means that you can get started with using the TravelTime API as a free alternative to the Google Distance Matrix API.

Get a quote and start saving.

How do I create a matrix with the TravelTime API?

To use the travel time matrix feature of the TravelTime API, you would enter:

  • Your starting destination
  • Your maximum travel time
  • Your preferred mode of transport

The matrix endpoint then calculates the travel times from the origin to each point of interest.

What are the main differences between the Google Distance Matrix API and TravelTime API?

Below is a detailed feature comparison – if you have any questions,get in touch!

Google Distance Matrix API TravelTime API
Pricing model
  • Pay-as-you-go pricing model, based on usage.
  • Unlimited usage, fixed monthly price
Volumes per request
  • Can calculate up to 25 origins or 25 destinations in 1 request.
  • Matrix limits vary depending on which endpoint you select
  • Time Filter max matrix:
    10 x 2,000
  • Time Filter Fast max matrix:
    10 x 100,000
  • Time Filter Fast (Protobuf):
    1 x 200,000
Drive time data
  • Google’s distance matrix can calculate drive speeds using optimistic, pessimistic and best guess. Live traffic times only available through the Advanced request plan.
  • Drive time calculations use a single road speed average and are not charged differently
Available transport modes
  • Public transport (choose any specific transport modes, or select all modes)
  • Driving 
  • Walking
  • Cycling
  • Public transport (choose any specific transport modes, or select all modes)
  • Cycling
  • Driving
  • Driving + Train (in Great Britain only)
  • Walking
  • Driving + Ferry
  • Cycling + Ferry
  • Cycling + Public transport (In the Netherlands only)
Isochrones(visualising travel times on a map)
  • No dedicated function to create isochrones
  • Yes – can create isochrones and catchment areas for any mode of transport
  • Priced separately via the Geocoding API
  • Geocoding included free

What else can I do with the TravelTime API?

Create isochrones (travel time shapes)

In addition to calculating travel times, you can also create isochrones with the TravelTime Isochrone API. Isochrones are shapes that show how far you can travel within a time limit – and the TravelTime Isochrone API lets you do this for any mode of transport.

The example below shows where can be reached within 30 minutes’ drive from Covent Garden in London:

How can I use the TravelTime API?

1. For location-based search

Many users use the TravelTime API is as part of their website or app search functionality.

This is because the API lets you filter and rank location search results by travel time, rather than distance, resulting in a more accurate and personalised search experience.  

For example, the image below shows a job board search using the TravelTime API, where the user has selected a maximum travel time of 45 minutes and driving as their preferred transport mode.

The TravelTime API calculates travel times between the user’s start location and all possible results within that maximum travel time:

In another example, the image below shows a property search using the TravelTime API. Although there are 692 potential properties, this would be considered a single search:

2. For location analysis

The second way to use the TravelTime API is to make better location decisions.  For example, if you’re relocating an office, you can use the TravelTime API to calculate the travel times and distance to each employee’s address

Below is an example of staff commute times to two potential offices:



 Dave  25  34  +9  13   -12
 Dev   38  20  -18  34   -4 
 DeAndra  64  68  +4   54  -10 
 Derek  12  29  +17   22  +10 
 Dinesh   45  54  +9   17  +28 

TravelTime: A scalable and cost-effective alternative to the Google Distance Matrix API

The TravelTime API offers a flexible and cost-effective alternative to the Google Distance Matrix API. With TravelTime, you can not only calculate accurate travel times and distances between many locations instantly, but you can also create isochrones to show where you can travel within a time limit for any mode of transport and create A to B routes.

Get started for freeby signing up for an API key or check out our documentationfor more information.

Calculate millions of personalised journey times
TravelTime is the only distance matrix API without usage limits, for one fixed price.
Try for free
cta accent icon
facebook iconx icon


Calculate thousands of travel times with the TravelTime API

Get started free
cta accent icon

Read related articles

Blog post
How to Create a Distance (Origin-Destination) Matrix in ArcGIS with TravelTime
Blog post
Google Distance Matrix API vs. the TravelTime API: Which is Best for You?
How to Make a Distance Matrix & Calculate Times to Multiple Destinations