CargoCanvas / Examples / Geofencing

Geofencing

Three zones — a Polygon, a Circle and a Corridor — each wrapped in a Geofence watching a simulated truck. The fence fires enter and exit as the truck crosses each boundary, and dwell once it has stayed inside for 5 seconds. A 30 m hysteresis keeps GPS jitter on the fence line from firing bursts of events, which is what makes this usable with real trackers.

What to notice