server/api_class.py
def run_purpleair(threshold: int, max_num: int, miles: int, lat: float, lon: float) -> list:
    ''' retrieves necessary information from the purple air json file online'''
    url = 'https://www.purpleair.com/data.json'
    result = API('https://www.purpleair.com/data.json')
    result = result.get_result(url)
    result = purpleair.run_PURPLEAIR(result, threshold, max_num, miles, lat, lon)
    return result
 retrieves necessary information from the purple air json file online
retrieves necessary information from the purple air json file online
retrieves necessary information from the purple air json file online
def run_purpleair(threshold: int, max_num: int, miles: int, lat: float, lon: float) -> list:
    url = 'https://www.purpleair.com/data.json'
    result = API('https://www.purpleair.com/data.json')
    result = result.get_result(url)
    result = purpleair.run_PURPLEAIR(result, threshold, max_num, miles, lat, lon)
    return result
def run_purpleair ( threshold : int , max_num : int , miles : int , lat : float , lon : float ) -> list : url = 'https://www.purpleair.com/data.json' result = API ( 'https://www.purpleair.com/data.json' ) result = result . get_result ( url ) result = purpleair . run_PURPLEAIR ( result , threshold , max_num , miles , lat , lon ) return result
retrieves necessary information from the purple air json file online
retrieves necessary information from the purple air json file online
''' retrieves necessary information from the purple air json file online'''
threshold
int
max_num
int
miles
int
lat
float
lon
float