Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ariya/timeline2sqlite
- Owner: ariya
- Created: 2023-11-18T04:51:14.000Z (almost 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-25T05:24:45.000Z (12 months ago)
- Last Synced: 2024-10-19T23:19:59.368Z (28 days ago)
- Topics: clojure, google-maps, location, nbb, sql, sqlite
- Language: Clojure
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.