Google Location History Import
This allows you to import your Google Location History (incl. old Google Latitude) data into the database.
- Go to Google Takeout.
- Disable all options by clicking on "SELECT NONE".
- Find the entry "Location History" and enable it. Make sure the format is set to "JSON".
- Go to the bottom and click "NEXT". Follow the steps to the end.
- Wait until you get the completion notification and download the file.
- Unpack the file and find the
Location History.json
. - Put the
Location History.json
in this directory. - Modify the
import_google_history.php
and set your desired tracker id in line 5. - Run:
php import_google_history.php
Notes
LatitudeE7
andLongitudeE7
have to be divided by 1e7 to get the float valuevelocity
is in metres per second (multiply by 3.6 to get km/h)- Importing a 500 MiB JSON file with 2.3m records into SQLite takes about 22 minutes