Configuring Static Geo-Fencing:
- Go to Admin Menu -> Apps -> Manage Apps.
- Click on Create or Edit to create or modify an app.
- In the form builder, select the Location element and view the properties of the location element.
- Add other form elements as needed.
- Check the Enable Geofence checkbox under the location properties (unchecked by default).
- Enter the geofence address in the Select Geofence Location.
- Add the radius you want to cover (in meters).
- Choose between Strictly Restrict and Stop or Show Warning Alert and Continue.
- Publish the Application.
Configuring Dynamic Geo-Fencing:
Prerequisites for Dynamic Geo-Fence
To manage location-based information, a data table should be created with elements for storing location names, coordinates, and radius. Admins shall add the data of the locations to this table.
Additionally, to create a user information database with location access information, you can include the following elements:
- Username: This field stores the unique username of each user.
- Location name: This field stores the name of the location to which the user has access.
By including these elements, you can manage user information and their associated location access details in the database. The application can retrieve this information using the Get function. Geofencing is used to tag sites to their respective locations.
Application for Geo Fencing:
Example Use Case: To configure this Dynamic Geofencing application, consider the following scenario. Each employee is required to record their attendance using an application, but since there are multiple branches, employees must select the branch they belong to. To facilitate this, we need to create a data table containing the branch name, its specific latitude and longitude, and the radius. This data table will serve as a reference for the application.
If all branches require the same radius, there is no need to create a separate column for the radius. However, if different branches have different radius requirements based on their building infrastructure, it is necessary to include the radius column to assign the appropriate radius to each location.
- Go to Admin menu -> Manage Apps -> Create/edit app.
- Drag and drop Location element to capture user's current location. Click on Current location in Location properties.
- Add other form elements as needed.
- Drag and drop Data table reference, select branch details table.
- Choose site information Data table reference, select Location, Branch name and Radius as output elements.
- System displays Location, Branch name and Radius which has populated from Data Table reference in form builder.
- Click on Location element which has populated from Data Table reference.
- System shows properties of output Location element.
- Click on Enable Geofence below current location checkbox.
- System displays two radio buttons:
- Static Radius(System considers radius in meters)
- If Static radius is selected, then system displays a number field to enter the static radius.
- Admin must enter the desired radius, which is applicable for all the branch locations present in the Data Table.
- Dynamic Radius(System considers radius in meters)
- If Dynamic radius is selected, the system will use the radius specified for each location in the data table.
- Static Radius(System considers radius in meters)
- Choose the Radius output element for mapping the geofence range. Upon choosing it an option to choose restriction type:
- Strictly restrict and stop.
- Show warning alert and continue.
- Admin makes other necessary changes and clicks on Publish to save the changes.
Post Conditions
- When the user opens the application, the system checks their current location.
- After selecting the branch for attendance and continuing with the transaction, the user selects the location they need to access.
- The system verifies the user's current location, longitude, latitude, and the selected radius. If they match, the user can proceed.
- If the current location doesn't match the selected location or is outside the defined radius, there are two types of restrictions:
- Strict restriction and stop: A pop-up appears saying that the user cannot proceed with the transaction, and the .
- Show warning and continue: A warning is displayed indicating that the locations do not match. The user can choose to continue with the transaction despite the warning.