0

I recently came accross an error in my production

This page didn't load Google Maps correctly. See the JavaScript console for technical details.

Upon looking into the console i found the below limit

To request more than 25,000 map loads per day, you must use an API key and enable billing

I got this error in production.When I logged in the my sandbox which no one uses,error is present over there as well.Seems like somehow this limit is share across the Orgs.I have a map on Account page. I feel there are two work around : First is to put a button above the map so that the map doesn't load whenever the user refreshes the page and Second is to caching my results anywhere in the db.

Can some one please share their views on this and let me know how the limit is calculated - org wise or combined

closed as off-topic by Sebastian Kessel, martin, Keith C, Mohith Shrivastava, Eric Feb 27 '17 at 22:44

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Programming questions not specific to Salesforce are off-topic here, but can be asked on Stack Overflow." – Sebastian Kessel, Mohith Shrivastava, Eric
If this question can be reworded to fit the rules in the help center, please edit the question.

1

Keep in mind these are google API limits, they have nothing to do with your org(s).

Limits are based off of your google developer api key for that service. So if you use the same developer key in multiple places, your orgs for example, then they all count against your limit.

Another thing to thing about is how you set this particular service up. There is a spot in the google developer api key console that you can allow this key to only be used from certain sites. So set your referrers up properly so your key can only be used from sites you intend it to be used from. Since it is a Javascript API your key can easily be seen and potentially used. But if you set up your referrers properly then it is only valid from sites you allow to use it.

  • Could you please elaborate on developer api key? – Samir Feb 27 '17 at 15:40
  • 1
    When you set up the service you have to get a key from developers.google.com to use in the script tag. – Jesse Milburn Feb 27 '17 at 15:49

Not the answer you're looking for? Browse other questions tagged or ask your own question.