Geofences for tracking objects in 2-D Euclidean space