You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/scripts/content/google-maps.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,11 +32,13 @@ By default, it will load on the `mouseover` and `mouseclick` events.
32
32
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).
33
33
::
34
34
35
-
Showing an interactive JS map requires the Maps JavaScript API, which is a paid service, the following costs will be incurred:
36
-
- $7 per 1000 loads for the Maps JavaScript API
35
+
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:
36
+
- $7 per 1000 loads for the Maps JavaScript API (default for using Google Maps)
37
37
- $5 per 1000 loads for the Geocoding API
38
38
- $2 per 1000 loads for the Static Maps API
39
39
40
+
However, if the user never engages with the map, only the Static Maps API usage ($2 per 1000 loads) will be charged.
41
+
40
42
Billing will be optimized in a [future update](https://github.com/nuxt/scripts/issues/83).
41
43
42
44
You should consider using the [Iframe Embed](https://developers.google.com/maps/documentation/embed/get-started) instead if you want to avoid these costs
0 commit comments