There's usually two parts, the data tracker and the visualizer, and they often can be mixed and matched or come as a pair. The most common loggers are OwnTrack and GPSLogger
I used PhoneTrack (through NextCloud) for a bit. I think the great thing about it was you could edit points. If there was a stray data reading that was way off you could (re)move it.
Traccar comes as a server/client pair but this is more aligned for commercial vehicle tracking.
There's a really cool visualizer, Orion, but it's no longer maintained.
https://github.com/LINKIWI/orion-web
And the same for Time Travel Tracker.
https://github.com/redfish64/TinyTravelTracker