Insight Horizon Media
arts and culture /

Is Google Distance Matrix API free?

Is Google Distance Matrix API free?

Users of the free API: 100 elements per query. 100 elements per 10 seconds. 2,500 elements per 24 hour period.

How can I call Google Distance Matrix API?

Getting started

  1. Go to the Google Cloud Console.
  2. Click the Select a project button, then select the same project you set up for the Maps JavaScript API and click Open.
  3. From the list of APIs on the Dashboard, look for Distance Matrix API.
  4. If you see the API in the list, you’re all set. If the API is not listed, enable it:

How much does Google Distance Matrix API cost?

SKU: Distance Matrix

MONTHLY VOLUME RANGE (Price per ELEMENT)
0–100,000100,001–500,000500,000+
0.005 USD per each (5.00 USD per 1000)0.004 USD per each (4.00 USD per 1000)Contact Sales for volume pricing

How do you create a Distance Matrix API?

Try watching this video on or enable JavaScript if it is disabled in your browser.

  1. Go to the Google Maps Platform > Credentials page. Go to the Credentials page.
  2. On the Credentials page, click Create credentials > API key. The API key created dialog displays your newly created API key.
  3. Click Close.

What is Matrix API?

The Matrix API allows you to efficiently check the reachability of coordinates from each other, filter points by travel time, or run your own algorithms for solving optimization problems. A valid Matrix API request returns a matrix of all the travel times in seconds for each element in the matrix.

How do I get a Google API key for distance?

To get an API key:

  1. Go to the Google Cloud Console.
  2. Click the project drop-down and select or create the project for which you want to add an API key.
  3. Click the menu button and select Google Maps Platform > Credentials.
  4. On the Credentials page, click + Create Credentials > API key.
  5. Click Close.

How do I use Google Distance Matrix API in Python?

The Python Script

  1. Dependencies. Import the necessary packages:
  2. Load CSV file and store in a data frame. In this step, we load the CSV file into a data frame.
  3. Set up the API key.
  4. Iterating Rows in Data Frame.
  5. Creating a New ‘Distance’ Column in the Data Frame.
  6. Writing the Final Data Frame to CSV.

How can I use Google API for free?

Get the API key

  1. Go to the Google Cloud Console.
  2. Click the project drop-down and select or create the project for which you want to add an API key.
  3. Click the menu button and select Google Maps Platform > Credentials.
  4. On the Credentials page, click + Create Credentials > API key.
  5. Click Close.

How do I use Google Matrix?

Overview: How to use Matrix

  1. Visit matrix.itasoftware.com and enter in the details about your flight.
  2. The Round trip tab is open by default.
  3. If your trip will include multiple destinations, use the Multi-city tab.