Geofence

A geographic fence

DesktopOperating SystemUWPWin32Windows

Properties

Name Type Description
id string Geofence identifier
geoshape object
monitoredStates array
singleUse boolean Whether the geofence is removed after first trigger
dwellTime string ISO 8601 duration required inside the geofence
startTime string
duration string ISO 8601 duration for the geofence lifetime
View JSON Schema on GitHub

JSON Schema

microsoft-windows-10-geofence-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Geofence",
  "title": "Geofence",
  "type": "object",
  "description": "A geographic fence",
  "properties": {
    "id": {
      "type": "string",
      "description": "Geofence identifier"
    },
    "geoshape": {
      "$ref": "#/components/schemas/Geocircle"
    },
    "monitoredStates": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "Entered",
          "Exited",
          "Removed"
        ]
      }
    },
    "singleUse": {
      "type": "boolean",
      "description": "Whether the geofence is removed after first trigger"
    },
    "dwellTime": {
      "type": "string",
      "description": "ISO 8601 duration required inside the geofence"
    },
    "startTime": {
      "type": "string",
      "format": "date-time"
    },
    "duration": {
      "type": "string",
      "description": "ISO 8601 duration for the geofence lifetime"
    }
  }
}