This Python package provides a CLI, a web API server, and library, to:
- get station information and departures from public transport operators,
- update a virtual or physical departure board with departure information for a station.
Departure has out-of-the-box support for the following operators:
- London Underground (UK),
- National Rail (UK),
- Nederlandse Spoorwegen (Netherlands)
- RATP (France),
- SNCF (France),
- Transilien (France).
Departure information can be sent to a departure board server that supports the Departure protocol buffer message format.
As an illustration, the image below was created using the Python Departure board server running the Pygame back end.
The video clip below was made using a physical LED matrix board running the C++ Departure board server on a Raspberry Pi.
The official web front end provides a human-friendly way to interact with the web API server.
See the Departure-Python documentation web page for complete instructions on how to use this Python package.
Written by Sébastien Pujadas, released under the MIT license.
All product names, logos, and brands are property of their respective owners. All company, product and service names used in this project are for identification purposes only. Use of these names, logos, and brands does not imply endorsement.
The London Underground (TfL Tube) engine is powered by TfL Open Data. Contains OS data © Crown copyright and database rights 2016' and Geomni UK Map data © and database rights [2019].
The National Rail engine is powered by National Rail Enquiries. The built-in list of National Rail station codes was derived from https://www.nationalrail.co.uk/stations_destinations/48541.aspx.
The built-in list of Nederlandse Spoorwegen station codes was retrieved from Rijden de Treinen.
The built-in WSDL file used to access RATP's real-time web service was extracted from RATP's API development kit.
The built-in list of SNCF stations (used by the SNCF and Transilien engines) was obtained from the Gares de voyageurs dataset, which is released under the ODbL (Open Database License).
The built-in list of Transilien stations and stops was obtained from the Gares et points d'arrêt du réseau Transilien dataset, which is released under the ODbL (Open Database License).