Get elevation from a remote service when missing in the import
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.
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 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.
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?
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.
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.