This repository provides a version of static data from the Back-on-Track night trains database which can be used for various purposes including the night train map on the BoT website.
Data is currently stored in a Google Sheets and this can be extracted as .json files for use with the night train map and other resources.
A Google Apps script has been developed to extract the Google Sheets data, which can be found here: code.gs.
A hosted version of the script is here and can be used for one-off .json file creation.
There are several options for updating the data
- For developers (mainly): If you are using git locally you can get update with this python script - get_snapshot.py which uses the currently hosted version of the script. Then create a pull request with the new files and they will get merged when approved, or if youv'e got the permissions and feeling brave, just commit.
- Manual approach: Click the following links for the data you want:
- view_ontd_map
- view_ontd_list
- agencies
- stops
- routes
- trips
- trip_stop
- calendar
- calendar_dates
- translations
- classes
When you have the data, upload using the GitHub user interface. For further details on using the GitHub user interface see this article: https://docs.github.com/en/repositories/working-with-files/managing-files/editing-files