gatelogue_types.DirectionNS

class gatelogue_types.DirectionNS(direction: ID, forward_label: str | None, backward_label: str | None, *, one_way: bool = False)

Bases: Direction

__init__()

Methods

NS()

__init__()

Attributes

backward_label

Describes the direction taken when travelling from the station/stop in forward_towards_code

direction

Reference to or ID of the station/stop that the other fields take with respect to.

forward_label

Describes the direction taken when travelling towards the station/stop in forward_towards_code

one_way

Whether the connection is one-way, ie.

classmethod NS()
backward_label: str | None

Describes the direction taken when travelling from the station/stop in forward_towards_code

direction: ID

Reference to or ID of the station/stop that the other fields take with respect to. Should be either node of the connection

forward_label: str | None

Describes the direction taken when travelling towards the station/stop in forward_towards_code

one_way: bool

Whether the connection is one-way, ie. travel towards the station/stop in forward_towards_code is possible but not the other way