Skip to content

Worldwide railway stations and landmarks from Offware's shared data - #40

Open
davd-gzl wants to merge 2 commits into
mainfrom
shared-places-dataset
Open

davd-gzl wants to merge 2 commits into
mainfrom
shared-places-dataset

Conversation

@davd-gzl

@davd-gzl davd-gzl commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator

Before: railway stations came from Trainline's open database, which covers Europe only. Landmarks were a small hand-seeded list.

After: new users get railway stations worldwide from Wikidata by default, and landmarks are the 10,000 best-known sights (museums, monuments, castles, palaces, parks). Both come from Offware's shared data repository (https://github.com/offware-apps/data), which is CC0 and keeps every record's Wikidata id as its source. Trainline and None stay selectable in Settings.

People who used the app before and never picked a source keep Trainline, so the station ids already saved in their visits keep matching.

How: scripts/fetch-places.mjs downloads stations/railways.json and places/landmarks.json at build time, checks their shape, licence and coordinates, and writes public/reference/railways-wikidata.json and landmarks.json. The Pages and Android workflows run it before the build, and Pages also rebuilds weekly to pick up data updates. The worldwide stations file is runtime-cached rather than precached, since it can outgrow the precache size limit. Provenance (Settings and PROVENANCE.md) names the new sources. Spec in specs/022-shared-places/.

Merge once the shared data is live at https://offware-apps.github.io/data/v1/catalog.json: until then the fetch step fails on purpose, because a build without any stations file would leave new users with no stations.

Checks: typecheck and all 704 unit tests pass locally.

Stations now default to Wikidata's railway stations worldwide, fetched at
build time from the Offware places dataset (CC0), instead of Trainline's
European list. People who used the app before keep Trainline unless they
switch in Settings, so their saved station ids stay valid. Landmarks come
from the same dataset: the 10,000 best-known sights, UNESCO sites excluded.
@davd-gzl davd-gzl self-assigned this Oct 12, 2026
The places repository becomes Offware's shared data repository, with one
folder per dataset: stations/railways.json and places/landmarks.json.
@davd-gzl davd-gzl changed the title Worldwide railway stations and landmarks from the shared places dataset Worldwide railway stations and landmarks from Offware's shared data Oct 12, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant