miklcct / national_rail_timetable
National Rail Timetable on the web
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ^8.1
- ext-mongodb: *
- filp/whoops: ^2.14
- guzzlehttp/guzzle: ^7.5
- http-interop/http-factory-guzzle: ^1.2
- miklcct/rail_open_timetable_data: ^1.5
- miklcct/thin_php_app: ^0.6.1
- mongodb/mongodb: ^1.12
- php-di/php-di: ^6.4
- psr/simple-cache: ^1.0
- symfony/cache: ^6.1
- thecodingmachine/safe: ^2.1
Requires (Dev)
- roave/security-advisories: dev-latest
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
- Copy
config.example.php
toconfig.php
and set its values - Run
composer install
- Run
yarn install
- Run
yarn vite build
- 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/