This guide will walk you through the process of importing your Google location history to Google MyMaps using a script and Records.json
file exported from Google Takeout.
The ability to run a Node.js script is required. Install Node.js and npm (comes with Node.js) before proceeding.
- Go to Google Takeout
- Click "Deselect All"
- Only tick the checkbox 'Location History'
- Click "Next Step", and then "Create Export"
- Once the export is complete, find the
Records.json
file within the downloaded export. Move (drag-and-drop) the file into the root directory of this project
- Open your terminal in the project's root directory, and run the following command to install the necessary dependencies:
npm install
- Run the script by typing and executing the following command in the terminal:
node index.js
This will result in an output file named output.csv
being generated in the project's root directory.
- Go to Google MyMaps
- Import the generated
output.csv
file
You should now have your location history visible in Google MyMaps! Enjoy!