How to generate Google Maps API?

An API key is created to access the Google Map. Therefore, in order to use Google Map on your site, you should go to the Google API Console and get your own key.

Creating a Google Maps API key

Go to Google Maps Platform and click the “Get Started” button.

Then You will be redirected to Step 1 of 3 of the account registration. Select your country and choose your organization type. Next, check the Terms of Services checkbox, and after that, click Continue.

Step 2 of 3 will have a series of steps that you need to follow. Here, you need to mention billing details and the Project.

First, Create a billing a/c, add its name, and click next.

In the second step, you need to fill in the address details and select an a/c type. Also, don’t forget to mention your card details.

Please Note: – You will get a $300 credit as a free trial. When this credit end, you will get up to 28000 map requests and 40,000 direction calls per month, absolutely free. You will only be billed when your usage exceeds your monthly $200 credit limit.

Please refer to Google’s documentation for more information about the free trial.

Google Map will ask you more questions in the next window, like your purpose of using the map platform, the industry you belong to, etc., just basic questions.

After you have answered all the questions, click on the Submit button.

And, here is your Google Map API key generated; copy this key from here and paste it into the Map Engine Settings.

If you wish, you can Build a Demo or click on Maybe later.

In order to secure your account from unwanted usage, it’s recommended to restrict your API key.

Enable required API functions

Now, you need to enable the required API for the Project. The JavaScript API will be probably enabled, but you need to enable it if not.

Click on the required function and enable it.

Here’s the list of all the APIs that need to be enabled:

  • Google Maps JavaScript API
  • Google Maps Geocoding API
  • Google Places API
  • Google Maps Directions API