# Location Sensor Issues

**URL:** https://community.thunkable.com/t/location-sensor-issues/3801141
**Category:** Maps
**Created:** [May 5, 2025, 11:13am UTC](https://community.thunkable.com/t/location-sensor-issues/3801141 "2025-05-05T11:13:31Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![yolanda202902931776o](https://avatars.discourse-cdn.com/v4/letter/y/f08c70/32.png) [@yolanda202902931776o](https://community.thunkable.com/u/yolanda202902931776o)
#### Post date: [May 5, 2025, 11:13am UTC](https://community.thunkable.com/t/location-sensor-issues/3801141/1 "2025-05-05T11:13:31Z")

</div>

Me and my team are trying to find distance between current location and updated location using the halver sign formula (might be spelled wrong, sorry) to calculate the number of steps taken. However, it doesn’t seem to be working. Could someone give some insight? the steps always appear to be 0.

 ![Screenshot 2025-05-05 at 19.12.43](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/6/06fbab7f13376d3231d54386b0557cdcf95ab3c8.png)

---

<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: [May 5, 2025, 2:36pm UTC](https://community.thunkable.com/t/location-sensor-issues/3801141/2 "2025-05-05T14:36:57Z")

</div>

The Haversine formula is one of the most complicated things I’ve set up in Thunkable. It’s not surprising you’re having problems with it.

Have you tried debugging each value? I use this method: [Debugging in Thunkable X (Video)](https://community.thunkable.com/t/debugging-in-thunkable-x-video/849471)

If that doesn’t find the cause for you, would you be able to share a link to your project? You’re welcome to send it in a private message. It’s easier for me to troubleshoot it with the blocks rather than just the screenshot (although that is helpful!).

Also, see this response I provided and the link I included in the post: [Location sensor for tracking distance - #6 by tatiang](https://community.thunkable.com/t/location-sensor-for-tracking-distance/2983828/6)
