Title
Does OpenTracks have the features you’re wanting? It tracks your path, shows stats, and allows you to save it to recall later. It’s on F-Droid. https://opentracksapp.com
Check out Fito Track as well which is pretty similar (and on F-Droid as well).
You could try OpenTracks, I used it a few years ago and it was pretty good.
Fitotrack is exceptional. Can export data, then process it anywhere.
Phonetrack with app for Nextcloud is quite nice.
https://f-droid.org/packages/net.eneiluj.nextcloud.phonetrack/
I used to use Out-Run. v1.2 in the change log notes that the app is open source.
It looks like it hasn’t been updated in some time though.
https://apps.apple.com/ca/app/out-run/id1477511092
It was harder than it should have been to find the GitHub page but here it is. I linked to the issues list. Seems like it’s got a quite a few. Maybe somebody will pick the project up.