Skip to content

Commit

Permalink
docs: add more detail to billing docs (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
kara committed Jun 11, 2024
1 parent 377c3c1 commit 7630bb7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/content/scripts/content/google-maps.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,13 @@ By default, it will load on the `mouseover` and `mouseclick` events.
You'll need an API key with permissions to access the [Static Maps API](https://developers.google.com/maps/documentation/maps-static/cloud-setup) and the [Maps JavaScript API](https://developers.google.com/maps/documentation/javascript/cloud-setup).
::

Showing an interactive JS map requires the Maps JavaScript API, which is a paid service, the following costs will be incurred:
- $7 per 1000 loads for the Maps JavaScript API
Showing an interactive JS map requires the Maps JavaScript API, which is a paid service. If a user interacts with the map, the following costs will be incurred:
- $7 per 1000 loads for the Maps JavaScript API (default for using Google Maps)
- $5 per 1000 loads for the Geocoding API
- $2 per 1000 loads for the Static Maps API

However, if the user never engages with the map, only the Static Maps API usage ($2 per 1000 loads) will be charged.

Billing will be optimized in a [future update](https://github.com/nuxt/scripts/issues/83).

You should consider using the [Iframe Embed](https://developers.google.com/maps/documentation/embed/get-started) instead if you want to avoid these costs
Expand Down

0 comments on commit 7630bb7

Please sign in to comment.