gatelogue_types.RailLineNS

class gatelogue_types.RailLineNS(*, i: ID = None, source: set[str] = <factory>, code: str, name: str | None = None, colour: str | None = None, mode: RailMode | None = None, company: ID = None, ref_station: ID | None = None)

Bases: RailLine, NodeNS

__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

i

The ID of the node

mode

Type of rail or rail technology used on the line

name

Name of the line

ref_station

ID of one RailStation on the line, typically a terminus

source

All sources that prove the node's existence

classmethod NS()
code: str

Unique code identifying the Rail line

colour: str | None

Colour of the line (on a map)

company: ID

ID of the RailCompany that operates the line

i: ID

The ID of the node

mode: RailMode | None

Type of rail or rail technology used on the line

name: str | None

Name of the line

ref_station: ID | None

ID of one RailStation on the line, typically a terminus

source: set[str]

All sources that prove the node’s existence