I'm working on a self-hostable replacement for Google Timeline, which is being discontinued. It includes a web app to view my timeline and an Android app to send tracking pings to the server. It also includes an import function for exports of your Google Timeline data so that your historical data from that can be integrated as well. I'm planning on open-sourcing both the web app and the POC Android app early next month.
In line with the self-hosting idea, I'm working on an iOS app which can be used as a native app, or can serve itself as a webapp on your local network (so that you can also use it from your laptop). There is no cloud, your phone is the server, your data stays with you at all times.
I'm kind of surprised no one seems to have explored this idea before (happy to be shown examples proving otherwise!)