As the name suggests. With this PR, the stations are loaded automatically when the StationHelper class is initialised, allowing you to omit the annoying station_helper.load_stations() in your code. To use the class, you need to call this method right after initialisation, so it makes sense to move it to the constructor.
With these changes, the library should still be backwards compatible without any performance loss.
As the name suggests. With this PR, the stations are loaded automatically when the
StationHelper
class is initialised, allowing you to omit the annoyingstation_helper.load_stations()
in your code. To use the class, you need to call this method right after initialisation, so it makes sense to move it to the constructor.With these changes, the library should still be backwards compatible without any performance loss.