Skip to content

Bootleg python script for getting my daily travels from google location history

Notifications You must be signed in to change notification settings

nikamajinkya/location-tracker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Location Tracker Script (Originally built for use on arankhanna.com)

For anyone using Android devices, google is pulling your location history and storing it (and it is no longer accessible via Latitude). It can be found at maps.google.com/locationhistory/. This python code allows you to programatically pull an arbitrary subset of that data and dump it into a database (mongo currently) and use a Flask server to expose that data via API endpoints.

To set this up you must:

  1. run apache and cofigure it to forward to the Flask server in app.py
  2. put mongo database login string in a file named password.conf
  3. OPTIONAL: put a google API key in passwords.conf for reverse geocoding and a Mandrill API key for email alerting on failure
  4. store your google cookie in a collection named credentials on your database (because this can vary I update it manually in the DB when it changes)
  5. OPTIONAL: run json_fetcher.py on a cronjob to pull data regularly into the DB

You can see an example Mapbox-based frontend visualization for the data in the /frontend folder or live at arankhanna.com/contact.html

About

Bootleg python script for getting my daily travels from google location history

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 61.8%
  • JavaScript 22.4%
  • CSS 9.2%
  • HTML 6.6%