Bei Distance Matrix API-Anfragen werden je nach Anfragetyp Aufrufe an eine von zwei SKUs gesendet: basic oder advanced.
Klicken Sie auf das Symbol InfoInfo, um den Inhaltsverzeichnis dieser Seite aufzurufen.
Diese SKU wird für jedes Element ausgelöst, das über eine Anfrage an die Distance Matrix API zurückgegeben wird. Jede Abfrage, die an die Distance Matrix API gesendet wird, generiert Elemente. Dabei ergibt sich die Anzahl der Elemente aus der Anzahl der origins × der Anzahl der destinations.
Diese SKU wird für jedes Element ausgelöst, das über eine Anfrage an die Distance Matrix API zurückgegeben wird. Jede Abfrage, die an die Distance Matrix API gesendet wird, generiert Elemente. Dabei ergibt sich die Anzahl der Elemente aus der Anzahl der origins × der Anzahl der destinations.
Verkehrsinformationen: Wenn Sie alle folgenden Anfrageoptionen verwenden, damit in der Antwort das Feld duration_in_traffic in der Distance Matrix-Antwort zurückgegeben wird:
Mobilitätsform ist „Mit dem Auto“: Legen Sie
Reise mode auf driving fest. Driving ist die Standardmobilitätsform.
Abfahrtszeit festgelegt: Geben Sie eine gültige departure_time an. Sie können departure_time auf die aktuelle Zeit oder eine Zeit in der Zukunft festlegen. Der Wert darf nicht in der Vergangenheit liegen.
Standortmodifikatoren: Wenn Sie mit den folgenden Standortmodifikatoren angeben, aus welcher Richtung die Fahrer einen bestimmten Standort anfahren sollen.
[null,null,["Zuletzt aktualisiert: 2025-03-03 (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"]]