Tagged: Google API, google maps, Google Maps API
Hi,
I have a valid API key which works well if I embed the maps via code block. As soon as I use the Google Maps Media Element I receive an error, because the same API key isn’t accepted in Enfold settings of my page. What am I missing?
Kind regards.
Hey tebitron gmbh,
Thank you for the inquiry.
The map coordinates (latitude/longitude) are missing. Please make sure to fetch the coordinates after specifying the address. Let us know if it’s still not working after retrieving the coordinates.
Best regards,
Ismael
Hi Ismael,
I have the coordinates but I can’t even add them because the API isn’t accepted in the settings.
Kind regards.
Hi,
Please provide the API key in the private field so that we can test it. Did you specify the HTTP referrers?
— https://developers.google.com/maps/documentation/javascript/get-api-key
To accept requests from the list of websites that you supply, select HTTP referers (web sites) from the list of Application restrictions.
Best regards,
Ismael
Hi Ismael,
sure – API attached.
Kind regards.
Hi,
This is the error that we got after attempting to validate the API key.
js?v=3.56&callback=av_backend_maps_loaded&key=AIzxxxx_AE_2AWxxxxxxx2OjTe-e3BUxHRG5nDBc:164 Geocoding Service: You must enable Billing on the Google Cloud Project at https://console.cloud.google.com/project/_/billing/enable Learn more at https://developers.google.com/maps/gmp-get-started
It says that you have to enable billing for your Google Cloud project. For more info on how to properly generate an API key, please review this documentation.
— https://kriesi.at/documentation/enfold/google-map/#how-to-register-a-google-maps-api-key
Best regards,
Ismael