Utilizzo e fatturazione dell'API Distance Matrix (legacy)
Le richieste all'API Distance Matrix (legacy) generano chiamate a uno di due SKU a seconda del tipo di richiesta:
di base o avanzata.
Fai clic sull'icona InformazioniInformazioni
per visualizzare l'indice dei contenuti di questa pagina.
Fatturazione e prezzi per l'API Distance Matrix (legacy)
Questo SKU viene attivato per ogni elemento restituito da una richiesta all'API Distance Matrix. Ogni query inviata all'API Distance Matrix genera elementi, dove il numero di origins moltiplicato per il numero di destinations è uguale al numero di elementi.
Questo SKU viene attivato per ogni elemento restituito da una richiesta all'API Distance Matrix. Ogni query inviata all'API Distance Matrix genera elementi, dove il numero di origins moltiplicato per il numero di destinations è uguale al numero di elementi.
Informazioni sul traffico. Quando utilizzi tutte le seguenti opzioni di richiesta in modo che la risposta restituisca il campo duration_in_traffic nella risposta di Distance Matrix:
La modalità di viaggio è Auto: imposta mode di viaggio sudriving. Driving è la modalità di viaggio predefinita.
L'ora di partenza è impostata: specifica un valore valido per departure_time. Puoi impostare departure_time sull'ora corrente o su un momento futuro. Non può essere nel passato.
Modificatori dei luoghi. Quando utilizzi i seguenti
modificatori
della località per indicare come i conducenti devono avvicinarsi a una determinata località:
Sebbene non sia previsto un numero massimo di elementi al giorno (EPD), per l'API Distance Matrix (legacy) sono in vigore i seguenti limiti di utilizzo:
Massimo 25 origini o 25 destinazioni per richiesta
[null,null,["Ultimo aggiornamento 2025-03-01 UTC."],[[["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."]]],["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"]]