gatelogue_types.BusLine

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

Bases: Node

__init__()

Methods

NS()

__init__()

Attributes

code

Unique code identifying the bus line

colour

Colour of the line (on a map)

company

ID of the BusCompany that operates the line

name

Name of the line

stops

List of all BusStop 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 bus line

colour: Sourced[str] | None

Colour of the line (on a map)

company: Sourced[ID]

ID of the BusCompany that operates the line

i: ID

The ID of the node

name: Sourced[str] | None

Name of the line

source: set[str]

All sources that prove the node’s existence

stops: list[Sourced[ID]]

List of all BusStop s the line stops at