gatelogue_aggregator.types.connections.Direction

class gatelogue_aggregator.types.connections.Direction(direction: NodeRef[S], forward_label: str | None, backward_label: str | None, one_way: bool | Sourced[bool] = False)

Bases: Direction, Struct, Generic[CTX, S]

__init__()

Methods

NS()

__init__()

export(ctx)

get_direction(ctx)

sanitise_strings()

set_direction(ctx, v)

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: NodeRef[S]

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

export(ctx: CTX) Direction
forward_label: str | None

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

get_direction(ctx: CTX) S
one_way: bool | Sourced[bool]

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

sanitise_strings()
set_direction(ctx: CTX, v: S)