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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 050e3c8f60a86ee778e3f2a2aa08a85dbb6d60c358438bc45939787706d032aa |
|
MD5 | cdafecdcb23419d328b9f510a542683e |
|
BLAKE2b-256 | ba55038f32403c9b760285cfec2590937e6fb92ee03183966132cb83c1aee140 |
Close
Hashes for location_history_total-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a44dea2f00b5b494b13f32abd431c86866b640dbab3d550cbdd38ce320a4aac8 |
|
MD5 | 666875ed9bd6826f0e82c1bdfb75f64c |
|
BLAKE2b-256 | 00e5071d69e868861d736d8861868d1180459234d0a7d2dd3206d11e1ea6303e |