diff --git a/Samples/WeatherApp/Core.cs b/Samples/WeatherApp/Core.cs index 31ee5e9..1d61701 100644 --- a/Samples/WeatherApp/Core.cs +++ b/Samples/WeatherApp/Core.cs @@ -5,12 +5,12 @@ namespace WeatherApp { public class Core { - public static async Task GetWeather(string zipCode) + public static async Task GetWeather(string zipCode, string units = "kelvin") { //Sign up for a free API key at http://openweathermap.org/appid string key = "fc9f6c524fc093759cd28d41fda89a1b"; string queryString = "http://api.openweathermap.org/data/2.5/weather?zip=" - + zipCode + "&appid=" + key; + + zipCode + "&appid=" + key + "&units=" + units; var results = await DataService.getDataFromService(queryString).ConfigureAwait(false); diff --git a/Samples/WeatherApp/WeatherPage.xaml b/Samples/WeatherApp/WeatherPage.xaml index 29bc1e0..5de42b2 100644 --- a/Samples/WeatherApp/WeatherPage.xaml +++ b/Samples/WeatherApp/WeatherPage.xaml @@ -34,6 +34,8 @@ FontSize="Medium" />