Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Given a Takeout of Google Location History, generate a CSV of work history.

Project description

location-history-total

Given a Takeout of Google Location History, generate a CSV of work history.

Requires Python 3.6+.

Example usage

  1. Create a document with your points of interest:

    # Format is lat, long, radius
    # '#' can be used to comment a line out
    38.8100121,-104.6792472, 0.04
    39.1355552,-121.3484781, 0.1
    

    Google Maps will be handy for determining the latitude and longitude of places.

  2. Use Google Takeout to export your location history.

  3. (Optional) Determine the time period(s) you're intested in and get the Unix timestamps of the start and stop dates.

  4. Run the script. Assuming your POIs are in area.txt, your location history is at history.json, and a date range of 1 Oct 2018-1 Mar 2019:

    # Dump information to screen
    location-history-total history.json --area=area.txt --time=1538373600,1551423600
    
    # Or to a CSV
    location-history-total history.json --area=area.txt --time=1538373600,1551423600 --output=results.csv
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for location-history-total, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size location_history_total-0.1.2-py3-none-any.whl (11.1 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size location-history-total-0.1.2.tar.gz (4.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page