Your 100% Free Checklist App

Start with our checklist templates, or create your own
Unlimited (sub)tasks, reminders, notes, attachments, sharing & much more

How to generate a Google Maps API key

How to generate a Google Maps API key

Starting June 2016, Google requires you to use an API key in order to place Google Maps on your site. The key is free and allows you free usage of up to 25,000 times. Beyond that, you will need to start paying. But most sites do not reach that limit.

Follow this checklist to create your own Google Maps API key:

Checklister

Channel: ChecklisterPublished on Sep 29, 2017


Visit the Google Maps Javascript API page

Visit Google Maps Javascript and click on the Get A Key button at the top right of the page.

If you are not already logged in, you will have to login to your Google account.

For those new to the Google world, you can easily register for your free Google Account.

Create or select your project

If you already have a project you wish to associate the key with, go ahead and select it. Otherwise, choose from the dropdown: "+Create a new Project".

Hit the Create And Enable API button when ready. Your key will be generated after a short while (a few seconds usually - but be patient if it takes a little longer).

Copy and save your Key

Now that you have the key, you can simply click the Copy icon to its right. Paste it into the code or app where you would be using it.

If you ever need your key, you can always visit the API console.

Secure your key

Google will count each time your API key is used on your site. If you go over 25,000, you will need to start paying. When placing your API key on your site, it is visible to others who can simply copy it and use it on their own site and have you pay for their use out of your quota.

To stop them, you simply tell Google that your key can only be used on your site (what is called an HTTP refferer). All you have to do is visit the Google API console, select your project and your key and set:
- Key restrictions: HTTP referrers (web sites)

A text box will appear:
- Accept requests from these HTTP referrers (websites) (optionals)

You will need to place the domain of your blog with a *. before and /* after . This simply means that it can be used on any page on your site. So if your domain is travel-blog.com then you should use:
*.travel-blog.com/*

Don't forget to hit the Save button.

WordPress Trip Plan Plugin

If you wish to use your Google Maps key in our Trip Plan WordPress plugin, you will need to head to its Settings page (found on the admin page navigation) and enter the key.


Checklister

Channel: ChecklisterPublished on Sep 29, 2017

This Checklist was posted by Checklister, a member of our community where everyone can post productive lists.

Publish Your Checklist.