In Streams 4.0, the geospatial toolkit introduced a new operator called Geofence. The Geofence operator allows you to dynamically add or remove geographical regions of interest. As entities move in and out of these regions, the operator will provide entry and exit events.
This video demonstrates how you can use the Geofence operator to run a smart marketing campaign. The application monitors a number of cell phone users. As users enter or exit a predefined geofence area, they will receive marketing information based on their current location.
You may find the source code of this demo in the Sample project on Github here: Geofence Sample