public class YahooWeatherService extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
YahooWeatherService.LimitDeclaration |
| Constructor and Description |
|---|
YahooWeatherService() |
YahooWeatherService(Proxy proxy) |
| Modifier and Type | Method and Description |
|---|---|
Channel |
getForecast(String woeid,
DegreeUnit unit)
Gets the Weather RSS feed.
|
YahooWeatherService.LimitDeclaration |
getForecastForLocation(String location,
DegreeUnit unit)
Gets the Weather RSS feed for the specified location.
|
public YahooWeatherService()
throws JAXBException
JAXBExceptionpublic YahooWeatherService(Proxy proxy) throws JAXBException
JAXBExceptionpublic Channel getForecast(String woeid, DegreeUnit unit) throws JAXBException, IOException
woeid - the location WOEID.unit - the degrees units.JAXBException - if an error occurs parsing the response.IOException - if an error occurs communicating with the service.public YahooWeatherService.LimitDeclaration getForecastForLocation(String location, DegreeUnit unit)
location - the location to search.unit - the degrees units.Copyright © 2016. All rights reserved.