Fence parameters for a Geotrigger that uses feature data from an online feature service, offline geodatabase table, or layer within a feature collection.

Referenced by: Fence Geotrigger

Properties

PropertyDetails
bufferDistanceAn optional buffer distance to apply to fence features in meters.
fenceSourceAn object defining the source for a feature layer to be used as fences.
Must be one of the following values:
filterAn optional filter to reduce the features used for the parameters.
See filter properties table.
typeString indicating the fence parameters type.
Valid value of this property features

filter properties

PropertyDetails
geometryA geometry used to filter the features from a feature table. Any features that intersect the area of interest will be used. It can be any of the supported geometry types.
whereA SQL-based where clause that narrows the data to be used. Any features that satisfy the query will be used.

Fence Geotrigger Example

{
"type": "features",
"bufferDistance": 50,
"fenceSource": {
"layerUrl": "http://sampleserver6.arcgisonline.com/arcgis/rest/services/Recreation/MapServer/0",
"type": "featureLayer"
},
"filter": {
"where": "facility = 6",
"geometry": {
"x": 13871520.850500003,
"y": 3910293.086000003,
"spatialReference": {
"wkid": 102100,
"latestWkid": 3857
}
}
}
}