Skip to main content

Visualising Your Google Location History

Step 1: Download Your Google Location History

First, you need to download your location history data from Google. Follow these steps to get started:

  1. Go to Google Takeout: Visit Google Takeout to begin the process.
  2. Select Location History (Timeline): Make sure to select the “Location History (Timeline)” option.

3. Export Your Data: Google will compile your data, which might take some time. You will receive an email once your data is ready to be downloaded.

4. Download the Data: Follow the instructions in the email to download your data.


Step 2: Extract the Downloaded File

Once you’ve downloaded your data, locate the file and extract it. The location data will be in a JSON file at the following path:

takeout-202XXXXXTXXXXXXZ-001/Takout/Location History (Timeline)/Records.json

Step 3: Convert JSON to CSV

To make the location data usable, we need to convert it from JSON to CSV format. Although you can convert it to KML or geoJSON formats, we’ll focus on CSV for this post.

1. Clone the Repository: Use the following GitHub repository to get the necessary script:

git clone https://github.com/Scarygami/location-history-json-converter

2. Install Dependencies: Navigate to the cloned directory and install the required dependencies:

pip install -r requirements.txt

3. Run the Conversion Script: Execute the script to convert your JSON file to CSV:

python3 location_history_json_converter.py '<PATH_TO_FOLDER>\Takeout\Location History (Timeline)\Records.json' .\Output.csv -f csv

This will create a CSV file with all the location data points from the Records.json file.

  • Example of CSV file
Time,Latitude,Longitude
2024-01-09 04:17:42,12.90519190,80.21908210

Now that we have CSV file ready let’s visualize the data.

Step 4: Visualize Your Data on a Map

  1. Visit Kepler.gl: Head over to Kepler.gl demo.

2. Upload Your CSV File: Click on the “Upload Data” button and select your CSV file.


3. View Your Location Data: Once processed, you will see your location data plotted on the map.


You can zoom in-onto map and see countries, cities and streets you roamed. It’s a nice way to get a bird eye view of how much area of city you have covered.

Step 5: Set Up Time-Series Visualization

To enhance the visualization with a time-series component:

  • Go to Filters: In Kepler.gl, navigate to the Filters section.

  • Select Time: Choose the time column from your data.
  • Click Play: Use the play button to view a time-based animation of your location history.

You can zoom in to see detailed views of countries, cities, and streets you have visited, providing a comprehensive overview of your travel history.

Thanks for reading. If you have some feedback, please provide your response or reach out to me on Twitter or Github.

Comments

Popular posts from this blog

How to mine pancake swap using your Laptop/Desktop

In this post, we will talk about how you can mine pancake swap using your laptop or desktop. What is pancake swap you ask? Pancakeswap is a decentralizaed DEX where you can Trade, earn, and win crypto on the most popular decentralized platform in the galaxy, you can Trade any token on Binance Smart Chain in seconds and you can earn passive income with your CAKE tokens. You can read more about it from  https://pancakeswap.finance/ Get Started! Step I: Getting a crypto wallet You can start with  Metamask  as a crypto wallet. Go ahead and download the Metamask as a chrome extension. Download Link:  https://metamask.io/download.html Once installed let's set up the Metamask account. Metamask Get Started Screen Click on  Get Started  button, and you should see the following screen. Metamask create wallet screen Click on  Create a Wallet  button. Metamask I Agree Screen Click on  I Agree  button. Metamask create password Provide a strong passwo...

Unleashing the Power of Personal Photo Management with PhotoPrism

As an avid photographer and a lover of memories, I've always struggled with managing and organizing my ever-growing collection of digital photos. It was a constant battle to find specific photos, especially as I often forget to tag or rename them. That's when I stumbled upon PhotoPrism , a powerful open-source photo management tool that has revolutionized the way I interact with my photo library. In this blog post, I'll guide you through the process of installing and using PhotoPrism, sharing my personal use cases along the way. Whether you're a professional photographer, a hobbyist, or simply someone passionate about preserving memories, PhotoPrism is a game-changer. Getting Started To start our journey with PhotoPrism, the first step is to install it. Head over to the official repository on GitHub and follow the installation instructions provided there. Don't worry, the installation process is well-documented and straightforward, making it accessible even for no...