A set of scripts to process Google location kml files to produce useful extracts of the information.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
TEMPLATE_location_config.py
fuzz_addresses.py
get_addresses.py
make_country_chart.py
reduce_kml.py

README.md

google-location-tools

A set of scripts to process Google location kml files to produce useful extracts of the information. More info at: http://www.bricoleur.org/2017/09/google-location-history-to-country-chart.html and, if you have any issues, please @message me on Twitter https://twitter.com/amac

reduce_kml.py -- takes a large Google location kml archive and reduces it to only points that are at least some amount of distance from the last one

get_addresses.py -- goes through a Google location kml archive (or reduced one) and makes a CSV with the timedate stamp and text version of that location

fuzz_addresses.py -- fuzzes the output of get_addresses to give only years and countries (optional)

make_country_chart.py -- takes the csv output of get_countries.py and outputs an HTML file containing a Google country chart annotated with the number of years since each country that has been visited was visited.

Note that get_countries.py expects to access your Google Location API key in a file called location_config.py.

That file should have one variable declared like so: my_Google_api_key = "YOUR-GOOGLE-LOCATION-API-KEY"

A template that file is provided for easy editing as: TEMPLATE_location_config.py