I used to use OwnTracks to avoid giving my location data to Google, and I'd like to note here that it still gives your location data to Google, as Google is your location provider. Ie it asks Android where you are, Android sends some stuff to Google, Google sends back some coordinates, and OwnTracks stores them wherever you tell it.
Since I didn't want Google to have my location at all, I now just turn off location services except when I need to use GPS. I just wish my device worked for me, instead of for Google.
There is a build (the "OSS" flavour) that doesn't use any of the Google dependencies, and it's currently waiting to get merged into the F-Droid repo (https://gitlab.com/fdroid/fdroiddata/-/merge_requests/10698). If you can't wait for that, you can grab the APK from the releases on github.
Since I didn't want Google to have my location at all, I now just turn off location services except when I need to use GPS. I just wish my device worked for me, instead of for Google.