From 94522f0b4d572e9233e41cc79a213d2d6a90f3b5 Mon Sep 17 00:00:00 2001 From: "gu.martinm@gmail.com" Date: Sat, 16 Aug 2014 22:31:00 +0200 Subject: [PATCH] WeatherInformation WP8: GetGeopositionAsync 10 secs cache. --- WindowsPhone/WeatherInformation/WeatherInformation/MapPage.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.1.4