LocationIdentifiers.fetch_other_systems_codes¶
-
LocationIdentifiers.
fetch_other_systems_codes
(update=False, pickle_it=False, data_dir=None, verbose=False)[source]¶ Fetch data of other systems’ codes from local backup.
- Parameters
update (bool) – whether to check on update and proceed to update the package data, defaults to
False
pickle_it (bool) – whether to replace the current package data with newly collected data, defaults to
False
data_dir (str or None) – name of package data folder, defaults to
None
verbose (bool or int) – whether to print relevant information in console as the function runs, defaults to
False
- Returns
codes of other systems
- Return type
dict
Example:
>>> from pyrcs.line_data import LocationIdentifiers >>> lid = LocationIdentifiers() >>> # os_codes = lid.fetch_other_systems_codes(update=True, verbose=True) >>> os_codes = lid.fetch_other_systems_codes() >>> type(os_codes) dict >>> list(os_codes.keys()) ['Other systems', 'Last updated date'] >>> type(os_codes['Other systems']) dict >>> list(os_codes['Other systems'].keys()) ['Córas Iompair Éireann (Republic of Ireland)', 'Crossrail', 'Croydon Tramlink', 'Docklands Light Railway', 'Manchester Metrolink', 'Translink (Northern Ireland)', 'Tyne & Wear Metro']