GeotriggersInfo

Information relating to a list of Geotriggers.

Referenced by: Webmap

Properties

Property Details
geotriggers[] A list of Geotriggers.

Geotriggers Info Example

{
  "geotriggers": [
    {
      "type": "fence",
      "name": "Example Geotrigger - Notify when I am within 50m of my target areas.",
      "feed": {
        "type": "deviceLocation",
        "filterExpression": {
          "title": "Location filter",
          "expression": "return $locationupdate.horizontalaccuracy <= 20"
        }
      },
      "fenceNotificationRule": "enter",
      "feedAccuracyMode": "useGeometryWithAccuracy",
      "enterExitRule": "enterIntersectsAndExitDoesNotIntersect",
      "fenceParameters": {
        "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
            }
          }
        }
      },
      "notificationOptions": {
        "expressionInfo": {
          "title": "Expression",
          "expression": "'You have entered' + $fencefeature.AREA_NAME"
        }
      }
    },
    {
      "type": "fence",
      "name": "Geotrigger 2",
      "feed": {
        "type": "deviceLocation"
      },
      "fenceNotificationRule": "exit",
      "fenceParameters": {
        "type": "features",
        "bufferDistance": 1000,
        "fenceSource": {
          "layerId": "1234",
          "type": "featureLayer"
        }
      }
    }
  ]
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.