Excuse me if I’m missing something, but why do you need the internet at all? Can’t you collect your location with a GPS watch as you run and just handle the gpx file offline when you get home?
Unless you’re looking to share location with others as you run - in which case your request makes sense.
Would OwnTracks meet your requirements? https://owntracks.org/