# Google Maps API

<figure><img src="/files/sCGvYfms6a1jLExRB4xE" alt=""><figcaption></figcaption></figure>

With DingDoong, you can embed a Google map under the date picker so your customers can find the pickup location faster.

<figure><img src="/files/HmwggDvXwIwIng7Ez8mc" alt=""><figcaption></figcaption></figure>

All you need is to give the app a Google Maps API key so it can fetch the map upon request.

## <mark style="background-color:purple;">How to get the API key:</mark>

**Step 1: Choose or create a new project**

1. Go to the [Google Cloud Console](https://console.cloud.google.com/home/dashboard)
2. Click the project drop-down and select or create the project for which you want to add an API key&#x20;

**Step 2: Create an API key**

1. Click the menu button and select Google Maps Platform > Credentials
2. On the Credentials page, click + Create Credentials > API key&#x20;

**Step 3: Enable Places API**

1. Click the menu button and select APIs
2. On the APIs page, choose Distance Matrix API and enable it

{% embed url="<https://www.youtube.com/watch?v=aVnen2Yc2UI>" %}

{% hint style="success" %}
You can use the same API key and enable **Distance Matrix API** if you also use Delivery conditions feature and want to specify permitted areas for delivery by radius or driving distance.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.dingdoong.io/store-pickup/google-maps-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
