Northwind Electronics ENTERPRISE
#510

Geofencing

Define work areas on a map; check in only inside them; get ENTER / EXIT events as people move.

Technique: Haversine distance for circles, ray casting for polygons, state change events
Read the code: src/main/java/com/study/advlab/geofence/GeoMath.javasrc/main/java/com/study/advlab/geofence/GeofenceService.java
Central Bangkok click the map to move yourself there
Zones right now
  • Head office work -
  • Warehouse work -
  • Customer site: Central Park work -
  • Restricted: Data centre no-go -
Events ENTER / EXIT / CHECK_IN / DENIED
  • Move on the map to create events.
Zones
  • Head office · 450 m circle
  • Warehouse · 4-point polygon
  • Customer site: Central Park · 380 m circle
  • Restricted: Data centre · 4-point polygon
Circle: click the centre. Polygon: click the corners, then Save.