Skip to main content

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.

Source Distribution

location-history-total-0.1.2.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

location_history_total-0.1.2-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file location-history-total-0.1.2.tar.gz.

File metadata

  • Download URL: location-history-total-0.1.2.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.10 CPython/3.6.7 Linux/4.15.0-43-generic

File hashes

Hashes for location-history-total-0.1.2.tar.gz
Algorithm Hash digest
SHA256 0531e577c66f72cad016461cb29c871efbed3124dce2735c6b7d683e432d9b41
MD5 ef8810a4057ef6a60a5d47e645d17e10
BLAKE2b-256 a38ac11aa252d40b62b00947e0a4d79ddf377663d6816b343227fd6caf61dee7

See more details on using hashes here.

File details

Details for the file location_history_total-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for location_history_total-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b90faad498303fd8ae0e9c34d2dea10fe42809e8e7ebbd19b8bb45a02391504c
MD5 43ce6030554f750e7736f0229af6858b
BLAKE2b-256 3dbdaab79879ee33a4f6d87a7e597ff5384b5497698570df73563083c8e0f9f6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page