0
            `var locator = CrossGeolocator.Current;
            locator.DesiredAccuracy = 50;
            ActInd.IsRunning = true;
            Submit.IsEnabled = false;
            var position = await 
            locator.GetPositionAsync(TimeSpan.FromSeconds(20), null, true);

            var geoposition = new Xamarin.Forms.Maps.Position(position.Latitude,position.Longitude);
            var possibleAddresses = await geoCoder.GetAddressesForPositionAsync(geoposition);

            string finaladdress = "";
            foreach (var address in possibleAddresses)

                finaladdress = address.ElementAt(0).getlocality(); //Notrecognising getlocality();

` Not able to implement the getlocality function to get city or region name

0 Answers0