Glossary · Virtual boundary

What is a geofence? Indoor geofencing explained

A geofence is a virtual boundary drawn around a real area, such as a room, a loading bay or a site, that triggers an action when a tracked person or asset enters, leaves or stays inside it. Indoors, the boundary is drawn on a floor plan and driven by indoor positioning, because GPS is unreliable inside buildings.

Also written: Geo-fence, Indoor geofencing

Last updated:

What a geofence is

The term comes from GPS and mobile apps: a virtual perimeter around a real place that fires an event when a phone crosses it. A geofence has two parts. The shape is a circle or, more often indoors, a polygon: a room, a bay, a door zone or a floor. The rule says what happens when something is detected relative to that shape.

Indoor geofencing applies the same idea inside buildings. The shape comes from a floor plan, the positions come from an indoor positioning system such as RFID, BLE or UWB, and because buildings have several levels, a geofence has to know which floor it belongs to.

What a geofence can trigger

Most rules fall into four kinds:

  • Enter — a tag appears in a restricted area, or a tool arrives at a workstation.
  • Exit — equipment leaves its department, or stock leaves the store room.
  • Dwell — something stays longer than a set time: a trolley parked in a corridor, a person in a hazard zone.
  • Count — more than a set number of tags in a zone, a simple occupancy limit.

What makes indoor geofences work or fail

Geofences usually fail for a few reasons:

  • Accuracy against zone size — a system that locates a tag to within a few metres cannot police a boundary half a metre wide. The zone has to be bigger than the positioning error, or the alerts will be wrong.
  • Edge flicker — a tag near a boundary can appear to step in and out as readings jitter. Good systems wait a few seconds, or add a margin, before firing.
  • Floors and walls — a tag one level up, or behind a thin wall, can read as inside. Geofences need the floor, and zones should follow the walls.
  • Update rate — a position refreshed every few seconds can miss a fast vehicle crossing a small zone.

Where indoor geofencing is used

Hospitals use it to notice equipment leaving a ward. Warehouses mark pedestrian-only zones and forklift lanes. Retailers watch stock leaving the stock room. Secure sites record who entered a restricted room and when.

Geofencing people also raises privacy duties. Tell staff what is tracked and why, keep only the data you need, and check the local rules before you switch it on.

Geofences in Spatial Map: what exists and where it stops

Spatial Map has no separate geofence engine and does not compute positions. What it has is three parts that together cover the common cases:

  • Rooms. The areas you draw on a floor plan are the zones. When a connected RTLS sends positions, Spatial Map finds the smallest room on that floor that contains each tag and stores it in the tag’s Room field.
  • Room visits. A visit opens when a tag enters a room and closes when it leaves, with the time entered, the time left and the minutes in the room, in a Room visits table. These come from a connected RTLS; today the built-in driver is for BlueIOT.
  • Alert rules on a table. A rule can fire when a row matches (for example, where the room is the pharmacy store), when it matches for N minutes (a dwell alert), when the number of matching items passes a threshold (an occupancy limit), or when a row has not updated for N minutes. Rules are checked every 15 seconds, carry a severity and a message, notify roles or members, resolve themselves when the item is back to normal and have a Show on map button.

What it does not do

Alerts are delivered in the app only (bell, toast and the Alerts page), with no email, SMS or push, and nothing is written back to other systems. The restricted-area alarms of a BlueIOT server are mirrored as alerts, but those areas are defined in the RTLS server, not in Spatial Map. For positions sent through the table write API or REST polling, send the room or zone as a field and the same rules apply.

So “tell me when a tagged item has been in this room for more than ten minutes” is a rule on a table. “Call my system the second a coordinate crosses a polygon” is not something Spatial Map does.

See it on your own floor plan.

Start a 7-day free trial with no credit card, or open a demo facility with live data.