How to Create Google Map API Key
1. Go to https://console.cloud.google.com/apis/credentials.
2. Login by using your Google Gmail account.
3. Create a new project, by clicking project on the top bar dropdown. Then, click the "New Project" button.
4. Create new project and enter the Project name.
5. Go to Credentials at the left sidebar
. Choose the created project name at the top, click "Create Credentials" and choose "API key" to create a new API key.
6. API key created. Click the copy icon to copy the API key.
7. Click inside the API key created.
8. Under "Application restrictions" > Choose "HTTP referrers(Websites)".
9. Under "Website restrictions" Click "ADD AN ITEM" to add the domain name.
a) Insert - domainname.com.my and click "DONE"
b) Insert - *.domainname.com.my/* and click "DONE"
c) Insert - *.domainname.com.my and click "DONE"
d) Insert - domainname.com.my/* and click "DONE"
10. Next, click the SAVE button.
11. Go to enabled API & services.
12. Enable these two APIs:
- Maps JavaScript API
- Places API