A library for accessing the British Network Rail data feeds.
Find out about them here: Open Rail Data
This is a work in progress. At the moment the Train Describer and Train Movements feeds are supported.
-
(ql:quickload :lisp-o-motive)
-
Ensure you have a Network Rail data feeds account, you can sign up here.
-
Add your data feeds account credentials:
(setf lisp-o-motive:*username* "[email protected]" lisp-o-motive:*passcode* "xxx")
You can avoid the hassle of doing this every time by storing your username and passcode in <project-root>/config
:
and lisp-o-motive will read the credentials upon being loaded.
- Establish a connection using
(lisp-o-motive:setup-connection)
.
Clone to ~/quicklisp/local-projects
.
There is an issue with the version of cl-stomp in Quicklisp at the time of writing that can prevent connections from being established; you may like to install a recent version of cl-stomp to ~/quicklisp/local-projects
.
- Selwyn Simsek ([email protected])
Cover picture:
By DiverScout at English Wikipedia, CC BY-SA 3.0, https://commons.wikimedia.org/w/index.php?curid=6802712
Copyright (c) 2019 Selwyn Simsek ([email protected])