Feature Fence Parameters
Geotrigger fence data created from features. The features that create a FeatureFenceParameters provide a set of geometries (and attributes) that define targets for the Geotrigger. For example, if the condition is "notify me when my position comes within 50 meters of one of my target areas", the fence data are "my target areas" and each Feature is one target area.
Create a FeatureFenceParameters using a FeatureTable. The features can have point, line, or polygon geometry. For points and lines, you must also supply a FenceParameters.getBufferDistance(). Each feature in the table represents a single fence.
You can filter features using attributes or geometry by supplying a where clause. For example, you could further refine "my target areas" to be "my target areas that are open and are in California".
The number of features fetched by querying an online table is limited by the layer's ArcGISFeatureLayerInfo.getMaxRecordCount(). Service feature tables that support pagination (ArcGISFeatureLayerInfo.getSupportsPagination()) are not subject to the maximum feature count limit.
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
Creates a FeatureFenceParameters using all of the features in the FeatureTable.
Creates a FeatureFenceParameters using all of the features in the FeatureTable.
Properties
A buffer distance in meters to apply when checking if a FenceGeotrigger condition is met. For example, if the rule is "enters within 50 meters" you use a FenceGeotrigger.getRuleType() of FenceRuleType.Enter and set this property to 50.
A where clause that defines the features from the FeatureTable to use as fences. The string that is used as the FeatureFenceParameters.getWhereClause() should follow standard SQL syntax similar to what is discussed in the document https://pro.arcgis.com/en/pro-app/latest/help/mapping/navigation/sql-reference-for-elements-used-in-query-expressions.htm.