#@james mcallister test for the geo station_by_distance function
#test for task 1B 

#probable issues I am missing a few modules that are needed in datafetcher.py

#import dateutil.parser, import requests

from floodsystem.stationdata import build_station_list
from floodsystem.geo import stations_by_distance

def run():
    """Requirements for Task 1B"""

    # Build list of stations
    
    data = build_station_list()
    stationsDistSorted = stations_by_distance(data, (52.2053, 0.1218))

    # Print number top/bottom ten stations
    print(stationsDistSorted[:10])
    print(stationsDistSorted[-10:])
    

if __name__ == "__main__":
    print("*** Task 1B: CUED Part IA Flood Warning System ***")
    run()

#@james mcallister test for the geo station_by_distance function
#test for task 1B 

#probable issues I am missing a few modules that are needed in datafetcher.py

#import dateutil.parser, import requests

from floodsystem.stationdata import build_station_list
from floodsystem.geo import stations_by_distance

def run():
    """Requirements for Task 1B"""

    # Build list of stations
    
    data = build_station_list()
    stationsDistSorted = stations_by_distance(data, (52.2053, 0.1218))

    # Print number top/bottom ten stations
    print(stationsDistSorted[:10])
    print(stationsDistSorted[-10:])
    

if __name__ == "__main__":
    print("*** Task 1B: CUED Part IA Flood Warning System ***")
    run()

#@james mcallister test for the geo station_by_distance function #test for task 1B #probable issues I am missing a few modules that are needed in datafetcher.py #import dateutil.parser, import requests Requirements for Task 1B # Build list of stations # Print number top/bottom ten stations