How to calculate walking distance with DISTANCE column

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

It calculates a distance between two addresses/coordinates.

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.

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.

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.

2 Likes