def getForecasts(latLongs): allTheForecasts = [] for tempLatLong in latLongs: tempForecast = forecast.daily_forecast_by_lat_lon(tempLatLong[0], tempLatLong[1]) allTheForecasts.append(tempForecast) return allTheForecasts
def get_forecasts(latLongs): all_the_forecasts = [] for temp_lat_long in latLongs: tempForecast = forecast.daily_forecast_by_lat_lon(temp_lat_long[0], temp_lat_long[1]) all_the_forecasts.append(tempForecast) return all_the_forecasts # ADD A METHOD THAT CHECKS AN ARRAY/DB FOR REQUESTS IT HAS ALREADY PROCESSED WITHIN SOME TIME FRAME, AND JUST USE THOSE RESULTS
def get_forecasts(latLongs): all_the_forecasts = [] for temp_lat_long in latLongs: tempForecast = forecast.daily_forecast_by_lat_lon( temp_lat_long[0], temp_lat_long[1]) all_the_forecasts.append(tempForecast) return all_the_forecasts # ADD A METHOD THAT CHECKS AN ARRAY/DB FOR REQUESTS IT HAS ALREADY PROCESSED WITHIN SOME TIME FRAME, AND JUST USE THOSE RESULTS
def getForecast(latitude, longitude): return forecast.daily_forecast_by_lat_lon(latitude, longitude)
def get_forecast(latitude, longitude): return forecast.daily_forecast_by_lat_lon(latitude, longitude)