LocationIdentifiers.collect_other_systems_codes

LocationIdentifiers.collect_other_systems_codes(confirmation_required=True, verbose=False)[source]

Collect data of other systems’ codes from source web page.

Parameters
  • confirmation_required (bool) – whether to require users to confirm and proceed, defaults to True

  • 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, None

Example:

>>> from pyrcs.line_data import LocationIdentifiers

>>> lid = LocationIdentifiers()

>>> os_codes = lid.collect_other_systems_codes(confirmation_required=False)

>>> type(os_codes)
<class 'dict'>
>>> print(list(os_codes.keys()))
['Other systems', 'Last updated date']