gatelogue_aggregator.sources.rail.nsc.NSC

class gatelogue_aggregator.sources.rail.nsc.NSC(config: Config)

Bases: Yaml2Source, RailSource

__init__(config: Config)

Methods

__init__(config)

build(_config)

custom_routing(line_node, stations, line_yaml)

find_by_ref(v)

find_by_ref_or_index(v)

is_coord_source()

report()

reported_nodes()

retrieve_from_cache(config)

sanitise_strings()

save_to_cache(config)

source(v)

Attributes

file_path

name

priority

g

B

alias of RailLineBuilder

C

alias of RailCompany

L

alias of RailLine

S

alias of RailStation

build(_config: Config)
custom_routing(line_node: RailLine | BusLine | SeaLine, stations: list[RailStation | BusStop | SeaStop], line_yaml: YamlLine)
file_path: Path = PosixPath('/home/runner/work/gatelogue/gatelogue/gatelogue-aggregator/src/gatelogue_aggregator/sources/rail/nsc.yaml')
find_by_ref(v: R) N | None
find_by_ref_or_index(v: R | int) N | None
g: rx.PyGraph
classmethod is_coord_source() bool
name: ClassVar[str] = 'Gatelogue (Rail, Network South Central)'
priority: ClassVar[float | int] = 1
report()
classmethod reported_nodes() tuple[type[Node], ...]
retrieve_from_cache(config: Config) rx.PyGraph | None
sanitise_strings()
save_to_cache(config: Config)
classmethod source(v: T) Sourced[T]