Google Maps API Key
Before you start learning this tutorial, you need to have a free Google Maps API key.
Start learning?
Before you start this tutorial, you need to apply for a designated API key on Google.
We can obtain an API key for free through the following steps.
Access the https://code.google.com/apis/console/, log in using your Google account.
After logging in, the following interface will appear:

Click the "Create Project" button.
Find it in the service list Google Maps API v3, Then click "off" to enable the server
In the next step, select "I Agree..." and then click the "Accept" button. Now you should see that Google Maps API v3 has changed to "on" status in the service list.
Then click "API Access" in the left menu, and you will see the following prompt in the right column: "Create an OAuth 2.0 client id...".
Click "Create an OAuth 2.0 client id...", a form will pop up, which requires you to enter your project name, project image or logo, and then click the "Next" button.
Then, we need to select the application type ("Web application": website application), then fill in your site address, and then click the "Create Client Id" button.
Finally, we can get the API key we need, as shown below:

Note: Save your API key! (You need to use this API key to develop all Google Maps applications at the specified URL you filled in).