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
-
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.
-
Use Google Takeout to export your location history.
- Current link is https://takeout.google.com/settings/takeout?hl=en
- Support link is https://support.google.com/accounts/answer/3024190?hl=en
-
(Optional) Determine the time period(s) you're intested in and get the Unix timestamps of the start and stop dates.
-
Run the script. Assuming your POIs are in
area.txt
, your location history is athistory.json
, and a date range of 1 Oct 2018-1 Mar 2019:# Dump information to screen ./extact2.py history.json --area=area.txt --time=1538373600,1551423600 # Or to a CSV ./extact2.py history.json --area=area.txt --time=1538373600,1551423600 --output=results.csv
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for location-history-total-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ef34934c914afd60bfee614c4790ea768f723b0a96fbb66068e0402934a6614 |
|
MD5 | 8bda62d0982f03c2f60e1b802080ff34 |
|
BLAKE2b-256 | 00297d7af5e41c65b1e183374c772c25ab8359f294d84688edbd9739d0639316 |
Close
Hashes for location_history_total-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd5e5c0216730be311382a7cc52c8d3e97eb9bab5efc84767ec0441279254c1d |
|
MD5 | 383b01efa30c592bc358f92651323dd8 |
|
BLAKE2b-256 | 24084abbffc449ee1f4ea017ee7af506c1c43be93beb1f5f40b7442326fd2fa6 |