# enterExitSpatialRelationship

The spatial relationship that determines whether a fence polygon has been entered or exited. There are two spatial operations you can use to determine whether a feed entity has entered or exited a fence polygon.

Intersects: the feed geometry must intersect the fence polygon.

Contains: the feed geometry must be contained by the fence polygon.

These operations determine whether a fence polygon has been entered, and also when it has been exited (the feed geometry no longer intersects or is no longer contained by the fence polygon). Because the contains condition is more strict that intersects (a geometry can intersect another geometry without being contained by it) it tends to result in fewer notifications when the two geometries are nearby. By using different combinations of these rules for enter and exit, you can control the likelihood that notifications will be sent.

Note that when the feed geometry is a Point, there is no difference between intersection and containment, so both options behave the same. When using a LocationGeotriggerFeed, set FenceGeotrigger.feedAccuracyMode to FenceGeotriggerFeedAccuracyMode.UseGeometryWithAccuracy in order to create a polygon geometry that accounts for the area of uncertainty around a Location.position.

The default value is FenceEnterExitSpatialRelationship.EnterIntersectsAndExitDoesNotIntersect.

#### Since

200.1.0