Skip to content

Instantly share code, notes, and snippets.

View weirdandwry's full-sized avatar

Weird and Wry weirdandwry

View GitHub Profile

In the TrainMultipleUnit, it will be possible to have one or more composition lines, with this syntax:

composition=translation_id,English name of composition,<unit spec 1>,<unit spec 2>,<unit spec 3>,...

Where a unit spec is defined as either just the TrainUnit ID:

unit_id1

Or a TrainUnit ID followed by a min, default and max number of duplications. 0 is allowed as the min and default number:

TrainUnit tags: coach, restaurant, bar, lounge, observation, baggage, sleeper, sitting, standing, tram, cable-car,
control, end-of-train, railbus, locomotive, deposit, tender, generator
The gauge and power tags from TMU are also allowed
TrainMultipleUnit new fields
introduced: year introduced, integer
retired: year retired, integer
country/ies built by: Alpha-2 from https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes
country/ies operated: Alpha-2 from https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes