These steps should be completed in order to have Google Maps working correctly with eDirectory:
TABLE OF CONTENTS
- Creating/selecting a project on Google API Console
- Creating an API Key
- Inserting the Maps API Key in the sitemgr
- Activating Google Maps/Linking a credit card to the Google Project
- How can I know if my new Key is working?
1- Creating/selecting a project on Google API Console
- While logged in with your Google Account, access the Google Cloud Platform's API Console
- Select a project or create a new one
- If you already have a project created, go to step 6.
- If you don’t have a project yet, click on “New Project“
- Insert your Project name, location or folder, and click on “Create“.
- Now, select the project you want and click on “Open“.
- Go to "Library"
- Select Maps “View All”
- Click on Geocoding API and Maps JavaScrip API
- Select “Enable” on both of them
3- Creating an API Key
- Go back to the previous screen, click on Credentials > Create credentials > API key
- On the next screen, click on “Restrict Key“
- Now, give a name to your Key and add an HTTP referrer to restrict the key usage to your domain. Input all the variations for your website. Use the wildcard (*) to represent variations.
Replace the "yourdomain.com" for your own domain info.
- You will be redirected to the following screen. Copy the key code by clicking on the "Copy API key" icon and go back to your Edirectory.
4- Inserting the Maps API Key in the sitemgr
- While logged in on your sitemgr, go to Settings > Google Integrations > Google Maps. Insert the code copied before, click on "Enable Google Maps", then click on “ Save Changes“
5- Activating Google Maps/Linking a credit card to the Google Project
Now, a credit card must be linked to the Google project in order for Google Maps to work correctly. Google only charges for significant traffic, but linking a billing account is mandatory.
Information about billing and pricing can be found at Google Maps Platform Billing and
- Access the Google API Console using the same Google account used to create the API Key
- Find for your project to make sure Billing will be enabled on the correct Google project
- Select your Project
- Open the side menu and click on Billing
- Select "LINK A BILLING ACCOUNT"
- You can choose an existing billing account or create a new one
6- How can I know if my new Key is working?
- On sitemgr, click on Settings > Basic Information, insert any information on the Address boxes and then click outside of the box, if a map was generated your API was configured correctly.
The most common error is related to not enabling Billing on the Google Cloud Project. Please refer to step 5 and check again.
Note: If your API key was configured after creating a listing, it’s necessary to go to your listings and click on any boxes of address, then click outside of the box to generate the map, or just insert the address again.
If you have any questions, do not hesitate to contact us at firstname.lastname@example.org