Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Extfiltrating Google Location History from Timeline

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"

enter image description here

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?

like image 570
Terence Eden Avatar asked Sep 01 '15 15:09

Terence Eden


People also ask

Can I use Google timeline to get the times I've been to a specific location?

Scroll left or right through the list of places and choose your current location. Under “Are you here now?,” tap Yes. Tap View in Timeline to find the places that you've been and the times that you were there.

What is Google location timeline?

Google Maps Timeline shows an estimate of places that you may have been and routes that you may have taken based on your Location History. You can edit your Timeline anytime and delete your Location History in Timeline. Your Timeline is private, so only you can find it.

Where did my location history go?

Head to your Google account page and log in if you haven't already. Tap Data & privacy at the top of the screen (on mobile), or click it in the left sidebar (on a computer). Scroll down to Things you've done and places you've been and make sure that Location History is turned on.


1 Answers

This will give the latest points, I believe:

 https://www.google.com/maps/timeline/kml
like image 177
Varanasi Benares Avatar answered Oct 13 '22 07:10

Varanasi Benares