Google Maps is a web mapping service developed by Google.
Why connect my Google Maps account to Airsquare?
By connecting Google Maps:
- You can use our Google map widget in a way which doesn't set any cookies. If you don't connect Google Maps, then we use an old method of embedding which sets many cookies, which the cookie consent bar will block until consent given.
- You can use our Google multiple-location map widget, this won't work unless you have Google Maps connected.
- Maps embedded elsewhere on your site (e.g. event listings, organisation listings) also use the cookie-less embed method.
- During checkout, we offer a "find address" box for shipping / billing addresses allowing customers to quickly find their address and reduce the amount of typing required.
How do I connect Google Maps to Airsquare?
First you must have a Google Maps API key (see below on how to get one). Once you have an API key:
- In Airsquare, go to Account > Connected apps.
- Next to Google Maps, click Connect.
- Enter your Google Maps API Key
- Click Connect.
How do I get a Google Maps API key?
See this guide on how to setup a Google Cloud Account with Google.
Step 1 of this guide shows you how to setup a billing account with Google. If you're worried about being charged see "Will I be charged to use Google Maps" below.
Step 3 of this guide asks you to enable some APIs. You'll need to ensure the following APIs are enabled for your project in Google Cloud Console.
- Geocoding API
- Places API
Step 4 of this guide talks about getting a key and restricting it. At this point, switch to this guide.
You need to complete the "Get the API key" part and the "Restrict the API key" part. The API key you create is what you put into Airsquare (see "How do I connect Google Maps to Airsquare" above). For the restricting part see the help below.
How do I protect my Google Maps API Key?
When using embedding Google Maps on your website your API key is visible to anyone if they look at the code (easy to do).
If you don't secure your API key, by restricting how it's used, any bad actor could use your key to access other Google services, and bill to your account.
We strongly suggest you add the following restrictions to your API key.
Under Application restrictions, tick HTTP Referrers, and add these Website restrictions:
- *.yourwebsite.com/* (replace yourwebsite.com with your domain name!)
Be sure to save your changes.
Will I be charged to use Google Maps?
Google offer a substantial free tier.
They also give you a substantial lump sum to start with.
Unless you have a very large amount of traffic it's unlikely you'd go over this free tier.