Hello,
I'd like to know if there is a faster way to get users' location I'm using the code below, and I find it a little slow about 2-5 seconds to get a location
And also is there a way to get the location's city name in offline mode, ("Microsoft.Phone.Maps.Services" needs internet connexion.)Code:public async Task<Geoposition> UserLocation() { Geolocator geolocator = new Geolocator(); geolocator.DesiredAccuracyInMeters = 50; try { Geoposition geoposition = await geolocator.GetGeopositionAsync( maximumAge: TimeSpan.FromMinutes(5), timeout: TimeSpan.FromSeconds(10) ); return geoposition; } catch (Exception ex) { throw ex; } }
Thank you,

Reply With Quote


