Google Maps Chi...login
Google Maps Chinese API Manual
author:php.cn  update time:2022-04-14 16:36:56

Google Maps API


Google MapsAPI Key


Before starting this tutorial, you need to have a free Google Maps API key.


Start learning?

Before starting this tutorial, you need to apply for a designated API key on Google.

We can get the API key for free through the following steps.

Visit https://code.google.com/apis/console/, Log in with your Google account.

After logging in, the following interface will appear:

create_project_API.png

Click the "Create Project" button.

Find Google Maps API v3, in the list of services and click "off" to let it turn on the server

In the next step, select "I Agree ..." and click the "Accept" button. You should now see that Google Maps API v3 is "on" in the list of services.

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..." and a form will pop up. The form requires you to fill in your project name, project picture 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:

api_key.png

lamp.gifNote: Save you API key! (You need to use this API key to develop all Google Maps applications at the specified URL).

php.cn