Google api INVALID_REQUEST

Google API

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.