Skip to content

Instantly share code, notes, and snippets.

@git-shogg
Created July 25, 2021 03:34
Show Gist options
  • Save git-shogg/9d66e348e12a88ad6d0e115f50ff33d1 to your computer and use it in GitHub Desktop.
Save git-shogg/9d66e348e12a88ad6d0e115f50ff33d1 to your computer and use it in GitHub Desktop.
Google_Timeline_Summary-Step_04.py
###############################################################################
# 4. Unpack the Data #
###############################################################################
df_rows = []
for key in locations:
timestamp = float(key['timestampMs'])
latitude = float(key['latitudeE7'])/10000000
longitude = float(key['longitudeE7'])/10000000
if timestamp >= start_datetime and timestamp <= end_datetime:
df_rows.append([timestamp,latitude,longitude])
df = pd.DataFrame(df_rows,columns=['timestamp','latitude','longitude'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment