AI-generated Key Takeaways
-
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.
SKU details and pricing for the Distance Matrix API
The following table shows the SKU details and pricing for the Distance Matrix API.
Category | SKU Details | SKU 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:
- In the Cloud console, navigate to Google Maps Platform > Quotas.
- Select the API for which you want to modify the quota.
- Identify the quota value that you want to change, and select it using the checkbox.
- 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:
- In the Cloud console, navigate to Google Maps Platform > Quotas.
- Select the API for which you want to view the quota increase request.
- 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.