gatelogue_aggregator.sources.yaml2source.Yaml2Source
- class gatelogue_aggregator.sources.yaml2source.Yaml2Source(config: Config)
Bases:
RailSource
,BusSource
,SeaSource
Methods
__init__
(config)custom_routing
(line_node, stations, line_yaml)find_by_ref
(v)retrieve_from_cache
(config)save_to_cache
(config, g)source
(v)Attributes
- C: type[RailCompany | BusCompany | SeaCompany]
- S: type[RailStation | BusStop | SeaStop]
- custom_routing(line_node: RailLine | BusLine | SeaLine, stations: list[RailStation | BusStop | SeaStop], line_yaml: YamlLine)
- file_path: Path
- g: rx.PyGraph
- classmethod sanitise_strings(g: rx.PyGraph)