gatelogue_aggregator.sources.rail.nrn.NRN

class gatelogue_aggregator.sources.rail.nrn.NRN(config: Config)

Bases: Yaml2Source, RailSource

__init__(config: Config)

Methods

__init__(config)

custom_routing(line_node, stations, line_yaml)

find_by_ref(v)

find_by_ref_or_index(v)

retrieve_from_cache(config)

sanitise_strings(g)

save_to_cache(config, g)

source(v)

Attributes

file_path

name

priority

g

B

alias of RailLineBuilder

C

alias of RailCompany

L

alias of RailLine

S

alias of RailStation

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/nrn.yaml')
find_by_ref(v: R) N | None
find_by_ref_or_index(v: R | int) N | None
g: rx.PyGraph
name: ClassVar[str] = 'Gatelogue (Rail, NRN)'
priority: ClassVar[float | int] = 1
classmethod retrieve_from_cache(config: Config) rx.PyGraph | None
classmethod sanitise_strings(g: rx.PyGraph)
classmethod save_to_cache(config: Config, g: rx.PyGraph)
classmethod source(v: T) Sourced[T]