gatelogue_types.RailLine

class gatelogue_types.RailLine(*, i: ID = None, source: set[str] = <factory>, code: str, name: ~gatelogue_types.Sourced[str] | None = None, colour: ~gatelogue_types.Sourced[str] | None = None, mode: ~gatelogue_types.Sourced[RailMode] | None = None, company: ~gatelogue_types.Sourced[ID] = None, stations: list[~gatelogue_types.Sourced[ID]] = <factory>)

Bases: Node

__init__()

Methods

NS()

__init__()

Attributes

code

Unique code identifying the Rail line

colour

Colour of the line (on a map)

company

ID of the RailCompany that operates the line

mode

Type of rail or rail technology used on the line

name

Name of the line

stations

List of all RailStation s the line stops at

i

The ID of the node

source

All sources that prove the node's existence

classmethod NS()
code: str

Unique code identifying the Rail line

colour: Sourced[str] | None

Colour of the line (on a map)

company: Sourced[ID]

ID of the RailCompany that operates the line

i: ID

The ID of the node

mode: Sourced[RailMode] | None

Type of rail or rail technology used on the line

name: Sourced[str] | None

Name of the line

source: set[str]

All sources that prove the node’s existence

stations: list[Sourced[ID]]

List of all RailStation s the line stops at