GithubHelp home page GithubHelp logo

hhy5277 / geo-heatmap Goto Github PK

View Code? Open in Web Editor NEW

This project forked from luka1199/geo-heatmap

0.0 1.0 0.0 4.12 MB

:world_map: Generate an interactive geo heatmap from your Google location data

License: MIT License

Python 100.00%

geo-heatmap's Introduction

Geo Heatmap

This is a script that generates an interactive geo heatmap from your Google location history data using Python, Folium and OpenStreetMap.

screenshot

Getting Started

1. Install Python 3+

If you don't already have Python 3+ installed, grab it from https://www.python.org/downloads/. You'll want to download install the latest version of Python 3.x. As of 2019-11-22, that is Version 3.8.

2. Get Your Location Data

Here you can find out how to download your Google data: https://support.google.com/accounts/answer/3024190?hl=en
Here you can download all of the data that Google has stored on you: https://takeout.google.com/

To use this script, you only need to select and download your "Location History", which Google will provide to you as a JSON file by default.

3. Clone This Repository

On https://github.com/luka1199/geo-heatmap, click the green "Clone or Download" button at the top right of the page. If you want to get started with this script more quickly, click the "Download ZIP" button, and extract the ZIP somewhere on your computer.

4. Install Dependencies

In a command prompt or Terminal window, navigate to the directory containing this repository's files. Then, type the following, and press enter:

pip install -r requirements.txt

5. Run the Script

In the same command prompt or Terminal window, type the following, and press enter:

python geo_heatmap.py <file>

Replace the string <file> from above with the path to the LocationHistory.json JSON file from Google Takeout.

6. Review the Results

The script will generate a HTML file named heatmap.html. This file will automatically open in your browser once the script completes. Enjoy!

FAQ

I'm getting an "Out of Memory" or MemoryError error when I try to run the script. What's going on?

Your LocationHistory.json file is probably huge, and Python is running out of memory when the script tries to parse that file.

To fix this, download and install the 64-bit version of Python. To do this:

  1. Go to python.org.
  2. Click the link corresponding to your OS next to "Looking for Python with a different OS?"
  3. Click the "Latest Python 3 Release" link.
  4. Scroll down to "Files".
  5. Click to download the x64 release. For example, on Windows, that's the "Windows x86-64 executable installer" link.
  6. Install!

geo-heatmap's People

Contributors

kbknapp avatar luka1199 avatar zfox23 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.