metroapps/national_rail_timetable

National Rail Timetable on the web

2.5.1 2023-03-18 01:57 UTC

This package is auto-updated.

Last update: 2024-04-04 15:38:01 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/