Configuring Geo Fencing
  • 3 Minutes to read
  • Contributors

    Configuring Geo Fencing


      Article Summary

      Configuring Static Geo-Fencing:

      1. Go to Admin Menu -> Apps -> Manage Apps.
      2. Click on Create or Edit to create or modify an app.
      3. In the form builder, select the Location element and view the properties of the location element. 
      4. Add other form elements as needed.
      5. Check the Enable Geofence checkbox under the location properties (unchecked by default).
      6. Enter the geofence address in the Select Geofence Location.
      7. Add the radius you want to cover (in meters).
      8. Choose between Strictly Restrict and Stop or Show Warning Alert and Continue.
      9. 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:

      NOTE

      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.

      1. Go to Admin menu -> Manage Apps -> Create/edit app.
      2. Drag and drop Location element to capture user's current location. Click on Current location in Location properties.
      3. Add other form elements as needed.
      4. Drag and drop Data table reference, select branch details table.
      5. Choose site information Data table reference, select Location, Branch name and Radius as output elements.
      6. System displays Location, Branch name and Radius which has populated from Data Table reference in form builder.
      7. Click on Location element which has populated from Data Table reference.
      8. System shows properties of output Location element.
      9. Click on Enable Geofence below current location checkbox.
      10. System displays two radio buttons:
        1. Static Radius(System considers radius in meters)
          1. If Static radius is selected, then system displays a number field to enter the static radius.
          2. Admin must enter the desired radius, which is applicable for all the branch locations present in the Data Table.
        2. Dynamic Radius(System considers radius in meters)
          1. If Dynamic radius is selected, the system will use the radius specified for each location in the data table.
      11. Choose the Radius output element for mapping the geofence range. Upon choosing it an option to choose restriction type:
        1. Strictly restrict and stop.
        2. Show warning alert and continue.
      12. Admin makes other necessary changes and clicks on Publish to save the changes.
      IMPORTANT
      While performing a transaction, user must turn on their mobile data and GPS for the process.

      Post Conditions

      1. When the user opens the application, the system checks their current location.
      2. After selecting the branch for attendance and continuing with the transaction, the user selects the location they need to access.
      3. The system verifies the user's current location, longitude, latitude, and the selected radius. If they match, the user can proceed.
      4. If the current location doesn't match the selected location or is outside the defined radius, there are two types of restrictions:
        1. Strict restriction and stop: A pop-up appears saying that the user cannot proceed with the transaction, and the  .
        2. 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.





      Was this article helpful?

      What's Next