Skip to content

Back-on-Track-eu/night-train-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

night-train-data

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.

How to update the data held in this repository

There are several options for updating the data

  1. 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.
  2. Manual approach: Click the following links for the data you want:

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

Releases

No releases published

Packages

No packages published