Geofence hysteresis is the use of different thresholds for entering and leaving a zone, so a device hovering at the boundary cannot rapidly flip between states.
A thermostat set to 20°C does not switch the heating on and off every few seconds as the temperature wobbles around that number. It heats until 20.5°C and does not restart until the room drops to 19.5°C. That gap between the switch-on and switch-off points is hysteresis, and it exists purely to stop rapid oscillation around a single threshold.
Geofences have exactly the same problem and the same fix.
A single boundary line means a single threshold. A device sitting near it, with positions scattered by GPS drift, produces readings on both sides. The system sees inside, outside, inside, outside — a state change every few minutes from a device that has not moved.
This is called flapping, borrowed from network monitoring where a link that repeatedly goes up and down causes the same trouble.
Hysteresis replaces the single line with two:
A device counts as having left only once it crosses the outer line, and counts as having returned only once it crosses the inner one. The band between them is a dead zone where no state change happens at all.
For this to work, the band has to be wider than the position error. With a device accurate to 20 metres, a 10-metre band achieves nothing — drift crosses both lines. A 50-metre band absorbs it.
The cost is responsiveness. A device that genuinely leaves is not reported until it has travelled past the outer boundary, so a wide band means later alerts. That trade — false alerts against alert latency — is the real design decision, and it depends on the use case. A child leaving school warrants a tight, responsive zone with more noise tolerance elsewhere. A trailer in a yard can afford a wide, quiet band.
There is a second approach that solves the same problem without touching the geometry: make the notification stateful rather than the boundary.
Instead of two thresholds, keep one boundary and track whether you have already alerted. Suppress repeats while the alert is open, and only re-arm once the device has genuinely returned. Geometric hysteresis prevents the state from flipping; state-based suppression lets it flip but stops the flips from reaching the user.
Geoblip uses the state-machine approach as its primary defence.
Each device-zone pairing carries an alertStatus of ok or alerting,
separate from the physical inside/outside flag. Exit notifications fire only on
the ok → alerting transition. While the status is alerting, further apparent
exits update the physical position but send nothing.
Re-arming requires a full alerting → ok → alerting cycle: the device has to
properly re-enter the zone — which sends a
recovery alert — before another exit can notify.
Drift oscillating at the boundary cannot complete that cycle. Genuine movement
can. The mechanism is described under
alert debouncing.
Why this rather than dual boundaries? Two reasons. It keeps the zone the user drew as the zone the system uses, so the map shows the truth rather than a nominal line with invisible buffers either side. And it does not delay genuine exits — the first real crossing alerts immediately, with no band to traverse first.
Whichever approach a system uses, you still control the zone size, and that is the most effective lever available to you. Draw boundaries with slack:
The geofence builder shows the real dimensions of what you draw, which makes it easy to check whether your margin is genuinely there.
Last reviewed 7 August 2026.
GPS drift is the apparent movement of a stationary device caused by errors in its reported position rather than by any real change in location.
Alert debouncing is the practice of suppressing repeat notifications for a condition that is already active, so a single real event produces a single alert.
GPS accuracy is how close a reported position is to the true location, usually expressed as a radius within which the real position probably falls.
Geofencing is the practice of drawing a virtual boundary around a real-world place and having software react when a tracked device crosses it.
Draw a zone, assign a phone or GPS tracker, and get a blip the moment it crosses the line. Free for 7 days.