geofenceSensor v1.0.1

by Waylay

This sensor will return

  • IN if the resource location in inside one or more of the provided list of geofences.
  • OUT if the resource location not inside any of the provided geofences.

Required properties:

  • list of geofences: e.g.
  • [ { "id":"Antwerp", "type": "circle", "coordinates": [51.2194, 4.4025], "radius": 10000 }, { "id":"Ghent", "type": "polygon", "coordinates": [ [51.089091, 3.606198], [51.110157, 3.869108], [50.995344, 3.878717], [50.995685, 3.628888] ] } ]
  • resource: the id of a resource with a location object
  • latMetricName: name of the resource metric that stores the latitude coordinate
  • longMetricName: name of the resource metric that stores the longitude coordinate