Google api INVALID_REQUEST

If you are experiencing an INVALID_REQUEST error with Google API this may be due to the fact that you are calling the API in too rapid succession.

The solution is therefore to add a delay of 3-4 seconds between each request.

Google API HTTP referrer not allow on localhost cordova

A possible fix could be that the entry localhost:port/* is needed in authorized HTTP referrers.

Entering a specific port number doesn’t work with wildcard. Enterpring ‘port’ for some reason seams to work.

http://stackoverflow.com/questions/9321816/google-maps-v3-api-key-local-computer-error-googlegoogle-has-disabled-use-of-th

 

Alternative Fix:

Create a new API key and leave the HTTP referrer blank. Use the development API key on you local host instances and use a production API on you production instances.