Ah that’s quite an interesting use case. I have never used Google Maps as extensively - very point to point usage for me. But I’ll check their API out! Thanks for sharing!
I am not sure what format that on-device data is, or if it might be accessible via Google Takeout (their data export platform) instead of an API.
I just tried a Google Takeout export of the Timeline data, but it was an empty skeleton of the previous Timeline that just has a text file saying "You have encrypted Timeline backups stored on Google servers."
I have no idea where that actual backup is, either on the phone or on the server. There seems to be no way to access it anymore, lol =/
Anyway, nevermind my niche use case. Good luck with the app and excited to see how it comes out!