Note, due to changes to Google's "Timeline" this previous answer no longer works.
Google offers a "Timeline" service which allows users to access their phone's location history.
I want to extract my phone's current location.
If I select "today" in Timeline, I can "Export this day to KML"
This contains the data I need, but I don't know how to get these data programatically. I don't want to have to log in to the website every time I need this information.
The URL it provides is -
https://doc-0uom0-1q5a8-s-googleusercontent.commondatastorage.googleapis.com/gs/[hash1]/[hash2]/1441116000000/takeout-eu/[user id]/[stupidly long hash]&nonce=[hash3]&user=[user id]&hash=[hash4]
Apart from the Unix timestamp (1441116000000) I don't know how to calculate the parameters for that URL.
The Google Maps API documentation doesn't list anything.
I'd like to be able to wget
a URL to collect my data. Does anyone know how this can be done?
<Document><name> Location history from 2015-09-01 to 2015-09-01 </name>
but today is 2015-09-02 – Browband