You're all set!

To start developing, please head over to our developer documentation.

Activate the Google Maps Distance Matrix API

To get you started we'll guide you through the Google Developers Console to do a few things first:

  1. Create or choose a project
  2. Activate the Google Maps Distance Matrix API
  3. Create appropriate keys
Continue

Google Maps Distance Matrix API Usage Limits

Each query sent to the Google Maps Distance Matrix API is limited by the number of allowed elements, where the number of origins times the number of destinations defines the number of elements.

The Google Maps Distance Matrix API has the following limits in place:

Standard Usage Limits

Users of the standard API:

  • 2,500 free elements per day, calculated as the sum of client-side and server-side queries.
  • Maximum of 25 origins or 25 destinations per request.
  • 100 elements per request.
  • 100 elements per second, calculated as the sum of client-side and server-side queries.

Enable pay-as-you-go billing to unlock higher quotas:

$0.50 USD / 1000 additional elements, up to 100,000 daily.

You're all set!

Billing has been enabled for your selected project.

Enabling billing

To enable billing and unlock higher quotas for the Google Maps APIs, we'll guide you through the Google Developers Console to complete a few tasks:

  1. Create or choose a project
  2. Set up or choose your billing profile
  3. Enable billing on your project
Continue

Premium Usage Limits

Google Maps APIs Premium Plan customers:

  • Shared daily free quota of 100,000 elements per 24 hours; additional requests applied against the annual purchase of Maps APIs Credits.
  • Maximum of 25 origins or 25 destinations per request.
  • 625 elements1 per server-side request. Limited to 100 elements per client-side request.
  • 1,000 server-side elements per second. Note that the client-side service offers Unlimited elements per second, per project.

1 Distance matrix requests using the optional parameter departure_time when mode=driving are limited to 100 elements per request.

Additional benefits of a premium plan:

  • Annual contracts with enterprise terms
  • 24 hour technical support
  • Service level agreement (SLA)
  • Licenses for internal, OEM, and asset tracking use cases

Contact Sales for more info.

Google Maps APIs Premium Plan customers can purchase additional quota by contacting their Google Enterprise Sales Account Manager.

Increase your Quota by Enabling Pay-as-you-go Billing

The standard Google Maps Distance Matrix API supports up to 100,000 elements daily. A project will be restricted to the complimentary 2,500 per-day-limit until you enable billing on the project. Once billing has been enabled, if you exceed 2,500 elements in a day, you will be billed at $0.50 USD / 1000 additional elements, up to 100,000 daily.

The maximum billable limit defaults to 100,000 requests per day. You can change this limit by clicking the edit icon next to the requests per day quota on the Quotas page of the API in the Google API Console.

If your API usage reaches your billable limit on any given day, your application will not be able to access the API for the remainder of that day.

Google charges you at the beginning of each month for the previous month's activity, using your specified payment method.

Learn how to:

Terms of Use Restrictions

For information on terms of use, see policies for the Google Maps Distance Matrix API, and the License Restrictions section of the Google Maps APIs Terms of Service.

Send feedback about...

Google Maps Distance Matrix API
Google Maps Distance Matrix API
Need help? Visit our support page.