Skip to content
Python script converts your Google location data to GeoJSON format
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Python script converts your Google location data to GeoJSON format. Great fun if you have or had an Android phone with GPS enabled!

This script requires the geojson library to function. Running "pip install geojson" should take care of the dependency.

Usage: Download your personal location history from and extract the JSON file into the same folder as this script. Change the filename in your file system or the path in the script if necessary. Execute by running "python" and look for the output file google_points.geojson when it is done.

The script takes care of converting the latitude and longitude to the correct format as well as putting timestamps into human-readable form. Once your location data is in GeoJSON you can use it a lot more easily for things like plotting on a map. Desktop tools like QGIS, and for the web, the Leaflet mapping library play well with GeoJSON. For an example of the latter check out

You can’t perform that action at this time.