2
我有這個代碼來檢索當前用戶的地址,我需要獲取大陸信息,但它似乎返回空白。任何想法,我做錯了UWP MapLocationFinder.FindLocationsAtAsync不返回大陸信息
var geoPos = await geo.GetGeopositionAsync();
var s = await Windows.Services.Maps.MapLocationFinder.FindLocationsAtAsync(geoPos.Coordinate.Point);
var location = s.Locations.FirstOrDefault();
if (location != null)
{
countryCode = location.Address.CountryCode;
}
哦,好的,謝謝你會檢查出來 – Anu