Stations¶
-
class
station.
Stations
(data_dir=None, verbose=True)[source]¶ A class for collecting railway station data.
- Parameters
data_dir (str, None) – name of data directory, defaults to
None
verbose (bool or int) – whether to print relevant information in console as the function runs, defaults to
True
Example:
>>> from pyrcs.other_assets import Stations >>> stn = Stations() >>> print(stn.Name) Stations >>> print(stn.SourceURL) http://www.railwaycodes.org.uk/stations/station0.shtm
Methods
collect_station_data_by_initial
(initial[, …])Collect railway station data for the given
initial
letter.fetch_station_data
([update, pickle_it, …])Fetch railway station data from local backup.
get_station_data_catalogue
([update, verbose])Get catalogue of railway station data.
Parse ‘Operator’ column