# \[Solved\] Location based functions?

**URL:** <https://community.thunkable.com/t/solved-location-based-functions/2209366>\
**Category:** Questions about Thunkable X\
**Created:** [January 6, 2023, 8:01pm UTC](https://community.thunkable.com/t/solved-location-based-functions/2209366 "2023-01-06T20:01:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![coderdojo1r2e80q](https://avatars.discourse-cdn.com/v4/letter/c/c77e96/32.png) [@coderdojo1r2e80q](https://community.thunkable.com/u/coderdojo1r2e80q)\
**Post date:** [January 6, 2023, 8:01pm UTC](https://community.thunkable.com/t/solved-location-based-functions/2209366/1 "2023-01-06T20:01:44Z")

</div>

Is it possible to make it so they can only tap certain buttons and do to certain screens within a radius of an address or location? I tried looking at the thinkable documentation, but didn’t see anything there.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [January 6, 2023, 8:32pm UTC](https://community.thunkable.com/t/solved-location-based-functions/2209366/2 "2023-01-06T20:32:10Z")

</div>

Yes, it’s possible. You can get the lat/Lon position using the location sensor. From there, you would need to use a formula to calculate the distance to another set lat/Lon position. This is typically done using the Haversine formula which you can search the forums for.

---

<div class="post-metadata">

**Author:** ![coderdojo1r2e80q](https://avatars.discourse-cdn.com/v4/letter/c/c77e96/32.png) [@coderdojo1r2e80q](https://community.thunkable.com/u/coderdojo1r2e80q)\
**Post date:** [January 6, 2023, 8:33pm UTC](https://community.thunkable.com/t/solved-location-based-functions/2209366/3 "2023-01-06T20:33:20Z")

</div>

Thank you so much! I’ll look into it!

---

<div class="post-metadata">

**Author:** ![matt\_conroy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/matt_conroy/32/150843_2.png) [@matt\_conroy](https://community.thunkable.com/u/matt_conroy)\
**Post date:** [January 6, 2023, 9:21pm UTC](https://community.thunkable.com/t/solved-location-based-functions/2209366/4 "2023-01-06T21:21:41Z")

</div>


