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() >>> type(os_codes) <class 'dict'> >>> print(list(os_codes.keys())) ['Other systems', 'Last updated date']