Guide to creating Google Maps API for your custom domain
According to Google's new policy, we need an API to use Google Maps. Here's a guide to creating a Google API for Google Maps on your custom domain.
Guide to creating Google Maps API for your custom domain
- Go to https://console.developers.google.com/apis/library
- Click Select a project to create a new project. One project can contain multiple APIs. One API can be used for multiple websites, depending on your settings. Follow the steps shown in the image


- Fill in all the information and click Create

- Sau khi CreateThen select the project you just created and follow the steps shown in the image

- Here you have the API you need. Copy it to use. ClickRestrict Keyto continue setup

- Here, give the API a name so you know later which website or application it's for. Select Http referrers (web sites) as shown and enter your domain in the format *.your-domain.com/* and http://your-domain.com/* => then clickSaveto save the information

- This step is quite important. This step enables which libraries the API is allowed to use. We will enable the following libraries
- Google Maps JavaScript API
-
Google Maps Directions API
- Google Maps Embed API
- Google Maps Geocoding API
- Google Places API Web Service


- Sau khi Enable xong sang tab Dashboardwill appear as shown
