Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google map api v3 + Google has disabled use of the Maps API for this application

Just came across this error today intermittently:

Google has disabled use of the Maps API for this application. See the Terms of Service for more information: http://www.google.com/intl/en-US_US/help/terms_maps.html.

somehow when I refresh the page, the map comes back again. I thought if it's a violation, it would have revoke the key permanently and not allow the map loads using this key anymore. Also, the error always happens at page load. I have yet to hit the error if it's already successfully loaded. I briefly read through the terms but couldn't find anything suspicious. Anyone can advise on how to go about this error? Should I be checking for some js error or the map terms? Thanks.

This is how the map script looks like:

<script src="http://maps.google.com/maps/api/js?v=3&sensor=false&libraries=places&key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" type="text/javascript"> </script>
like image 233
k80sg Avatar asked Jan 19 '13 00:01

k80sg


People also ask

How do I enable Google Maps API v2?

Click on the “APIs & auth” menu on the left, and from the submenu select APIs. From the list of APIs that appear, scroll down and ensure that Google Maps Android API v2 is set to “On”.

How do I disable Google Maps API?

Disable an APIGo to the API Console. From the projects list, select a project or create a new one. If the API Manager page isn't already open, open the console left side menu and select API Manager. Next to the API you want to disable, click Disable.


2 Answers

You could try the documented URL for the maps API script:

<script type="text/javascript"
      src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&sensor=SET_TO_TRUE_OR_FALSE">
    </script>

Where key is recommended but not mandatory and sensor is required.

(so this should work):

<script type="text/javascript"
      src="https://maps.googleapis.com/maps/api/js?sensor=SET_TO_TRUE_OR_FALSE">
    </script>
like image 81
geocodezip Avatar answered Nov 14 '22 20:11

geocodezip


I noticed the same issue this morning as well, I thought it was because I was using a subdomain of the domain registered with the API service, but it is happening to my actual domain as well.

I have removed the api key from the library url which seems to have fixed the problem for now, I will put it back when it starts working again. This must be an issue with Google's licensing servers since it is affecting their own websites as well.

like image 35
Ben Petito Avatar answered Nov 14 '22 19:11

Ben Petito