Fence Geotrigger
A Geotrigger that defines regions or fences to be monitored using a GeotriggerMonitor. You can monitor areas of interest with a FenceGeotrigger, using spatial rules like enter or exit. This type of operation is also known as "Geofencing".
Three main components comprise a FenceGeotrigger:
The GeotriggerFeed that is monitored for changes - usually the device location read from a LocationDataSource.
The FenceRuleType that describes the check that is performed with the feed and fence data - for example, "enters within 50 meters of".
The FenceParameters that the feed data are evaluated against. For example, a set of polygon features representing areas of interest. The FenceParameters can cover many features or graphics that are checked.
A FenceGeotrigger can also take into account floors within buildings. If the feature table used to create the FeatureFenceParameters is referenced by a FeatureLayer that is FloorAware, and the LocationDataSource used to create the GeotriggerFeed includes Location.SourceProperties.Keys.getFloor() information, then fences will only be entered when they are intersected by a Location on the correct floor. If the fence or location data does not include valid floor information, the floor is ignored and the fence is entered when it is intersected by the location.
A floor aware feature layer or table must be part of a GeoModel that includes a valid GeoModelFloorDefinition. All layers and tables that are used by the floor definition are loaded when the GeotriggerMonitor is started.
A Location can contain floor property as part of Location.getAdditionalSourceProperties(). This is populated automatically by IndoorsLocationDataSource, or can be supplied as part of your own implementation.
Constructors
Constructs a FenceGeotrigger.
Constructs FenceGeotrigger with an expression and a name.
Properties
Describes how a FenceGeotrigger uses accuracy information from a GeotriggerFeed. This property controls how the accuracy information from a GeotriggerFeed is used to provide the Geometry for checking a Geotrigger condition. In particular, you can choose how to use the Location.getHorizontalAccuracy() property to reflect the uncertainty around a fixed Location.getPosition(). Due to various factors, GPS positions may be inaccurate, with Location.getHorizontalAccuracy() representing a radius that defines the area containing the actual location. Spurious notifications may occur when the Location.getPosition() is inaccurate and is incorrectly reported as inside or outside of a fence. You can use the Location.getHorizontalAccuracy() to account for that uncertainty.
The FenceRuleType that describes the check performed with the feed and fence data. The rule controls the spatial query that will be used - for example "enter" or "exit".