get current location latitude and longitude in android -NAYCode
Code Example - get current location latitude and longitude in android -NAYCode
GetLastKnownLocationAsync();
GetLocationAsync();
GetLocationAsync(GeolocationRequest request);
GetLocationAsync(GeolocationRequest request, CancellationToken cancelToken);
get current location latitude and longitude in android
//We will use GetLocationAsync in this example. This function will coordinates using device GPS.
var location = await Geolocation.GetLocationAsync();
if (location != null)
{
double _log = location.Longitude;
double _lat = location. Latitude;
}