> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fetchski-attract.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Maps

> Add the Google Maps key that draws your service area map, and keep it safe with Google's website restriction.

Your **Service Area Map** section draws its map with Google Maps. To do that, your site needs a Google Maps key, which you add once on the **Google Maps** card in Connections.

&#x20;**Who can do this:** Admins and Owners.

## Before you start

* **A Google Cloud account with billing turned on.** Google Maps needs a card on file. It includes a free monthly allowance.
* **Your site's web address**, such as `https://parkerspuppyplayland.example`, to limit the key to your site. Note whether it also opens with `www.` in front.

## Add your Maps key

**1. Open the card**

Open **Connections** from the toolbar or the command palette (⌘K, or Ctrl+K on Windows). The toolbar is the bar across the top of your site once you're signed in; see [The toolbar](https://docs.fetchski-attract.com/guides/get-started/toolbar-and-command-palette.md#the-toolbar). Under **Google**, choose **Google Maps**. Its badge says **Not set up**.

**2. Follow the setup guide**

**Setup guide — Google Maps key** links each Google Cloud page. In a Google Cloud project with billing on, turn on these 4 Google tools:

* **Maps JavaScript API**: draws the map.
* **Geocoding API**: lets visitors search for their address.
* **Distance Matrix API**: works out driving-distance price estimates.
* **Places API (New)**: suggests addresses as visitors type.

**3. Create a key**

In Google Cloud, create an API key and copy it.

**4. Limit the key to your site**

In the key's settings, under **Application restrictions**, choose **Websites**. Add one entry for each address your site runs on, ending in `/*` so it covers every page:

* `https://parkerspuppyplayland.example/*`
* `https://www.parkerspuppyplayland.example/*`, if your site also opens with `www.`

Under **API restrictions**, allow only the 4 tools above.

**5. Paste the key**

Paste it into **Maps JavaScript API key (public)**.

**6. Save**

Choose **Save**. The badge reads **Connected**, with "Maps key saved."

![The Google Maps card with the Connected badge and "Maps key saved.", the Setup guide — Google Maps key box, and the Maps JavaScript API key (public) field below it (key blurred).](https://mintcdn.com/fetchski-attract-api/MsE85fjBwOCKqNGh/images/cms/guides/connections/google-maps/guides-connections-google-maps-card-light.png?fit=max\&auto=format\&n=MsE85fjBwOCKqNGh\&q=85\&s=96a5837afcb5554add68350ed818459f)

The Google Maps card, with its setup guide and key.

## What happens next

Your Service Area Map sections can now show the map. Next, tell the map where your areas come from and where you are, on the **Service area map** screen. See [Service area map settings](https://docs.fetchski-attract.com/guides/site-settings/service-area-map.md).

## Good to know

* **This key is public on purpose.** Visitors' browsers use it to load the map, so it shows as plain text, not sealed like other keys. The website restriction is what keeps it safe: Google refuses it on any other site.
* **It's not the reviews key.** The Google Reviews card uses its own private **Places API key**, or your Google Business Profile sign-in. Keep this Maps key for maps only. See [Google Reviews connection](https://docs.fetchski-attract.com/guides/connections/google-reviews.md).
* **Site settings shows a copy.** The **Integrations (public)** tab in Site settings lists it as **Google Maps API key**. That copy is read-only and updates when you save Connections.
* **The map works with just the first tool.** Leave out the other 3, and the map still shows, without address search, price estimates or address suggestions.

## Troubleshooting

> [accordion] The map doesn't appear
>
> Check that the key is saved on the **Google Maps** card and that billing is on in Google Cloud. Then check the key's **Websites** list. It must include each address your site runs on, written like the entries in step 4: `https://`, then the address with or without `www.`, then `/*`.

> [accordion] Address search or price estimates don't work
>
> Turn on **Geocoding API** and **Distance Matrix API** in your Google Cloud project, and allow them in the key's **API restrictions**.

## Related

> [card] [Service Area Map section](https://docs.fetchski-attract.com/guides/sections/service-area-map.md)
>
> show the areas you serve on a page.

> [card] [Service area map settings](https://docs.fetchski-attract.com/guides/site-settings/service-area-map.md)
>
> map data, your location and pricing.

> [card] [Service areas](https://docs.fetchski-attract.com/guides/content/service-areas.md)
>
> add and draw the areas you serve.

> [card] [Connections](https://docs.fetchski-attract.com/guides/connections/index.md)
>
> every outside service your site uses.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.