FitTrackee icon indicating copy to clipboard operation
FitTrackee copied to clipboard

Get elevation from a remote service when missing in the import

Open kmorinCL opened this issue 3 months ago • 5 comments

My old Garmin Forerunner 10 does not record the elevation, but Garmin Connect succeeds in displaying the elevation. It would be great to find an API to get the elevation according to the coordinates.

kmorinCL avatar Sep 01 '25 08:09 kmorinCL

Hi,

There is a issue about elevation correction: https://github.com/SamR1/FitTrackee/issues/701. It's not exactly the same problem, but it's to link the two issues on GitHub.

SamR1 avatar Sep 01 '25 09:09 SamR1

@SamR1 I have just started working on a POC calling the Open Elevation API (https://www.open-elevation.com/) as it is an API that you can self host. It seems to work well, so I could go further into the dev if it seems a way acceptable to you to compute the elevation. Let me know.

kmorinCL avatar Oct 01 '25 13:10 kmorinCL

Hi @kmorinCL

Thanks for working on this issue.

OpenElevation is one of the solutions I had in mind, another would be to use srtm.py, but I haven't looked into it.

Does the POC only concern the case where the file does not contain any elevation data at all?

SamR1 avatar Oct 01 '25 16:10 SamR1

If at least one elevation is missing, I ask all the elevations to Open Elevation (it's an improvable poke, I could filter the missing ones). I do not know in which case only a few elevations are missing, perhaps it cannot happen. I will publish the poc soon.

kmorinCL avatar Oct 02 '25 06:10 kmorinCL

I do not know in which case only a few elevations are missing, perhaps it cannot happen

I've encountered this case before, but it was a long time ago (recording with a mobile app). In any case, it is better to retrieve all elevations when at least one is missing to avoid sudden changes in elevation.

Thanks for the POC, and feel free to ping me if you have any questions.

SamR1 avatar Oct 04 '25 07:10 SamR1