A new Google Maps API key may be needed when setting up Google Maps for a new website, adding another Brilliant Directories license, or replacing an existing key that is not working correctly.


This article shows how to generate a new API key in Google Cloud. After the key is created, it should be restricted to the correct website domain and limited to the required Google Maps APIs.


Step 1 - Open the Google Cloud Credentials Page

Log in to the Google account connected to Google Cloud and open the Credentials page:


Open Google Cloud Credentials


Make sure the correct Google Cloud project is selected at the top of the page before creating the new key.


Step 2 - Create a New API Key

  1. Click Create Credentials.
  2. Select API Key.
  3. Google will generate a new API key.
  4. Copy the new API key.




The new key can now be restricted and added to the Brilliant Directories website.


Step 3 - Add HTTP Referrers

After creating the new API key, add the approved website referrers so Google knows which domains are allowed to use the key.


This usually includes the live website domain and the Brilliant Directories admin domain.


Google Maps: Edit HTTP Referrers.


Step 4 - Add API Restrictions

After adding the referrers, restrict the key to the Google Maps APIs used by the website.


This helps make sure the key is only used for the needed Google Maps services.


Google Maps: Add APIs.


Step 5 - Add the New Key in Brilliant Directories

  1. Log in to the Brilliant Directories admin.
  2. Go to Settings.
  3. Click General Settings.
  4. Search for Google Maps.
  5. Click the Integrations tab.
  6. Paste the new Google Maps API key into the Google Maps API key field.
  7. Save the changes.


The new Google Maps API key is now connected to the website.