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 or None

Example:

>>> from pyrcs.line_data import LocationIdentifiers

>>> lid = LocationIdentifiers()

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

>>> 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']