var location = await Geolocation.GetLocationAsync(); if (location != null) { double _log = location.Longitude; double _lat = location. Latitude; }