Skip to content

Instantly share code, notes, and snippets.

@devdattaT
Last active July 1, 2024 11:36
Show Gist options
  • Save devdattaT/018f7fc153d9a82d83775351576965f3 to your computer and use it in GitHub Desktop.
Save devdattaT/018f7fc153d9a82d83775351576965f3 to your computer and use it in GitHub Desktop.
How to Visualize your Google Location History

Google is extremely transparent about the Location History it has on you. You can check it out on the timeline feature in the Google Maps application on the phone, or on https://www.google.com/maps/timeline It is possible that you have that turned off, and in that case, consider yourself lucky.

If there is data there, you can view it online, or Download and Analyze it yourself.

Note: The conversion script has been updated on 2024-06-24, to match the updated format which is now generated by Google Takeout

@ceemjay
Copy link

ceemjay commented Jun 23, 2024

Which file does this process? I have tried Records.json which returns a blank file and also one of the monthly files below Semantic Location History.. The latter prints records to the screen ending with
[datetime.datetime(2013, 7, 31, 18, 37, 0, 689000), '2013-07-31', '18:37:00', datetime.datetime(2013, 8, 1, 7, 5, 31, 822000), '2013-08-01', '07:05:31', -1.5501967, 47.2090939, 'CueZO6d0gRwhIJA1y_T-raagsZM', 'An address record', 73.671555, 'N/A', 'N/A']
Traceback (most recent call last):
File "/home/clive/to.py", line 113, in
for r in reader:
File "/home/clive/to.py", line 58, in make_reader
activity_type = segment['activityType']
KeyError: 'activityType'

Thanks

@devdattaT
Copy link
Author

@ceemjay This process has to be run with the Records.json.
I realised that the file generated by Google Takeout, has been updated, and I have updated the conversion script accordingly.

@GitMae99
Copy link

Once I switched to timeline on my device, Google Takeout doesn't export any relevant Timeline data for me. No Records.json. You guys are awesome trying to keep up with Google's latest fiasco. Will continue following your progress. Thank You!

@usbrpa
Copy link

usbrpa commented Jul 1, 2024

Not sure if I am doing this right,.. but I had the same issues with the timeline... need to be able to retrace my travels over the past weeks / months. So I tried something: https://github.com/usbrpa/timeline2map Feel free to have a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment