Distance Matrix API Usage and Billing

Distance Matrix API requests generate calls to one of two SKUs depending on the type of request: basic or advanced. Click the info info icon to see the table of contents for this page.

Billing and pricing for the Distance Matrix API

For information about how Google calculates your billing and pricing, see Google Maps Platform pricing list or Google Maps Platform pricing list - India.

SKU: Distance Matrix

This SKU bills for the elements returned by a request to the Distance Matrix API (Legacy) or the Maps JavaScript API Distance Matrix Service, excluding requests triggering the Distance Matrix Advanced billing SKU.

  Category Essentials
  Billable event Element
  Triggers This SKU is triggered for each element returned by a request to the Distance Matrix API. Each query sent to the Distance Matrix API generates elements, where the number of origins times the number of destinations equals the number of elements.
  Pricing Main pricing table
India pricing table

SKU: Distance Matrix Advanced

This SKU bills for the elements returned by a request to the Distance Matrix API (Legacy) or the Maps JavaScript API Distance Matrix Service that uses traffic information and/or location modifiers.

  Category Pro
  Billable event Element
  Triggers

This SKU is triggered for each element returned by a request to the Distance Matrix API. Each query sent to the Distance Matrix API generates elements, where the number of origins times the number of destinations equals the number of elements.

A Distance Matrix Advanced SKU is charged for a Distance Matrix API (Legacy) or a Maps JavaScript API Distance Matrix Service that uses one or more of the following:

  • Traffic information. When you use all of the following request options so that the response returns the duration_in_traffic field in the Distance Matrix response:
    • Travel mode is driving: Set travel mode todriving. Driving is the default travel mode.
    • Departure time is set: Specify a valid departure_time. You can set departure_time to the current time or some time in the future. It cannot be in the past.
  • Location modifiers. When you use the following location modifiers to indicate how drivers should approach a particular location:
    • side_of_road
    • heading
  Pricing Main pricing table
India pricing table

Other 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.
  • 60,000 EPM (elements per minute), calculated as the sum of client-side and server-side queries.

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.