Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ariya/timeline2sqlite

Convert location history to a database
https://github.com/ariya/timeline2sqlite

clojure google-maps location nbb sql sqlite

Last synced: 26 days ago
JSON representation

Convert location history to a database

Awesome Lists containing this project

README

        

# Location History Extractor

This tool turns your Google Maps location history into a database.

It is crafted in [Clojure](https://clojure.org) and executed using [nbb](https://github.com/babashka/nbb) with [Node.js](https://nodejs.org). Its only dependency is [sql.js](https://www.npmjs.com/package/sql.js).

**Requirement:** [Node.js](https://nodejs.org) v18 or newer.

To install the necessary dependencies, run `npm install`.

Grab your location history from [Google Takeout](https://takeout.google.com) and unzip the file. Find those per-month timeline JSON files tucked away in `Location History/Semantic Location History/`.

Run the script on one or more files:
```bash
npm run timeline2sqlite 2023_MAY.json 2023_JUNE.json
```

This will generate a database named `places.sqlite`, overwriting it if it already exists. Open this file using the [sqlite CLI](https://sqlite.org/cli.html), [Datasette](https://datasette.io), or any other database management tool.