How to Create a Google Maps API Key

Our Vizlly powered by Bookassist websites use a Google Maps application in order to display maps. Before you can go live with your new website, you will need to get a Google Maps API Key to ensure that the application will work on your website, and travel shoppers will be able to enjoy a better user experience.

Getting a Google Maps API Key is easy and will only take a few minutes of your time! Simply follow the steps outlined below, and be sure to send the API Key to your Success Manager once it’s created.

Note: You will need to sign in to the Google Cloud Platform using a Gmail or G Suite account before you can create a project and get an API Key.

Get Started

  1. Go to the Google Maps Platform.
  2. Click on the “Get Started” button.
  3. If you haven’t added Billing Details to your account, a new page will load to enable billing.

Enable Billing

You will need to set up a billing account to use a Google Maps API Key. Google provides a recurring $200 monthly credit of free usage, automatically applied each month.

For Dynamic Maps, which is what we use on our websites, this credit allows up to 28,000 loads per month for free. Additional loads of up to 100,000 loads in a month will incur a $7 charge. View the full pricing sheet.

Note: By signing up, Google will automatically provide you with a 12-month free trial with $300 in credit to spend over the next 12 months.

To enable billing:

  1. Select your country and accept the terms of service.Step_1.png
  2. Create your payment profile by filling in your contact and billing information.
  3. Select “Start Your Free Trial”.

Create a Maps API Key

  1. A new page will load with a welcome message. Select “Got It”.
  2. A new popup will load to Enable Google Maps Platform.
  3. Check off the “Maps” option and click “Next”
    Step_2.png
  4. A new popup will ask to select your industry and what you want to build. You can click “Skip”.
  5. In the next popup, select “Enable”.
    Step3.png
  6. Once you’ve enabled your APIs, your API Key will be generated.
    Step4.png
  7. Copy your API Key and send it to your Success Manager!

Once the API Key is created, follow these steps to secure your API Key and ensure that your maps will load properly on your website.

Secure Your API Key

Adding restrictions to your API Key will help prevent unauthorized use and quota theft.

  1. Go to your Google Console.
  2. Hover over APIs & Services and select “Credentials”.
    Step5.png
  3.  
  4. In the new page, select “Maps API Key”.
    Step6.png
  5. Under “Application Restrictions” check off “HTTP Referrers (web sites)”.
  6. Under “Website Restrictions” select “Add an Item”.
    Step7.png
  7. In the text box, add your website URL and select “Done”. Make sure the website URL is added in this format:
    https://www.yourwebsiteurl.com/*
  8. Click “Add an Item”, add this additional referrer and select “Done”:
    *.smartweb-04.bookassist.com/*
  9. Once the two referrers are added, click “Save” at the bottom of the page.

    Example using Leonardo.com (please be sure to use your own domain instead of Leonardo.com)

    API_Key_Update_1.png

Enable JavaScript & Checking Daily Quotas

Follow these steps to ensure that JavaScript is enabled and that there is no limit to how many times a map can load in a day.

  1. Go to your Google Console.
  2. Hover over APIs & Services and select “Dashboard”.
  3. Step10.png


  4. Click on “Enable APIs and Services”.
    Step11.png
  5. Select “Maps JavaScript API”.
    Step12.png
  6. In the new page, ensure that API is enabled and select “Manage”.

 Step13.png

  1. From the new page’s side panel, select “Quotas”.
    Step14.png
  2. Ensure that your map loads per day is set to “Unlimited”.

    Step15.png

Your Google Maps API Key set up is complete! Please remember to send your API Key to your Success Manager prior to going live with your new website, and if you have any questions, don’t hesitate to reach out to us.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request