Geofence System
This module allows you to create, edit, delete, and view geofences. Define circular virtual boundaries around physical locations using GPS coordinates and a radius to validate employee attendance from the mobile app.
Features
- Geofence Group Management - Create and manage groups of geofence locations
- Circular Geofence Locations - Define locations with latitude, longitude, and radius
- Location Validation API - Mobile app validates employee GPS location against configured geofences
- Status Management - Activate or deactivate geofence groups and individual locations
Requirements
- Open Core Business Suite (Base System)
- GPS-enabled mobile devices
- Mobile app with location permissions
Installation
Enable via Admin Panel
- Log in as administrator
- Navigate to Settings > Addons
- Find Geofence System and click Enable
- Run migrations if prompted
Enable via Command Line
php artisan module:enable GeofenceSystem
php artisan migrate
Usage
Creating Geofence Groups
- Navigate to Attendance Management > Geofence Groups
- Click to add a new geofence group
- Enter group details:
- Name
- Code (unique identifier)
- Description (optional)
- Save the group
Adding Geofence Locations to a Group
- Navigate to Attendance Management > Geofence Groups
- Click on a group to view its details
- Add geofence locations with:
- Name
- Description (optional)
- Latitude
- Longitude
- Radius (defines the circular boundary in meters)
- Enabled/disabled status
- Save the location
Managing Geofence Groups
- View - See all geofence groups with their location counts
- Edit - Modify group name, code, and description
- Toggle Status - Activate or deactivate groups
- Delete - Remove groups (only if they contain no locations)
Managing Geofence Locations
- Enable/Disable - Toggle individual locations within a group
- Edit - Update location coordinates, radius, and details
- Delete - Remove individual locations from a group
Linking to Sites
Geofence groups are assigned to sites through the Site Attendance module:
- Go to Attendance Management > Sites
- View a site and enable attendance
- Select Geofence as the attendance type
- Choose the appropriate geofence group
Attendance Validation
When employees record attendance via the mobile app:
- The app captures the employee's GPS location
- The location is sent to the server for validation
- The server checks if the location falls within any geofence in the assigned group
- Attendance is validated or rejected based on the result
Related Modules
- Site Attendance - Site-based attendance management with geofence assignment
- IP Address Attendance - Network-based attendance validation
- Offline Tracking - Location tracking for field employees
Changelog: View version history