# Geofencing for Employees

**URL:** <https://community.glideapps.com/t/geofencing-for-employees/13993>\
**Category:** Ask for Help\
**Created:** [August 14, 2020, 12:29pm UTC](https://community.glideapps.com/t/geofencing-for-employees/13993 "2020-08-14T12:29:01Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Liz\_Scull](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/liz_scull/32/1128_2.png) [@Liz\_Scull](https://community.glideapps.com/u/Liz_Scull)\
**Post date:** [August 14, 2020, 12:29pm UTC](https://community.glideapps.com/t/geofencing-for-employees/13993/1 "2020-08-14T12:29:02Z")

</div>

Can my Glide App provide geofencing?

---

<div class="post-metadata">

**Author:** ![zeki](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/zeki/32/9068_2.png) [@zeki](https://community.glideapps.com/u/zeki)\
**Post date:** [August 16, 2020, 12:05am UTC](https://community.glideapps.com/t/geofencing-for-employees/13993/2 "2020-08-16T00:05:55Z")

</div>

I assume that all the users using your app allowing location services regardless they are signed in or not.

Basically,  
1 - Create a locations table with GPS information.  
2 - Create a “distance” column through data editor.  
3 - Create an “if-else” column. if the “distance” is less than “geofence threshold” (I used 0,5 km) return “TRUE” else “FALSE”

---

<div class="post-metadata">

**Author:** ![Wiz.Wazeer](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/wiz.wazeer/32/72423_2.png) [@Wiz.Wazeer](https://community.glideapps.com/u/Wiz.Wazeer)\
**Post date:** [August 16, 2020, 12:21am UTC](https://community.glideapps.com/t/geofencing-for-employees/13993/3 "2020-08-16T00:21:32Z")

</div>

Sorry, was that for creating a geofence or geolocation based service?

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [August 16, 2020, 12:24am UTC](https://community.glideapps.com/t/geofencing-for-employees/13993/4 "2020-08-16T00:24:29Z")

</div>

Yeah this should be the right way. Calculate distance from “current location” to the office location, then the If Then Else column is one in their user profiles data. Set tab visibility based on that should work.

---

<div class="post-metadata">

**Author:** ![zeki](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/zeki/32/9068_2.png) [@zeki](https://community.glideapps.com/u/zeki)\
**Post date:** [August 16, 2020, 12:24am UTC](https://community.glideapps.com/t/geofencing-for-employees/13993/5 "2020-08-16T00:24:35Z")

</div>

Ummm  
I got it now  
It needs active tracking  
My workaround cannot work if the app is open when the user is moving.

---

<div class="post-metadata">

**Author:** ![Wiz.Wazeer](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/wiz.wazeer/32/72423_2.png) [@Wiz.Wazeer](https://community.glideapps.com/u/Wiz.Wazeer)\
**Post date:** [August 16, 2020, 12:25am UTC](https://community.glideapps.com/t/geofencing-for-employees/13993/6 "2020-08-16T00:25:11Z")

</div>

Thank you

---

<div class="post-metadata">

**Author:** ![zeki](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/zeki/32/9068_2.png) [@zeki](https://community.glideapps.com/u/zeki)\
**Post date:** [August 16, 2020, 12:26am UTC](https://community.glideapps.com/t/geofencing-for-employees/13993/7 "2020-08-16T00:26:51Z")

</div>

I’m using the workaround I suggested for my locations.  
I’m providing price list to my clients but our prices are different based on location. Whenever the QR is scanned the app kicks in and locks you to the location.  
It works very smooth for me.

---

<div class="post-metadata">

**Author:** ![Krivo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/krivo/32/5363_2.png) [@Krivo](https://community.glideapps.com/u/Krivo)\
**Post date:** [August 16, 2020, 6:58am UTC](https://community.glideapps.com/t/geofencing-for-employees/13993/8 "2020-08-16T06:58:48Z")

</div>

@zeki which QR scanner are you using?

---

<div class="post-metadata">

**Author:** ![zeki](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/zeki/32/9068_2.png) [@zeki](https://community.glideapps.com/u/zeki)\
**Post date:** [August 16, 2020, 11:23am UTC](https://community.glideapps.com/t/geofencing-for-employees/13993/9 "2020-08-16T11:23:25Z")

</div>

Hello @Krivo,  
I’m using IOS native qr scanner which is located in control center.  
For QR management I’m using beaconstac

---

<div class="post-metadata">

**Author:** ![Krivo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/krivo/32/5363_2.png) [@Krivo](https://community.glideapps.com/u/Krivo)\
**Post date:** [August 16, 2020, 11:52am UTC](https://community.glideapps.com/t/geofencing-for-employees/13993/10 "2020-08-16T11:52:40Z")

</div>

@zeki is that something you want to share - like a video of what you do. Sounds interesting 👍

---

<div class="post-metadata">

**Author:** ![zeki](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/zeki/32/9068_2.png) [@zeki](https://community.glideapps.com/u/zeki)\
**Post date:** [August 16, 2020, 12:09pm UTC](https://community.glideapps.com/t/geofencing-for-employees/13993/11 "2020-08-16T12:09:26Z")

</div>

Of course  
The application is still in development  
But you can check it from [spasoul.net](http://spasoul.net)

I can also record a small video to show how I achieve it

---

<div class="post-metadata">

**Author:** ![Krivo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/krivo/32/5363_2.png) [@Krivo](https://community.glideapps.com/u/Krivo)\
**Post date:** [August 16, 2020, 12:50pm UTC](https://community.glideapps.com/t/geofencing-for-employees/13993/12 "2020-08-16T12:50:49Z")

</div>

@zeki very nice looking app.

If you are willing to do a video on how you use the QR functionality that would be cool.

The etiquette section could, in my opinion, be made even nicer if you included some images along the the etiquette text. At present it seems a bit “empty” when there is only a little text.

But overall - very nice and clean app​:+1:👍👍

---

<div class="post-metadata">

**Author:** ![zeki](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/zeki/32/9068_2.png) [@zeki](https://community.glideapps.com/u/zeki)\
**Post date:** [August 16, 2020, 12:57pm UTC](https://community.glideapps.com/t/geofencing-for-employees/13993/13 "2020-08-16T12:57:57Z")

</div>

Thanks so much for the comments @Krivo  
It’s still in development and I need to do many adjustments.

Actually, I didnot do something special about QR code, I’m using the QR for the URL directly.  
Because there is still no deeplinking support in Glide.

Could you please describe more what you need to know about QR idea?

---

<div class="post-metadata">

**Author:** ![Krivo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/krivo/32/5363_2.png) [@Krivo](https://community.glideapps.com/u/Krivo)\
**Post date:** [August 16, 2020, 5:44pm UTC](https://community.glideapps.com/t/geofencing-for-employees/13993/14 "2020-08-16T17:44:19Z")

</div>

@zeki  
I have no experience with the iOS build in QR scanner in relation to the app

I have been using an api for reading QR code’s. You can have a look in this app  
[https://qrcode.glideapp.io/](https://qrcode.glideapp.io/)

I would like to know more about how to use QR code’s in relation to geofencing and generally how to make use of QR code’s (or 1D code’s)

I haven’t figured out how you use the native QR scanner in relation to your app. Therefore a video would be great.

Anyway - thx for sharing

---

<div class="post-metadata">

**Author:** ![zeki](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/zeki/32/9068_2.png) [@zeki](https://community.glideapps.com/u/zeki)\
**Post date:** [August 16, 2020, 6:09pm UTC](https://community.glideapps.com/t/geofencing-for-employees/13993/15 "2020-08-16T18:09:23Z")

</div>

Hello @Krivo  
Actually there is no direct relation with QR code and the app.  
The QR code (one and only) are located inside all of my locations.  
These locations are defined in locations table with their GPS values inside my app.  
Whenever somebody is inside on of my locations they scan the QR code via their mobile cameras.  
The app opens and asks for the location services after you allow the service a distance columns inside the locations table is populated.  
Whenever this value is less than 0.5 km. main screen of my app is automatically locked to that location and the price list which belongs to it.

But if you open the application from outside of these locations. It gives you the ability of choosing the location and check them freely.

---

<div class="post-metadata">

**Author:** ![zeki](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/zeki/32/9068_2.png) [@zeki](https://community.glideapps.com/u/zeki)\
**Post date:** [August 16, 2020, 6:22pm UTC](https://community.glideapps.com/t/geofencing-for-employees/13993/16 "2020-08-16T18:22:01Z")

</div>

I shot a quick movie

---

<div class="post-metadata">

**Author:** ![zeki](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/zeki/32/9068_2.png) [@zeki](https://community.glideapps.com/u/zeki)\
**Post date:** [August 16, 2020, 6:27pm UTC](https://community.glideapps.com/t/geofencing-for-employees/13993/17 "2020-08-16T18:27:36Z")

</div>

I forgot to explain how I capture the location you are in

---

<div class="post-metadata">

**Author:** ![Wiz.Wazeer](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/wiz.wazeer/32/72423_2.png) [@Wiz.Wazeer](https://community.glideapps.com/u/Wiz.Wazeer)\
**Post date:** [August 16, 2020, 7:02pm UTC](https://community.glideapps.com/t/geofencing-for-employees/13993/18 "2020-08-16T19:02:36Z")

</div>

I like how you have English/Turkish set up. I wish it was possible for Asian languages. The google translators unfortunately translate Asian words as something else. But really nice se up. Like your app. 👍

---

<div class="post-metadata">

**Author:** ![zeki](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/zeki/32/9068_2.png) [@zeki](https://community.glideapps.com/u/zeki)\
**Post date:** [August 16, 2020, 7:15pm UTC](https://community.glideapps.com/t/geofencing-for-employees/13993/19 "2020-08-16T19:15:15Z")

</div>

Thanks so much @Wiz.Wazeer  
I wish, I could have a chance to do it based on user’s mobile locale without the need of unnecessary click

---

<div class="post-metadata">

**Author:** ![Wiz.Wazeer](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/wiz.wazeer/32/72423_2.png) [@Wiz.Wazeer](https://community.glideapps.com/u/Wiz.Wazeer)\
**Post date:** [August 16, 2020, 7:23pm UTC](https://community.glideapps.com/t/geofencing-for-employees/13993/20 "2020-08-16T19:23:27Z")

</div>

Even though this is not geofencing in the technical sense of that term, I like the point at which it becomes a geofence. You obviously cannot create a geofence. You need special software. But, @zeki is capturing their locations as soon as they scan the QR code. It’s scanning for the geolocation of an individual and then giving it the semblance of a geofence from that moment onwards. Geofencing is live tracking and tracing of movements, which this isn’t but who cares. Still works for targeted marketing. BTW, You can use your iOS/Android device to create a geofence. But I like @zeki’s approach because it doesn’t break the law. He is taking consent in some manner or form, whereas with geofencing per se the consequences can be more draconian than GDPR breaches. I remember a time when Starbucks was heavily invested in it. But now big retailers are using it. It’s massive business.

[Next page](https://community.glideapps.com/t/geofencing-for-employees/13993.md?page=2)
