> For the complete documentation index, see [llms.txt](https://dev.pointr.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.pointr.tech/features/geofencing/site-geofences.md).

# Site Geofences

A GPS geofence around your whole site that detects arrivals and departures, powers entry and exit notifications, and enables background positioning.

A **Site Geofence** is a special GPS geofence drawn around the boundaries of a site. When a visitor's phone enters it, the Pointr Mobile SDK knows they have arrived, even before indoor positioning takes over.

Each site has **exactly one** Site Geofence, and it belongs only to that site.

### What It Powers

| Feature                    | What the Site Geofence does                                              |
| -------------------------- | ------------------------------------------------------------------------ |
| **Geofencing**             | Detects when a visitor enters or leaves the site area.                   |
| **Geofence notifications** | Triggers messages to visitors as they arrive at, or leave, the site.     |
| **Background positioning** | Lets the SDK detect the site while the app is running in the background. |

{% hint style="info" %}
Site Geofences are GPS-based and circular. You'll always find them in the **GPS Geofences** folder of the Geofences panel.
{% endhint %}

### Find Your Site Geofence

1. Open the **Pointr Cloud Dashboard** and select your site.
2. In the left menu, click **Geofences**.
3. Expand the **GPS Geofences** folder.
4. Click **Site Geofence**. The map zooms to it and shows it as a blue circle around your site.

<figure><img src="https://2107440607-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX0ubTdDuDEByHfWtKKVg%2Fuploads%2F9sog4uIBRqYoEjwzKcad%2Fsite-geofence-panel.png?alt=media&#x26;token=0672d48a-2648-4555-a19c-4605a98e28c5" alt="The Site Geofence listed under GPS Geofences"><figcaption><p>The Site Geofence listed under GPS Geofences</p></figcaption></figure>

### Create Site Geofences Automatically

The quickest way to get started is to let Pointr Cloud create Site Geofences for you.

1. Go to the Pointr Cloud **Home** page.
2. In the **Auto-create geofences** banner, click **Auto-create**.
3. Pointr Cloud adds a Site Geofence to every site that doesn't have one yet.

<figure><img src="https://2107440607-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX0ubTdDuDEByHfWtKKVg%2Fuploads%2F4p78bfQ7tEfaxl0NJRRN%2Fauto-create-geofences.png?alt=media&#x26;token=7fcb6134-6038-4911-a56e-16b3921398cc" alt="Auto-create geofences on the Home page"><figcaption><p>Auto-create geofences on the Home page</p></figcaption></figure>

{% hint style="info" %}
A site card with an orange warning icon is missing a Site Geofence.
{% endhint %}

### Publish Your Geofences

New or changed geofences only reach your apps after they are published.

* **All sites at once:** once every site has a Site Geofence, the Home page shows a **Ready to publish** banner. Click **Publish All Geofences**.
* **One site at a time:** click **Publish** on that site's card.

<figure><img src="https://2107440607-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX0ubTdDuDEByHfWtKKVg%2Fuploads%2FFCRwnUz8oUkNkjvvHDJO%2Fpublish-all-geofences.png?alt=media&#x26;token=9ed62b03-4eb6-47f6-b03c-a1a36680041c" alt="Publish All Geofences from the Home page"><figcaption><p>Publish All Geofences from the Home page</p></figcaption></figure>

### Add or Edit a Site Geofence Manually

You can also create a Site Geofence yourself, or fine-tune one that was created automatically.

{% stepper %}
{% step %}
**Open the Geofences panel**

Open your site and click **Geofences** in the left menu. Click **Add new** and choose **Site Geofence**. To edit an existing one, select **Site Geofence** in the **GPS Geofences** folder instead.

<figure><img src="https://2107440607-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX0ubTdDuDEByHfWtKKVg%2Fuploads%2FUDLxYqyEGgB9logjqHzf%2Fadd-new-site-geofence.png?alt=media&#x26;token=8181932e-e69c-41a4-8482-829101cf4c8f" alt="Add new → Site Geofence"><figcaption><p>Add new → Site Geofence</p></figcaption></figure>
{% endstep %}

{% step %}
**Set the name and geometry**

Under **Metadata**, check the **Name**. When adding a Site Geofence a pre calculated geometry that covers the Site will already be applied. You can adjust it or draw a new circle on the map until it covers the whole site. You'll see **Geometry is set** when it's ready.

<figure><img src="https://2107440607-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX0ubTdDuDEByHfWtKKVg%2Fuploads%2F0AX6o8YXYJUFfcnabzAV%2Fadding-site-geofence.png?alt=media&#x26;token=e6833ba3-281b-4bcf-a9e9-93a0c4ded89d" alt="Adding a Site Geofence"><figcaption><p>Adding a Site Geofence</p></figcaption></figure>
{% endstep %}

{% step %}
**Save and publish**

Click **Add** (or **Save**), then publish your geofences as described above.
{% endstep %}
{% endstepper %}

{% hint style="warning" %}
Until a site has a Site Geofence, the Geofences panel shows a warning that background positioning is unavailable for that site.
{% endhint %}

### Set Up Entry and Exit Notifications

You can show visitors a message when they arrive at, or leave, the site.

1. While adding or editing the Site Geofence, open **Notifications for Pointr Express**.
2. In **Enter message**, type what visitors see when they arrive.
3. Choose a **Notification Frequency**: **Every time** or **One time**.
4. Choose a **Cool Off** period (15 mins, 60 mins, 1 day or 1 week). A notification is only sent again if more time than this has passed since the last similar event.
5. Optionally, add an **Exit message** for when visitors leave.
6. Click **Save**.

<figure><img src="https://2107440607-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX0ubTdDuDEByHfWtKKVg%2Fuploads%2FvctVmK0fLx8cJP1jim6S%2Fsite-geofence-notifications.png?alt=media&#x26;token=d524ae23-a8a3-42a7-b0c9-71bb9f4c4bc5" alt="Notifications for Pointr Express"><figcaption><p>Notifications for Pointr Express</p></figcaption></figure>

{% hint style="info" %}
These notifications only display in Pointr Express® apps. See Geofenced Notifications (in Pointr Express®) for details, or Acting on Geofence Events to handle them in your own app.
{% endhint %}

### Required Configuration

A Site Geofence only works once the right settings are turned on in your configuration.

#### Geofencing

* **Enable Geofences** must be on for any geofence to work.
* **Enable Geofence Notifications** must also be on if you want entry and exit messages. It requires geofencing to be enabled.

<figure><img src="https://2107440607-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX0ubTdDuDEByHfWtKKVg%2Fuploads%2F0i6LCu2uTuL5gBdI4Gp7%2Fgeofencing-configuration.png?alt=media&#x26;token=00a74098-f410-4ef4-9343-080a7dd594e5" alt="Geofencing configuration"><figcaption><p>Geofencing configuration</p></figcaption></figure>

#### Positioning

Site Geofences rely on positioning, so enable the settings that match how your app is used:

| Setting                           | What it does                                                  | When you need it                                                       |
| --------------------------------- | ------------------------------------------------------------- | ---------------------------------------------------------------------- |
| **Enable Positioning**            | Turns on positioning (the blue dot).                          | Always. The settings below depend on it.                               |
| **Enable GPS Positioning**        | Lets the SDK use GPS to detect geofences.                     | To detect the Site Geofence.                                           |
| **Enable Background Positioning** | Keeps positioning running while the app is in the background. | To detect the geofence and send notifications when the app isn't open. |

<figure><img src="https://2107440607-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX0ubTdDuDEByHfWtKKVg%2Fuploads%2FukAYfOk340mnOTgwIXVO%2Fpositioning-configuration.png?alt=media&#x26;token=20639e92-3fad-47f1-abdc-7ff367808319" alt="Positioning configuration"><figcaption><p>Positioning configuration</p></figcaption></figure>

{% hint style="warning" %}
Background positioning only works for sites that have a Site Geofence. If any are missing, click **Add Site Geofences** in the warning to add them for all your sites at once.
{% endhint %}

### Quick Setup Checklist

* [ ] Every site has a Site Geofence (auto-created or added manually).
* [ ] Each circle covers the whole site.
* [ ] **Enable Geofences** is on.
* [ ] **Enable Geofence Notifications** is on, if you use notifications.
* [ ] **Enable Positioning** and **Enable GPS Positioning** are on.
* [ ] **Enable Background Positioning** is on, if you need detection while the app is closed.
* [ ] Geofences are published.

### Troubleshooting

| Problem                               | What to check                                                                                                          |
| ------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| Background positioning is unavailable | The site has no Site Geofence yet. Add one, or use **Auto-create**.                                                    |
| Visitors don't get notifications      | **Enable Geofences** and **Enable Geofence Notifications** are both on, a message is set, and geofences are published. |
| Changes don't show in the app         | Publish the geofences from the Home page.                                                                              |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://dev.pointr.tech/features/geofencing/site-geofences.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
