https://github.com/djc/galatna
Create SVG-based maps from Google Latitude location history
https://github.com/djc/galatna
Last synced: 7 months ago
JSON representation
Create SVG-based maps from Google Latitude location history
- Host: GitHub
- URL: https://github.com/djc/galatna
- Owner: djc
- License: mit
- Created: 2014-02-16T09:48:27.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-12-14T13:36:20.000Z (about 11 years ago)
- Last Synced: 2025-03-31T12:57:26.581Z (9 months ago)
- Language: Python
- Size: 320 KB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.txt
Awesome Lists containing this project
README
Galatna
=======
Galatna creates an SVG-based visualization from your Google Location History.
It requires Python 2.7 and a Location History output file
(``LocationHistory.json``) as downloaded from `Google Takeout`_. An example
can be found in the project directory, as ``example.png``. I described the
motivation for and process of writing this code in a `blog post`_.
.. image:: https://raw.github.com/djc/galatna/master/example.png
To create a map, run ``process.py`` with the JSON file as an argument. It will
output some progress messages to ``stderr`` and the SVG to ``stdout``. On a
late 2013 MacBook Pro, the script takes about 18s to process my 700000 data
points (about 5 years worth of Location History data). Use stdout
redirection to send the SVG to a file, then view in your browser of choice;
both Firefox and Chrome do okay, although it will take some time to fully
render the map if you have extensive location history.
Older versions of Takeout's Location History export feature were a bit broken,
in that they exported multiple JSON object keys of the same name with different
data. If you have a similarly broken file, ``combine.py`` can clean it up.
.. _Google Takeout: https://www.google.com/takeout/
.. _blog post: https://dirkjan.ochtman.nl/writing/2012/11/28/tracing-a-path.html