Spot History
Check-in and visit history is spread across services that each keep a different slice of the past. Spot History collects those slices, stores each source separately, and builds a central index that can be explored as a list or on an OpenStreetMap map.
Sources
- Foursquare and Swarm, incremental API sync of check-ins, venues, photos, lists and tips, with a one-time full backfill and optional premium endpoints.
- Yelp, a one-time import from the HTML export, including check-ins, comments, surveys, business interactions and reviews.
- Google Timeline, an import of the manual Google Maps export, enriched with free OpenStreetMap data because Google no longer provides an API or web export for the current timeline.
Data model
- Each source keeps its own SQLite database under
db/, so an import never blocks or rewrites another source. - A central, rebuildable index merges the sources, resolves duplicate places and writes GeoJSON for the map.
- Original media and generated 320 px thumbnails are kept next to the databases.
- Merged places and manual assignments are kept as explicit state, with OSM data taking priority over manual data, and manual data taking priority over source data.
Web interface
- A FastAPI and Jinja app serves the list and a Leaflet map with OpenStreetMap tiles. Leaflet itself is vendored locally, and list and map selection stay synchronized.
- Visit cards show dates, categories, source links and photos. Stats and audit views expose gaps and unmatched places.
- A sync page starts Foursquare, Yelp, Google and OSM jobs inside the container, rebuilds the index afterwards and writes logs under
data/sync/logs/. - The UI has no authentication. It is meant to sit behind the reverse proxy and is not exposed directly.
Backups
The tool uses the SQLite online backup API, so backups are WAL-safe and can run while the app is in use. A backup is verified after it is written. Backups run from the host through cron or systemd and live on a separate mount, so they do not share the data volume they protect.
Deployment
It runs as a Docker container with db/, data/ and backup/ mounted from the host. The container uses UID/GID 1000, so the mounted directories must be writable by that user. There is no built-in schedule; syncs are started from the UI or by a host job. See the Spot History repository for the compose example and the import workflows.
This page describes the tool, not the data. Personal locations, photos and visits are not published here.