Ce produit ou cette fonctionnalité est obsolète. Pour en savoir plus sur l'ancienne étape et sur la façon de migrer vers de nouveaux services, consultez la section Produits et fonctionnalités obsolètes.
Les éléments par minute sont calculés en additionnant les requêtes côté client et côté serveur. Pour consulter le quota à la minute, consultez Quotas et alertes de quota.
Ajuster le quota
Les limites de quota définissent le nombre maximal de requêtes autorisées pour une API ou un service spécifiques au cours d'une période donnée. Lorsque le nombre de requêtes dans votre projet atteint la limite de quota, votre service cesse de répondre aux requêtes.
Pour modifier la valeur d'un quota pour votre API, procédez comme suit :
Dans la console Cloud, accédez à Google Maps Platform > Quotas.
Sélectionnez l'API pour laquelle vous souhaitez modifier le quota.
Identifiez la valeur de quota que vous souhaitez modifier, puis cochez la case correspondante.
Cliquez sur Modifier, saisissez une nouvelle valeur de quota, puis cliquez sur Envoyer la demande.
Afficher les demandes d'augmentation de quota
Pour afficher toutes les demandes d'augmentation de quota, y compris celles en attente et celles qui ont été traitées :
Dans la console Cloud, accédez à Google Maps Platform > Quotas.
Sélectionnez l'API pour laquelle vous souhaitez afficher la demande d'augmentation de quota.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/08/31 (UTC).
[null,null,["Dernière mise à jour le 2025/08/31 (UTC)."],[[["\u003cp\u003eThe 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.\u003c/p\u003e\n"],["\u003cp\u003eThere 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.\u003c/p\u003e\n"],["\u003cp\u003eWhile 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.\u003c/p\u003e\n"],["\u003cp\u003eUsers 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.\u003c/p\u003e\n"],["\u003cp\u003eYou must enable billing on your projects and include an API key or OAuth token for all API requests to utilize the Distance Matrix API.\u003c/p\u003e\n"]]],["The Distance Matrix API requires enabled billing and an API key or OAuth token. It uses a pay-as-you-go model, with costs based on SKU usage, either basic or advanced. The advanced SKU includes traffic and location modifiers. Usage limits include maximums of 25 origins/destinations, 100 elements per request, and 60,000 elements per minute. Users can manage costs by setting daily quota limits in the Google Cloud console and utilize the $200 monthly credit until March 1, 2025.\n"],null,["# Distance Matrix API Usage and Billing\n\n| **Reminder:** To use the Distance Matrix API, you must [enable billing](https://console.cloud.google.com/project/_/billing/enable?utm_source=Docs_BillingNudge) on each of your projects and include an [API key](/maps/documentation/distance-matrix/get-api-key) or OAuth token with all API or SDK requests.\nDistance Matrix API requests generate calls to one of two SKUs depending on the type of request: [basic](#distance-matrix-ess-sku) or [advanced](#distance-matrix-pro-sku).\n\nSKU details and pricing for the Distance Matrix API\n---------------------------------------------------\n\nThe following table shows the SKU details and pricing for the Distance Matrix API.\n\n| Category | SKU Details | SKU Pricing |\n|----------------|---------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **Essentials** | [SKU: Distance Matrix](/maps/billing-and-pricing/sku-details#distance-matrix-ess-sku) | [Main pricing list](/maps/billing-and-pricing/pricing#routes-legacy-pricing) [India pricing list](/maps/billing-and-pricing/pricing-india#routes-legacy-pricing) |\n| **Pro** | [SKU: Distance Matrix Advanced](/maps/billing-and-pricing/sku-details#distance-matrix-advanced-pro-sku) | [Main pricing list](/maps/billing-and-pricing/pricing#routes-legacy-pricing) [India pricing list](/maps/billing-and-pricing/pricing-india#routes-legacy-pricing) |\n\n\nUsage limits\n------------\n\nWhile there is no maximum number of elements per day (EPD), the following\nusage limits are in place for the Distance Matrix API:\n\n- Maximum of 25 origins or 25 destinations per request.\n- Maximum 100 elements per server-side request.\n- Maximum 100 elements per [client-side](/maps/documentation/javascript/distancematrix) request.\n- Elements per minute are calculated as the sum of [client-side](/maps/documentation/javascript/distancematrix) and server-side queries. To look up the per-minute quota, see [Quotas and quota alerts](/maps/billing-and-pricing/manage-costs#quotas).\n\n\nAdjust quota\n------------\n\n\nQuota limits define the maximum number of requests allowed for a specific API or service within a\ngiven timeframe. When the number of requests in your project reaches the quota limit, your service\nstops responding to requests.\n| **Important:** To understand how an increase in quota could affect your bill, check out the [pricing calculator](https://mapsplatform.google.com/pricing/#pricing-calculator).\n\nTo modify a quota value for your API, follow these steps:\n\n1. In the Cloud console, navigate to **Google Maps Platform \\\u003e Quotas**.\n2. Select the API for which you want to modify the quota.\n3. Identify the quota value that you want to change, and select it using the checkbox.\n4. Click **Edit** , enter a new quota value, and click **Submit request**.\n\n### View quota increase requests\n\n| **Important:** You must have the appropriate [IAM permissions to view quota increase requests](https://cloud.google.com/docs/quotas/permissions#permissions_increase).\n\nTo view all quota increase requests, including past and pending requests:\n\n1. In the Cloud console, navigate to **Google Maps Platform \\\u003e Quotas**.\n2. Select the API for which you want to view the quota increase request.\n3. Click **Increase Requests**.\n\n| **Tip:** Make sure to monitor your quota usage regularly to avoid service interruptions. [Learn more about quotas and\n| quota alerts](/maps/billing-and-pricing/manage-costs#quotas).\n\nTerms of Use restrictions\n-------------------------\n\nFor information on terms of use, see\n[policies for the Distance Matrix API](/maps/documentation/distance-matrix/policies), and the\n[License Restrictions section](https://cloud.google.com/maps-platform/terms/#3.-license.)\nof the Google Maps Platform Terms of Service. \n\n*** ** * ** ***"]]