# Google Map

Adds a possibility to use Google Map and grab the address of the place marked by customer.

⚠️ In order to use this option a valid API key must be added on the [plugin's settings page](/uni-cpo-4-documentation/usage/plugins-settings.md). These are steps you have to do to create a proper google app and grab a valid API key:

* Go to [Google's Dev Console](https://console.developers.google.com/) and create a new project
* Open **Library** tab and enable these two APIs: **Geocoding API** and **Maps** **JavaScript API**
* Open **Credentials** tab and click on Create credentials blue button, choose \_API key \_type

![](/files/-M50Y1gwK18lHSwza5Mr)

* Configure the credentials properly and use its API key in the plugin (copy and paste on the plugin's settings page)

This option does the following:

* allows adding Google Map to the product form
* allows creating a marker on the map and turns the marker's LatLng into address
* sets the address as option's value and sends it to cart/order meta

This option *does not* calculate a distance or anything like this.


---

# 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://kb.moomoo.agency/uni-cpo-4-documentation/usage/options/google-map.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.
