The included script will parse the extracted JSON data from Google Maps' Location History, and output a list of unique lat/long coordinates in a .txt
file for your own use.
Older tutorials concerning Google Latitude, and Google Maps' Timeline would require raw extraction, or looping through exporting KML files, etc. Nowadays, Google Takeout supports exporting one's Location History easily.
- Visit Google Takeout.
- Click Select None at the top of the list to deselect all other options.
- Navigate down to Location History and select it. Leave the default export at JSON.
- Click Next, and choose your File Type, Archive Size, and Delivery Method.
- Once the file is downloaded and unarchived, proceed to the next steps.
- Download
Parse Google Location History.py
and place the script in the same directory as yourLocation History.json
export. - Run the script from your chosen command line (
python Parse Google Location History.py
).
There's an additional function included for converting the Lat/Long coordinates in E7 format to decimal. It's not made use of in the script, but it may be helpful to any interested.