- sending alerts if cattle leaves farmland
- checking if rental vehicles are only used within their designated areas
- react when a transport unit approaches its target to prepare offloading
With the Reactive Blocks SDK, you can now use our new library for geofencing in your applications. With this library, you can:
- Define geofences as polygons of coordinates
- Define geofences as a radius around a coordinate
- Monitor if a unit enters or leaves the geofence
- Monitor if an entire fleet of units enter or leave the geofence
The geofence is read in from a *.kml file that contains a polygon. You can create such files for instance with Google Earth. To make the demo self-contained, we simulate the positions of the units. For that, we use again a polygon from a *.kml file, and push out each coordinate from the polygon, one at a time. The blue polygon will be our geofence, spanning around the inner city of Trondheim. The red polygon is the route that is simulated:
In Reactive Blocks, the application looks as simple as this:
- The route simulator block periodically sends the coordinates of the simulated route. In a real system, this would be for example live GPS data.
- The route data is fed into the geofence, that was previously initiated with the data of the blue polygon from a *.kml file.
- If our simulated unit crosses the geofence, we get different alerts, depending on entering or exiting the geofence.
- Send an SMS, with a simple block for Twilio
- Send an Email, via Amazon Simple Email Service
- Forward the alert with the blocks for MQTT
- Create your own building block and do anything else






