From: gu.martinm@gmail.com Date: Sat, 16 Aug 2014 20:31:00 +0000 (+0200) Subject: WeatherInformation WP8: GetGeopositionAsync 10 secs cache. X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=94522f0b4d572e9233e41cc79a213d2d6a90f3b5;p=CSharpForFun%2F.git WeatherInformation WP8: GetGeopositionAsync 10 secs cache. --- diff --git a/WindowsPhone/WeatherInformation/WeatherInformation/MapPage.xaml.cs b/WindowsPhone/WeatherInformation/WeatherInformation/MapPage.xaml.cs index 585d39e..822847c 100644 --- a/WindowsPhone/WeatherInformation/WeatherInformation/MapPage.xaml.cs +++ b/WindowsPhone/WeatherInformation/WeatherInformation/MapPage.xaml.cs @@ -58,7 +58,7 @@ namespace WeatherInformation geolocator.DesiredAccuracyInMeters = 50; Geoposition geoposition = await geolocator.GetGeopositionAsync( - maximumAge: TimeSpan.FromMinutes(5), + maximumAge: TimeSpan.FromSeconds(10), timeout: TimeSpan.FromSeconds(10) ); GeoCoordinate currentGeoCoordinate = CoordinateHelper.ConvertGeocoordinate(geoposition.Coordinate);