ArcGIS Runtime SDK for iOS
100.15
|
Go to the source code of this file.
The spatial relationship that determines when a fence has been entered or exited.
When determining whether a feed entity has entered or exited a fence polygon, there are two spatial operations that can be used:
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 than 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 an AGSPoint
, there is no difference between intersection and containment, so both options behave the same. When using an AGSLocationGeotriggerFeed
, set AGSFenceGeotrigger::feedAccuracyMode
to AGSFenceGeotriggerFeedAccuracyModeUseGeometryWithAccuracy
in order to create a polygon geometry that accounts for the area of uncertainty around an AGSLocation::position
.
Enumerator | |
---|---|
AGSFenceEnterExitSpatialRelationshipEnterIntersectsAndExitDoesNotIntersect | The fence polygon is entered when it intersects an |
AGSFenceEnterExitSpatialRelationshipEnterContainsAndExitDoesNotContain | The fence polygon is entered when it contains the entity from an |
AGSFenceEnterExitSpatialRelationshipEnterContainsAndExitDoesNotIntersect | The fence polygon is entered when it contains an |
The possible ways an AGSFenceGeotrigger
uses accuracy information from an AGSGeotriggerFeed
.
This enumeration defines cases for using accuracy information from an AGSGeotriggerFeed
to provide the AGSGeometry
for checking an AGSGeotrigger
condition. In particular, you can choose how to use the AGSLocation::horizontalAccuracy
property to reflect the uncertainty around a fixed AGSLocation::position
. Due to various factors, GPS positions may be inaccurate, with AGSLocation::horizontalAccuracy
representing a radius that defines the area containing the actual location. Spurious notifications may occur when the AGSLocation::position
is inaccurate and is incorrectly reported as inside or outside of a fence. You can use the AGSLocation::horizontalAccuracy
to account for that uncertainty.
These values are used in conjunction with AGSFenceGeotrigger::enterExitSpatialRelationship
to affect when notifications are sent.
Enumerator | |
---|---|
AGSFenceGeotriggerFeedAccuracyModeUseGeometry | The reported |
AGSFenceGeotriggerFeedAccuracyModeUseGeometryWithAccuracy | The reported |
enum AGSFenceRuleType |
The rule or query that determines whether an AGSFenceGeotrigger
condition is met.
Enumerator | |
---|---|
AGSFenceRuleTypeEnter | Check whether objects from the |
AGSFenceRuleTypeExit | Check whether objects from the |
AGSFenceRuleTypeEnterOrExit | Check whether objects from the |