Page Builder
Other articles in this category
Search More Content
Get the API Key for Google Maps Module
The first step to setting the Google Map Module (Advanced module for Essentials and Pro BBWP packages) is to obtain the API Key from Google.
STEP 1: Go to https://console.cloud.google.com/ and login with your Google account. If you don’t have a Google account, or you plan to create a new one for this purpose, you’ll need to register first.
STEP 2: Once logged in, you’ll have to set up the Billing Account, as Google has made it mandatory to have an active billing account to use the Maps API. To set up your billing account, click the hamburger icon on the top left and select Billing or open this link https://console.cloud.google.com/billing/.
Google now provides $200 free credits to use its services and will only charge if all the credits are exhausted. The Google Map module uses the Maps JavaScript API, which has the following amount of free credits available to it.
You can check more details about Google’s Pricing Plans here.
STEP 3: After successfully setting up the Billing Account the next step is to obtain the API Key by following the steps mentioned in the following page https://developers.google.com/maps/documentation/javascript/get-api-key
STEP 4: After you’ve generated the API Key, the next step is to restrict it. Google has now made it mandatory to restrict the API Key for Maps to work. The restriction makes it easier to protect the Maps API from being misused.
Follow the steps mentioned in the following section to restrict the API key https://developers.google.com/maps/documentation/javascript/get-api-key#restrict_key.
STEP 5: Once you’re on the Restriction Page, it is very important to set the right kind of restriction so that you can use the Maps without any issues.
1. Select the HTTP Referrers from the list to restrict the usage to the websites.
2. The next step provides the option to restrict the API key for only the added sites. If you want to use the same API key on multiple sites, they leave it as it is.
3. In the next step, select the Map JavaScript API from the restrictions list and click Save to complete the setup.
STEP 6: The setup is now complete, and it is time to copy the API key and set up the Google Maps Module.
STEP 7: After copying the API key, head back to your BBWP website and paste your key in Client Settings > Modules Integrations > Google Map.