Skip to content

Timing_Load

Cyclingbob edited this page Nov 17, 2023 · 2 revisions

Timing Load

Timing load describes the class of train that will run that particular service.

Methods

  • function fromCode(code, power_type)
    Parameter: String data (data is copied highlighted text from train category on the OpenRailData wiki (trainCategory.txt in repository))
    Returns Object of type and unit class/classes
    String[] unit (Array of possible 3 digit code, sometimes with a slash/ to designate train variant such as 172/0)
    String type (describes the type of train such as diesel, electric, whether its a multiple unit or not, sometimes braking details)

Clone this wiki locally