benjymous/MWM-for-Android — pull request #42 by dedee (2012-07-14 07:26:32+00:00)
Title: Yahoo Weather and some Google Weather fixes

- Added GeoLocation feature to Google Weather API code
- Using Apache HttpClient to query the Google API
- GoogleWeather using int instead of float temperature values. There is not enough space on Watch UI to display values behind decimal place (min/max values were truncated)
- Refactored: Moved Google/Wunderground code from Monitor class to separate impl files and created a common interface
- Made Geo location property default true (would make initial setup easier)
- Refactored: Moved the update check (prevention of requesting weather data too often) to base class AbstractWeatherEngine
- NEW Yahoo Weather API code. It uses the weather API and placefinde API from Yahoo to request location (reverse lookup from coordinates lat/lon to address) and weather data. It requires a so called WOEID, an unique geo place id, which is required to request weather data. Such an ID can either requested for geo location (lat/lon) or an address.