metroapps/national_rail_timetable

National Rail Timetable on the web

2.6.0 2024-05-09 22:45 UTC

This package is auto-updated.

Last update: 2024-11-20 13:01:45 UTC


README

This is a website of showing National Rail timetable information. It comes with two forms: departure board view, and timetable view.

Departure board view

It lists the departures in order, the destination, and all subsequent calling points of all portions.

Timetable view

It is the web version of traditional timetables, listing the information in the traditional tabular form similar to paper timetables, but updated using the latest journey planner data.

Installation

  1. Copy config.example.php to config.php and set its values
  2. Run composer install
  3. Run yarn install
  4. Run yarn vite build
  5. Point the web root to public_html folder

Loading data

Run bin/update.bash with EMAIL and PASSWORD environment variables set to your National Rail Open Data credentials. It should be put into the scheduler to be run every day.

Demo

A public instance is located at https://gbtt.uk/