How to create and embed Google Maps API key into your multifamily website?
Overview
In order to make the Google Map work on your multifamily website, you need to create Google Maps API Key and integrate it into your website. Since Google Maps is a paid service you first need to add billing information to your Google Cloud account.
How to add Billing to your Google Cloud account
- Login to your Google Cloud account using your Gmail at https://console.cloud.google.com/
- Once you are logged in, click the Main Menu located at the top left corner of screen, then click on Billing.
- On the Billing screen, click on the "Add Billing Account" button.
- Follow the instructions given to complete the setup of your billing account. Once you are done, you will be taken to the Dashboard of your Cloud account.
How to create a Google Maps API key
- Click Main Menu > IAM & Admin > Create a Project
- On the new project screen, enter the project name and select an organization. If you have added the organization name while adding your billing information, it will show up when you click on the "Browse" button. Choose the organization and hit the "Create" button.
- Once you are done creating the project you will be taken to the dashboard of that project. On this page click on APIs and Services under quick access.
- Now the next step is to enable three APIs; Maps JavaScript API, Places API and Geocoding API. We need to enable them separately. Let's enable the Places API first. On the following screen click Places API.
- Next, click on the Enable button to enable the Places API.
- Once the Places API is enabled, you will be taken to the Additional APIs screen. Click on the "Maps JavaScript API" to enable it too.
- You will now be redirected to the enable screen of Maps JavaScript API. Click on the Enable button to enable the Maps JavaScript API.
- Once the Maps JavaScript API is enabled, you will be taken to the Additional APIs screen. Click on the "Geocoding API" to enable it too.
- You will now be redirected to the enable screen of Geocoding API. Click on the Enable button to enable the Geocoding API.
- We now need to create credentials for the APIs we created and then create an API key. From the enabled APIs screen, click on Credentials from the left sidebar menu.
- On the credentials screen, click on Create Credentials > API Key
- Now that the API key is created, you can ensure that it's exclusively available for your domain by clicking on the "Restrict Key" button.
- On this screen give your API Key a name and then choose HTTP referrers (websites) under Application restrictions.
- You now need to add your website URLs under website restrictions. You need to add two URLs, one with * (asterisk) at the end.
- Click on the "Add an Item" button to add a URL.
- Add your full website URL with the "https" for example, https://stinger.beswifty.com/, and then hit the Done button.
- Again, follow the same method to add another URL with the * (asterisk) at the end. Click on the "Add An Item" button, add the second URL, and then hit Done.
- Once you are done with adding both the URLs, scroll down and choose "Restrict Key" inside API restrictions.
- Select "Maps Javascript API", "Places API" and "Geocoding API" from the Select APIs dropdown and then hit the OK button.
- Let's finish creating the credentials by hitting the "Save" button.
- We now have the API key created. Let's get the API key and get it added to your Swifty website. Navigate to Main Menu > APIs & Services > Credentials
- From the credentials screen, click on the Copy icon to copy the API key we just created for your website.
- Head to your Swifty website and navigate to Settings > Property Info
- Paste the copied key inside the "Google Map Key" text box, and hit the "Save/Update" button.
- You can add multiple website URLs to one Google Maps API key by editing it from the Credentials screen. Follow the instructions given in Step No. 13 of this article to access the Credentials screen. Click on the pencil icon to edit the API Key and follow the instructions given in Step No. 12 of this article to add a new website URL.
Related Articles
How to add directions link to the website from google maps
Login to the dashboard of your property website at manage.beswifty.com. In the left sidebar, navigate to Settings >Property Info Click on Property Info Select the Directions Link Type the Address to your property Click on the search bar Then Click on ...
How to enable the Resman API Integration
Login to the dashboard of your property website at manage.beswifty.com. In the left sidebar, navigate to Settings >integration Click on Integrations Click on Resman Click on Do You Want to Activate Resman API Integration Click on Yes Click on your ...
How to Enable the Translation in property website?
Steps: Login to the Dashboard of your property website at manage.beswifty.com. Navigate to Settings > Translate Settings. Toggle Yes for Google Translate. Select Languages from the drop-down menu you wish to add. If you want to remove a particular ...
How to add Colors to your property website?
How to add Colors to your multifamily website Please login to the dashboard of your property website at manage.beswifty.com. In the left sidebar navigate to Settings > Branding. On the Branding screen, click the Color Scheme tab. This is where you ...
How to add Logos to your property website?
Login to the dashboard of your property website at manage.beswifty.com. Navigate to Settings > Branding. Click on the Logos tab. You will see options to add different types of logos. Types of logos and their usage Primary logo white - This is a white ...