FYI, before you go digging too far, the shift to on-device Timeline storage was recent (last month or so), so I don't know if they have a public API for interacting with it yet. Prior to that, it was a proprietary in-app thing that lived only in the cloud and could only be accessed via the web or mobile apps.
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.