-
-
Notifications
You must be signed in to change notification settings - Fork 101
How to import your Google Takeout data
There are two different type packages of data in your Google Takeout Archive: Semantic History and Records. Semantic History contains limited number of geopoints with extensive data, such as addresses visited. Records contain a lot more geopoints, but doesn't have any other information than coordinates and timestamp of when geopoint was recorded.
You will probably want to import both to have the most complete picture of your movements across the years, but since file formats are different, importing processes are different too.
This page describes importing of Goole Takeout's Records.json. To import Semantic History (which are a bunch of smaller JSON files), refer to the page on How to import your Google Semantic History
Import takes a while to finish, so you might want to run it in screen
session.
If you already have your Takeout archive downloaded, proceed to bullet 7.
-
Go to Google Takeout
-
Check all Maps-related checkboxes (you might want to disable all others to make Takeout archive smaller)
-
Proceed by specifying details of your Takeout (archive size, how you want to receive it)
-
Click "Create export"
-
Wait until Google creates your Takeout archive and sends link(s) to it to your email
-
Download your Takeout archive
-
Extract your Takeout archive
-
Go to your extracted folder: Takeout -> Location history
-
Inside, you'll find a file named
Records.json
-
Upload your Records.json file to your server using any convenient way
-
Copy your Records.json to the
tmp
folder:$ docker cp Records.json dawarich_app:/var/app/tmp/Records.json
-
Attach to the docker container:
$ docker exec -it dawarich_app sh
-
Run the rake task:
$ bundle exec rake import:big_file['tmp/Records.json','[email protected]']
-
Wait patiently for process to finish
-
You're beautiful!