Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/javier/google_timeline_parser
parse your google location history (timeline) after exporting from google takeout
https://github.com/javier/google_timeline_parser
Last synced: 5 days ago
JSON representation
parse your google location history (timeline) after exporting from google takeout
- Host: GitHub
- URL: https://github.com/javier/google_timeline_parser
- Owner: javier
- License: mit
- Created: 2016-12-28T17:38:01.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-16T12:06:25.000Z (almost 7 years ago)
- Last Synced: 2024-08-02T12:46:58.282Z (3 months ago)
- Language: Python
- Size: 2.93 KB
- Stars: 12
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - javier/google_timeline_parser - parse your google location history (timeline) after exporting from google takeout (others)
README
# google_timeline_parser
parse your google location history (timeline) after exporting from google takeout* Export your timeline data with google takeout
* Convert the json into a smaller JSON only with the fields we want using jq `cat LocationHistory.json |jq "[.locations[] | {latitudeE7, longitudeE7, timestampMs}]" > filtered_locations.json `
* Convert the json summary into CSV with jsonv `cat filtered_locations.json |jsonv latitudeE7,longitudeE7,timestampMs > filtered_locations.csv`
* Import the csv into your db. If using BigQuery you can just copy to gcloud and create an external table pointing to your file. Fields are timestamp(TIMESTAMP), date(DATE), lat(FLOAT),lng(FLOAT), and locality(STRING). All of them are required
* Execute your query. I have an example to calculate whole absence days from the UK based on the collected data