# Geofencing

**URL:** https://community.glideapps.com/t/geofencing/57400
**Category:** Ask for Help
**Created:** [February 2, 2023, 4:25am UTC](https://community.glideapps.com/t/geofencing/57400 "2023-02-02T04:25:52Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![AmiJoule](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/amijoule/32/53709_2.png) [@AmiJoule](https://community.glideapps.com/u/AmiJoule)
#### Post date: [February 2, 2023, 4:25am UTC](https://community.glideapps.com/t/geofencing/57400/1 "2023-02-02T04:25:52Z")

</div>

Hello everybody,  
I try to explain what I would like to do: I would like to count how many people are in an area I set. I thought that: 1) I should activate Geofencing, and set the position where I would like to count people, 2) when a person enters the area I set, he automatically writes an id and a number in a column, and when he leaves the zone should cancel and scale down the number. I would like some advice, has anyone tried something like this yet?  
Thank you for your attention.

---

<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: [February 2, 2023, 11:35pm UTC](https://community.glideapps.com/t/geofencing/57400/3 "2023-02-02T23:35:10Z")

</div>

I don’t think this would be possible. At the moment, if you want to store someone’s location, you would have to use the Location component and it hardcodes coordinates to your database, and doesn’t update when the user moves. Only by storing location of multiple users can you know how many are in a certain distance from the point you want to use as base.

---

<div class="post-metadata">

### Author: ![Christopher\_Geyer](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/christopher_geyer/32/85766_2.png) [@Christopher\_Geyer](https://community.glideapps.com/u/Christopher_Geyer)
#### Post date: [September 6, 2023, 9:59am UTC](https://community.glideapps.com/t/geofencing/57400/4 "2023-09-06T09:59:52Z")

</div>

Hey Ami,

I had a similar use case in the business environment, here it was about tracking transport vehicles.

My workaround was querying the current location as a “sub-action” behind user interactions that have to be carried out by the system (status notification to a central office).  
Automated, i.e. without the intervention of a user, the query is currently (and probably also in the future) unfortunately not possible. For this, the application would have to be a native app.
