コード例 #1
0
ファイル: oracle.py プロジェクト: jomogalla/campclimate
def getForecasts(latLongs):
	allTheForecasts = []

	for tempLatLong in latLongs:
		tempForecast = forecast.daily_forecast_by_lat_lon(tempLatLong[0], tempLatLong[1])
		allTheForecasts.append(tempForecast)

	return allTheForecasts
コード例 #2
0
ファイル: oracle.py プロジェクト: jomogalla/campclimate
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
コード例 #3
0
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
コード例 #4
0
ファイル: oracle.py プロジェクト: jomogalla/campclimate
def getForecast(latitude, longitude):
	return forecast.daily_forecast_by_lat_lon(latitude, longitude)
コード例 #5
0
def get_forecast(latitude, longitude):
    return forecast.daily_forecast_by_lat_lon(latitude, longitude)