Quick Insight
A geofence is a virtual perimeter defined by geographic coordinates, either as a center point with a radius or as a polygon of vertices, used to detect when a device or asset enters, exits, or stays within an area. It is typically stored as a geometry object, such as WKT or GeoJSON, and evaluated with point-in-polygon or distance calculations. The geofence is the boundary itself; geofencing is the practice of monitoring it and triggering actions.
Types of Geofences
- Circular (radius): A center point and a distance. Simple to set up, but rarely matches a building’s real shape.
- Polygon: A custom shape traced around a building, parking lot, campus, or neighborhood. More precise for irregular sites.
- Corridor: A buffer along a line, such as a delivery route or highway.
- Static: Fixed in place, such as a store boundary.
- Dynamic: Moves or changes, such as a boundary around a moving vehicle or a temporary event.
Circular vs. Polygon Geofences
| Circular | Polygon |
Setup | One point and a radius | A list of vertices or a footprint |
Fit to real buildings | Loose, overlaps neighbors | Close to the actual shape |
Best for | Open areas, quick tests | Malls, strip centers, campuses |
Device support | Native on mobile operating systems | Usually handled server-side or by SDKs |
What Makes a Good Geofence
- Accurate source location: The center point or shape must sit in the right place. POI data gives brand, category, and coordinates for millions of places.
- The right shape: Building footprint polygons trace a store’s actual walls, so an L-shaped store or a shared building doesn’t become a sloppy circle.
- Sensible size: Large enough for location signals to register, small enough to avoid catching passersby.
- Spatial context: Parent and child relationships, such as a store inside a mall, help decide whether to fence the store or the whole center. Our blog on polygon data explains how these shapes are made.
A caveat: a geofence is only as precise as the location signal checked against it. A perfectly traced polygon can still miss or misplace a device whose GPS reading is off by 20 meters indoors.
Want to learn more about how geofencing works?
Read our full guide: Geofencing: What It Is, Types, Accuracy & Setup Guide
Frequently Asked Questions
1. How many geofences can one app monitor at once?
Mobile operating systems set limits. iOS allows an app to monitor up to 20 regions at a time, and Android allows up to 100 geofences per app, so large programs often manage boundaries server-side.
2. Can a geofence have holes in it?
Yes. Polygon formats support inner rings, which are useful for excluding an area, such as a competitor’s store, inside a larger shopping center.
3. What file format are geofences stored in?
Common formats include WKT, GeoJSON, and KML. Most ad platforms and GIS tools accept at least one of these.
4. Can geofences overlap?
Yes. A device can be inside several at once, such as a store, its parking lot, and the surrounding mall, so rules need to handle overlaps.
5. How often should geofences be updated?
Whenever the place changes. Stores open, close, and move, so boundaries built from stale data quietly target the wrong spot.