# How to calculate walking distance with DISTANCE column

**URL:** <https://community.glideapps.com/t/how-to-calculate-walking-distance-with-distance-column/66978>\
**Category:** Ask for Help\
**Created:** [October 14, 2023, 6:40pm UTC](https://community.glideapps.com/t/how-to-calculate-walking-distance-with-distance-column/66978 "2023-10-14T18:40:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [October 15, 2023, 12:07am UTC](https://community.glideapps.com/t/how-to-calculate-walking-distance-with-distance-column/66978/2 "2023-10-15T00:07:37Z")

</div>

In short, if you plan it to be a distance/step tracker for joggers/runners, I doubt it would work.

> [@ohad](#):
>
> I did not understand how the Distance column works.

It calculates a distance between two addresses/coordinates.

> [@ohad](#):
>
> How can the user enter the current location when press START?

You have to use a Location component so it writes to a “current location” column in your database. I believe the component does track the real-time location of the user, but I don’t know the frequency of it being updated.

> [@Live Location - not for production use](https://community.glideapps.com/t/live-location-not-for-production-use/26227/24):
>
> It was a fun challenge and I had it pretty accurate and able to dynamically move the 3 points, so the tri-lateration always kept up and I always had an accurate location because I would always be within the 3 points. The only problem is, I think glide has a bug somewhere where javascript crashes and can’t recover, so the app would halfway stop responding after a few minutes. I had put Try Catches in the code, but there would still be a hard crash somewhere. Now, the newer Location component i…

> [@ohad](#):
>
> I would like to measure the distance few times a day (when pressed start and stoop) How can I “bring” the current location each time?

When you click “Start”, write the current location to a user-specific column, let’s call it “Start location”, end when the user clicks “End”, write the current location to another user-specific column, let’s call it “End location”. Submit it to a Logs table and calculate the distance between those 2 points.

> [@ohad](#):
>
> Is this feature works only from A to B, or IF the user walks from A to B back and forth? for example, the users walks 1 km total, but 100m each direction 10 times.

In this case, it doesn’t work. It simply calculates the distance between 2 coordinates, not the “distance” or “steps” you usually see in Apple Health, for example.

---

_[View the full topic](https://community.glideapps.com/t/how-to-calculate-walking-distance-with-distance-column/66978)._
