The current UKFetcher class uses the Environment Agency Hydrology API, which actually only fetches data for England (i.e. not Scotland, Wales or Northern Ireland). This is a legacy from the RivRetrieve R package.
There are three relevant APIs for the UK:
The NRFA is the official UK record of river flow, providing access to daily, monthly and peak flow data. It contains data from the Environment Agency (England), SEPA (Scotland), National Resources Wales (Wales) and Department for Infrastructure - Rivers (Northern Ireland), but does not provide access to realtime data. The EA and SEPA APIs provide access to historical and near-realtime data at sub-daily time scales (down to 15 minutes).
One solution is to split the UKFetcher into NRFAFetcher, EAFetcher and SEPAFetcher. This would imply a change in the naming convention adopted more broadly across the project. Another approach would be to use UKFetcher for NRFA data, and create new classes EnglandFetcher and ScotlandFetcher - this would be consistent with the current approach.
This issue somewhat relates to #9, especially for countries with a separate API for archived historical data and realtime data (e.g. Canada).
The current UKFetcher class uses the Environment Agency Hydrology API, which actually only fetches data for England (i.e. not Scotland, Wales or Northern Ireland). This is a legacy from the RivRetrieve R package.
There are three relevant APIs for the UK:
The NRFA is the official UK record of river flow, providing access to daily, monthly and peak flow data. It contains data from the Environment Agency (England), SEPA (Scotland), National Resources Wales (Wales) and Department for Infrastructure - Rivers (Northern Ireland), but does not provide access to realtime data. The EA and SEPA APIs provide access to historical and near-realtime data at sub-daily time scales (down to 15 minutes).
One solution is to split the UKFetcher into NRFAFetcher, EAFetcher and SEPAFetcher. This would imply a change in the naming convention adopted more broadly across the project. Another approach would be to use UKFetcher for NRFA data, and create new classes EnglandFetcher and ScotlandFetcher - this would be consistent with the current approach.
This issue somewhat relates to #9, especially for countries with a separate API for archived historical data and realtime data (e.g. Canada).