gatelogue_aggregator.types.edge.connections.Direction
- class gatelogue_aggregator.types.edge.connections.Direction(direction: NodeRef[S], forward_label: str | None, backward_label: str | None, one_way: bool | Sourced[bool] = False)
Bases:
Direction
,Struct
,Generic
[S
]- __init__()
Methods
NS
()__init__
()export
(src)get_direction
(src)set_direction
(src, v)Attributes
Describes the direction taken when travelling from the station/stop in
forward_towards_code
Reference to or ID of the station/stop that the other fields take with respect to.
Describes the direction taken when travelling towards the station/stop in
forward_towards_code
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
- forward_label: str | None
Describes the direction taken when travelling towards the station/stop in
forward_towards_code
- 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()