You're all set!
Billing has been enabled for your selected project.
Enabling billing
To enable billing, we'll guide you through the Google Cloud Platform Console to complete a few tasks:
- Create or choose a project
- Set up or choose your billing profile
- Enable billing on your project
Pay-As-You-Go Pricing
The Distance Matrix API uses a pay-as-you-go pricing model.
How usage and billing work under the pay-as-you-go model
- The Google Maps Platform APIs are billed by SKU.
- Usage is tracked for each Product SKU, and an API may have more than one Product SKU.
- Cost is calculated by: SKU Usage x Price per each use.
- For each billing account, for qualifying Google Maps Platform SKUs, a $200 USD Google Maps Platform credit is available each month, and automatically applied to the qualifying SKUs.
See guide to understanding billing for more information.
Pricing for the Distance Matrix API
Under the pay-as-you-go pricing model, Distance Matrix API requests generate one of two SKUs depending on the type of request: basic or advanced.
SKU: Distance Matrix
A request to the Distance Matrix API or the Maps JavaScript API’s Distance Matrix Service (excludes requests triggering the Distance Matrix Advanced billing SKU billing SKU).
MONTHLY VOLUME RANGE (Price per ELEMENT) |
||
---|---|---|
0.005 USD per each (5.00 USD per 1000) |
0.004 USD per each (4.00 USD per 1000) |
Contact Sales for volume pricing |
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.
SKU: Distance Matrix Advanced
A request to the Distance Matrix API or the Maps JavaScript API’s Distance Matrix Service that uses traffic information.
MONTHLY VOLUME RANGE (Price per ELEMENT) |
||
---|---|---|
0.01 USD per each (10.00 USD per 1000) |
0.008 USD per each (8.00 USD per 1000) |
Contact Sales for volume pricing |
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 or a
Maps JavaScript API’s Distance Matrix Service that uses traffic information.
Traffic information is used when all the following apply (these are the conditions required
to receive the
duration_in_traffic
field in the Distance Matrix response):
- The
travel
mode
parameter isdriving
, or is not specified (driving
is the default travel mode). - The request includes a valid
departure_time
parameter. Thedeparture_time
can be set to the current time or some time in the future. It cannot be in the past.
Other Usage Limits
While you are no longer limited to a maximum number of elements per day (EPD), the following usage limits are still 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.
- 1000 elements per second (EPS), 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.
Manage Your Cost of Use
To manage your cost of use of the Google Maps Platform APIs, you can set daily limits to all requests to any billable API.
To view or change daily billable limits for the Distance Matrix API, do the following:
- Go to the Distance Matrix API Quotas page in the Google Cloud Platform Console.
- From the projects list, select a project.
- In the Requests section, on the Requests per day line, click the edit icon, then enter the preferred total billable daily quota, up to the limit (if any) specified by Google.
If your API usage reaches your billable limit on any given day, your application will not be able to access the API for the remainder of that day.
Related resources
- Managing your billing accounts
- Modify a project's billing settings
- Viewing your cost trends with billing reports
- Setting budgets and alerts
- Capping API usage
- Optimization Guide for Google Maps Platform
- API Key Best Practices
Premium Plan Customers
As of November 1, 2018, Premium Plan customers can migrate to the Google Maps Platform pay-as- you-go pricing model once their current Premium Plan contract expires. Only contracts whose end date is November 1, 2018, or later, can migrate to Google Maps Platform. Contracts expiring prior to November 1, 2018 must be renewed on the Premium Plan. For more information, see the Maps Platform Migration Guide.
Premium Plan Usage Limits | |
---|---|
Google Maps Platform Premium Plan customers:
|
Additional benefits of a premium plan:
See the Premium Plan guide for more info. |