ArcGIS API for JavaScript: geofencing/geofencing (MapServer)

Built using the ArcGIS API for JavaScript