Get location in Xamarin - NAYCode.com

Code Example - Get location in Xamarin - NAYCode.com

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