Implementing Dynamic Role-Based Geofencing in AppSheet

How can I implement a geofencing feature in AppSheet that restricts users from submitting forms unless they are within specific, dynamically defined boundaries that adjust based on the user's role, allowing for different geographical constraints for different user groups?

0 3 98
3 REPLIES 3

This depends on your app design and what you mean by "dynamically defined".   Typically, "fences" are static.  You may have several "fences" based on the user roles, but each of those would normally be statically defined areas that you can pre-record into the app.  (You could provide an app feature to record the geo-fence coordinates before-hand)

If this is what you mean, then you can use the HERE() function to get the user's current coordinates and run those against the algorithm for that roles' "fence" to determine if the user is inside it.  Geo-fencing algorithms can be found online.

The idea would be that when a user taps a button to load a Form, the button executes a Grouped action.   The first action determines if the user is validly inside the fence and if so continues on to the usual Form.  If not, then the user is presented a message in some way.

If you have varying requirements, then please elaborate.

I hope this helps!

Can AppSheet integrate with third-party geolocation services like Google Maps Geofencing API to enhance accuracy and flexibility?

Yes.  The third-party need to support REST API's - most do these days.  Google services do.  I know of one App Creator also using Make and the GeoFencing functions provided there.