Skip to main content
Geofencing lets you define circular geographic boundaries around physical locations (stores, events, competitor sites) and trigger actions when a customer’s device reports a location inside that boundary. Combined with the event ingestion pipeline and decision flows, geofences enable hyper-local, context-aware marketing.
Geofences use the Haversine formula for accurate distance calculations on Earth’s surface. All radius values are in meters.

Business Value


How It Works

1

Define geofences

Create geofence records with a center point (latitude/longitude), radius in meters, and trigger configuration (enter, exit, or dwell).
2

Receive location updates

Your mobile app or IoT system sends location updates to the Geofence Check API with the customer’s coordinates.
3

Match against active geofences

The engine calculates the Haversine distance from the customer’s position to each geofence center and returns all matches where the distance is within the radius.
4

Execute actions

Each matched geofence includes an action payload that your application uses to trigger the appropriate response (e.g., call the Recommend API, send a push notification, enroll in a journey).

Configuration

Creating a Geofence

Geofence Fields

Trigger Types

Geofence checks are stateless on the server side. Your mobile app is responsible for tracking enter/exit transitions and dwell time. The Check API tells you which geofences match a given coordinate pair at a point in time.

Checking Location

To check whether a customer is inside any active geofences:

Response


Integration with Decision Flows

A common pattern is to chain geofence detection with a Recommend API call:
  1. Mobile app detects location change, calls /api/v1/geofences/check
  2. If matches are returned, extract the decisionFlowId from the action payload
  3. Call /api/v1/recommend with the decision flow ID and customer context
  4. Display the personalized offer via push notification or in-app message
This keeps the geofence lightweight (just location matching) while the decision flow handles all business logic, scoring, and personalization.

API Reference

See the full Geofences API Reference for all CRUD endpoints, the check endpoint, field descriptions, and error codes.

Next Steps

Geofences API

Full CRUD and check endpoint documentation.

Event Ingestion

Feed location events into the trigger engine.

Triggers

Configure rules that fire actions based on events.

Channels

Set up push notification delivery via Firebase or webhook adapters.