objectInsideGeofence v1.0.10

objectInsideGeofence Sensor


Check if a coordinates are inside of a geofenced area.

States State is IN if the provided coordinates are iside any of the provided geofences.
  • IN
  • OUT

Raw data
  • device: coordinates of the device
  • result: IN or OUT for each coordinate pair

Properties
  • geofences: list of geofences:e.g.
            [
                {
                    "id": "Antwerp",
                    "type": "circle",
                    "radius": 10000,
                    "coordinates": { "latitude": 51.21989, "longitude": 4.4025 }
                },
                {
                    "id": "Ghent",
                    "type": "polygon",
                    "coordinates": [
                        { "latitude": 51.089091, "longitude": 3.606198 },
                        { "latitude": 51.110157, "longitude": 3.869108 }, 
                        { "latitude": 50.995344, "longitude": 3.878717 },
                        { "latitude": 50.995685, "longitude": 3.628888 }
                    ]
                }
    
        ]
        </pre>
    </li>
    <li> 
        coordinates: e.g.
        <pre>
        {
            "latitude": 51.2194,
            "longitude": 4.4025
        }
        </pre>
    </li>
    
# Required properties: - `geofences` - `coordinates`

States:

  • IN
  • OUT

Raw data:

  • device (object)
  • results (object)