zh-wang / YWeatherGetter4a

An Yahoo Weather API wrapper for android
99 stars 45 forks source link

Some values are only available in Imperial units #7

Closed zipgenius closed 8 years ago

zipgenius commented 11 years ago

While some value could be retrieved in both Metric and Imperial system (just as temperatures), some other values are in Imperial system only. I mean: Wind Chill (in *F only) Pressure (not in mbar) Speed (in MPH, not in Km/H) Visibility (in miles, not in Km)

The RSS feed provided by Yahoo! Weather has a parameter to get all values in Metric or Imperial system.

http://weather.yahooapis.com/forecastrss?q=Reggio+Calabria&u=c (This will retrieve info in Metric system)

http://weather.yahooapis.com/forecastrss?q=Reggio+Calabria&u=f (This will retrieve the same info in Imperial format)

zh-wang commented 11 years ago

Yes. It seems to add a param to specify the format you want to get. I will push code later.