Distance Matrix API Usage and Billing

  • The Distance Matrix API is priced on a pay-as-you-go basis, charging per element, which is calculated by multiplying the number of origins by the number of destinations in a request.

  • There are two SKUs for billing: Distance Matrix (basic requests) and Distance Matrix Advanced (requests using traffic information or location modifiers), each having its own pricing tier.

  • While there is no daily limit on the total number of elements, the API has usage restrictions on the maximum number of origins, destinations, and elements per request, as well as a rate limit of 60,000 elements per minute.

  • Users can manage their costs by setting daily quota limits for the Distance Matrix API within the Google Cloud Console, ensuring their application's usage stays within budget.

  • You must enable billing on your projects and include an API key or OAuth token for all API requests to utilize the Distance Matrix API.

Distance Matrix API requests generate calls to one of two SKUs depending on the type of request: basic or advanced.

SKU details and pricing for the Distance Matrix API

The following table shows the SKU details and pricing for the Distance Matrix API.

CategorySKU DetailsSKU Pricing
Essentials SKU: Distance Matrix Main pricing list
India pricing list
Pro SKU: Distance Matrix Advanced Main pricing list
India pricing list

Usage limits

While there is no maximum number of elements per day (EPD), the following usage limits are in place for the Distance Matrix API:

  • Maximum of 25 origins or 25 destinations per request.
  • Maximum 100 elements per server-side request.
  • Maximum 100 elements per client-side request.
  • Elements per minute are calculated as the sum of client-side and server-side queries. To look up the per-minute quota, see Quotas and quota alerts.

Adjust quota

Quota limits define the maximum number of requests allowed for a specific API or service within a given timeframe. When the number of requests in your project reaches the quota limit, your service stops responding to requests.

To modify a quota value for your API, follow these steps:

  1. In the Cloud console, navigate to Google Maps Platform > Quotas.
  2. Select the API for which you want to modify the quota.
  3. Identify the quota value that you want to change, and select it using the checkbox.
  4. Click Edit, enter a new quota value, and click Submit request.

View quota increase requests

To view all quota increase requests, including past and pending requests:

  1. In the Cloud console, navigate to Google Maps Platform > Quotas.
  2. Select the API for which you want to view the quota increase request.
  3. Click Increase Requests.

Terms of Use restrictions

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