Closed cnaptik closed 5 years ago
@cnaptik The script is using v3 of the Google Maps API. If you are using the Autocomplete field, make sure your API key has access to the Places API:
This usually indicates an issue with your API key. Make sure you set the API key variable. Check that the API key has access to both the Maps JavaScript API, and if you are using the Autocomplete Field, the Places API. If you are still having trouble, follow Google's API key troubleshooting steps.
Additionally, make sure you only inserted the key in the variable on line 17, nowhere else in the code.
Thanks a lot for your very prompt answer!
It is now working. The problem was that I had inserted the key on both line 17 and line 148.
I get the following message after running the script:
Google Maps JavaScript API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys
My key is activated, no restrictions billing is enabled on Google Cloud Platform, and the key is inserted into the script. Could the issue be related to the application being writen for API v2?
Google's troubleshooting page reports the following:
https://developers.google.com/maps/documentation/javascript/v2tov3