Anthony White
Forum Replies Created
-
Forum: Plugins
In reply to: [The Events Calendar] Google MapsHi @erishel, I too am having the same issue as those listed above.
Currently, I have The Events Calendar Version 4.6.23.
I am getting the following error message:
Geocoding Service: This API project is not authorized to use this API. For more information on authentication and Google Maps JavaScript API services please see: https://developers.google.com/maps/documentation/javascript/get-api-keyIn my Google Cloud Platform Console I have my Project setup, with a Billing Account attached to it, and in the Project I have Maps JavaScript API enabled. I have one Credential API key on the Project and connected to the Maps JavaScript API.
I have the following Key restrictions:
- Application restrictions: HTTP referrers
- API restrictions: Maps JavaScript API
My Accept requests from these HTTP referrers (web sites) are:
- example.com/*
- .example.com/*
- *example.com/*
- *.example.com/*
While it’s obviously slightly outdate, as you mentioned, I have followed The Events Calendar knowledgebase guide to setup the API.
Still, as I mentioned the error message above, it is still not working.
In problem solving, I also enabled the Geocoding API and added it to the Credential Key’s API Restrictions list. Interestingly, this removed the error on the site and allowed the map to display.
I am confused though, as the The Events Calendar knowledgebase guide says that only the Maps JavaScript API is needed for the basic The Events Calendar and that the Geocoding API is only needed for The Event Calendar PRO’s geolocation lookups.
In looking at Google’s Documentation on the Maps JavaScript API Billing (SKU: Dynamic Maps) and Geocoding API Billing (SKU: Geocoding) they are billed completely separate. I checked Google’s Maps Platform Pricing Calculator and do see they are billed separate and the Geocoding API Billing (SKU: Geocoding) doesn’t include the $200 monthly credit like the Maps JavaScript API Billing (SKU: Dynamic Maps) does.
So, ultimate question now is, does the basic version of The Events Calendar now require the Geocoding API to be enabled along with the Maps JavaScript API in order for the maps aspect to function? Or am I missing something?
Thanks!