Git Product home page Git Product logo

google-maps-location-history-parser's Introduction

Google Maps Location History Parser

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.

Steps to export data

  1. Visit Google Takeout.
  2. Click Select None at the top of the list to deselect all other options.
  3. Navigate down to Location History and select it. Leave the default export at JSON.
  4. Click Next, and choose your File Type, Archive Size, and Delivery Method.
  5. Once the file is downloaded and unarchived, proceed to the next steps.

Parse your export data

  1. Download Parse Google Location History.py and place the script in the same directory as your Location History.json export.
  2. Run the script from your chosen command line (python Parse Google Location History.py).

Notes

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.

google-maps-location-history-parser's People

Contributors

davidmetcalfe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

google-maps-location-history-parser's Issues

KeyError: 'locations'

saved your code as lh.py, fixed the filename to read, '2020_FEBRUARY.json' but upon running your code I get ...
$ python lh.py
Traceback (most recent call last):
File "lh.py", line 11, in
for i in data['locations']:
KeyError: 'locations'

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.