# Geofence

Geofences are reusable location boundaries.

Use them to define physical areas like stores, branches, airports, or event venues. After you create and publish a geofence, Netmera can use it as a trigger for location-based messaging and targeting.

<figure><img src="/files/NuLIXgQTwzhFVYEOS7xF" alt="" width="563"><figcaption></figcaption></figure>

**Path:** `Targeting > Geofences`

{% hint style="info" %}
**Quick steps**

1. Create a geofence with a **circle** or **polygon**.
2. Name it and optionally assign a group.
3. Save the geofence.
4. Publish it to devices.
5. Use it in [Geofence Messaging](/netmera-user-guide/messaging-features/geofence-messaging.md).
   {% endhint %}

### Geofences tab overview

The **Geofences** tab lists the locations you already created.

From this view, you can:

* review geofence names and IDs,
* see the assigned group,
* check **entry** and **exit** counts,
* review status as **Active** or **Passive**,
* and use row actions to edit, delete, or publish.

Use the search field to find a geofence or group by name.

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

### Create a geofence

Go to **Targeting > Geofences > Create Geofence**.

{% @arcade/embed url="<https://app.arcade.software/share/VCfmzpV75AOzoK8pCHUe>" flowId="VCfmzpV75AOzoK8pCHUe" %}

1. Enter a **Geofence Name**.
2. Optionally assign or create a **Group**.
3. Choose how to define the area:
   * **Circle** — set a center point and radius.
   * **Polygon** — draw a custom shape on the map.
4. Select the location by search or directly on the map.
5. Adjust the size or outline of the area.
6. Click **Save**.

#### Circle vs polygon

Use **Circle** for simple radius-based areas like a store or branch.

Use **Polygon** when the area shape matters, such as malls, campuses, or irregular outdoor spaces.

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

### Publish geofences to devices

After you save a geofence, publish it so devices can receive the updated location definitions.

1. Open the **Geofences** tab.
2. Find the geofence you want to publish.
3. Click **Publish to Devices**.

<figure><img src="/files/5entJOtutH7vHCpevLrP" alt="" width="236"><figcaption></figcaption></figure>

{% hint style="info" %}
**Why publish is required**

Publishing sends the updated geofence definitions to devices with a **silent push**. Without this step, devices may not use the latest location setup.
{% endhint %}

### What you can do next

After a geofence is published, you can:

* use it in [Geofence Messaging](/netmera-user-guide/messaging-features/geofence-messaging.md),
* group multiple locations under one structure,
* and monitor entry and exit counts from the geofence list.

### Best practices

* Use clear names like `istanbul_kadikoy_store`.
* Group related locations if the same campaign logic applies to all of them.
* Keep the radius tight enough to avoid accidental triggers.
* Re-publish after any geofence update.


---

# 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://user.netmera.com/netmera-user-guide/targeting/geofence.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.
