WeatherInformation WP8: GetGeopositionAsync 10 secs cache.
authorgu.martinm@gmail.com <gu.martinm@gmail.com>
Sat, 16 Aug 2014 20:31:00 +0000 (22:31 +0200)
committergu.martinm@gmail.com <gu.martinm@gmail.com>
Sat, 16 Aug 2014 20:31:00 +0000 (22:31 +0200)
WindowsPhone/WeatherInformation/WeatherInformation/MapPage.xaml.cs

index 585d39e..822847c 100644 (file)
@@ -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);