Is there any good FOSS app that could record the phone GPS location, but keep the data locally on the same phone, no dialing out?
Like the Google Maps location history, just not sharing it with Google services.
I use https://github.com/mendhak/gpslogger for years without problem
I look into it with osmand or gpxsee
OsmAnd, as someone has mentioned. Though, I think it’s an extension and you have to activate it and customize the experience. I used GPSlogger in the past, too, when I was in field surveys to upload to my Nextcloud server.
F-Droid is fantastic for privacy respecting software.
Tiny Travel Tracker (Secure long term GPS tracker and log) The description seems very focused on keeping things private and as a Google Maps location history. I have not used it.