Openweathermap | Yes |
Weatherunderground Weather.com |
Yes |
Yahoo! Weather | NO |
Forecast.io | NO |
weatherClient.getHistoricalWeather(new WeatherRequest(cityId), new Date(), // Start date, new Date(), //end date new WeatherClient.HistoricalWeatherEventListener() { @Override public void onWeatherRetrieved(HistoricalWeather historicalWeather) { } @Override public void onWeatherError(WeatherLibException e) { } @Override public void onConnectionError(Throwable throwable) { } });
ListhistData = historicalWeather.getHoistoricalData(); for (HistoricalHourWeather histHour : histData) { Weather weather = histHour.weather; long timestamp = histHour.timestamp; }