📅  最后修改于: 2022-03-11 14:48:54.381000             🧑  作者: Mango
GetLastKnownLocationAsync();
GetLocationAsync();
GetLocationAsync(GeolocationRequest request);
GetLocationAsync(GeolocationRequest request, CancellationToken cancelToken);
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;
}