简体   繁体   中英

Google Maps Javascript API client side billing

According to the Google Maps Javascript API billing documentation each new map created with the google.maps.Map() costs '0.007 USD' (at the time of writing). As this code is executed on the client, if a client runs while(1) { new google.maps.Map(); } while(1) { new google.maps.Map(); } , or equivalent, would that incur charges until stopped by the google maps console per user / global quota?

Based on the documentation , Maps JavaScript API is billed per map load and map loads are generated every time a map is created with the google.maps.Map() class.

So if you have a loop that calls the google.maps.Map() class inside and creates multiple map loads, you will be billed for those generated map loads. It will only stop once your loop is stopped or if you have reached the maximum number of requests per day(QPD) which initially is set to unlimited . So make sure that your implementation is optimized to avoid unnecessary charges.

If you still need further clarifications with this, feel free tocontact Google Maps Platform support .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM