private void LocationObtained(object sender, ILocationEventArgs e) { lat = e.lat; lng = e.lng; lblCoords.Text = $"{lat}, {lng}"; }
private void LocationUpdateService_LocationChanged(object sender, ILocationEventArgs e) { //Here you can get the user's location from "e" -> new Location(e.Latitude, e.Longitude); //new Location is from Xamarin.Essentials Location object. }