LocationIdentifiers.collect_other_systems_codes¶
-
LocationIdentifiers.
collect_other_systems_codes
(confirmation_required=True, verbose=False)¶ Collect data of other systems’ codes from source web page.
- Parameters
confirmation_required (bool) – whether to confirm before proceeding, defaults to
True
verbose (bool or int) – whether to print relevant information in console, defaults to
False
- Returns
codes of other systems
- Return type
dict or None
Example:
>>> from pyrcs.line_data import LocationIdentifiers >>> lid = LocationIdentifiers() >>> os_dat = lid.collect_other_systems_codes() To collect data of other systems? [No]|Yes: yes >>> type(os_dat) dict >>> list(os_dat.keys()) ['Other systems', 'Last updated date'] >>> print(lid.OtherSystemsKey) Other systems >>> os_codes = os_dat[lid.OtherSystemsKey] >>> type(os_codes) dict >>> list(os_codes.keys()) ['Córas Iompair Éireann (Republic of Ireland)', 'Crossrail', 'Croydon Tramlink', 'Docklands Light Railway', 'Manchester Metrolink', 'Translink (Northern Ireland)', 'Tyne & Wear Metro']