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