2

I have this code to retrieve the current user's address, I need to get the continent information, but it seems to be returning blank. Any idea what am I doing wrong

                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;
                }

enter image description here

Anu
  • 203
  • 2
  • 9

1 Answers1

3

I need to get the continent information, but it seems to be returning blank

Yes, the current existing Windows.Services.Maps.MapLocationFinder.FindLocationsAtAsync API is powered by a REST API Call leveraging Bing Maps Services and HERE Maps Services ("Online Services") providing precise results for the given geo-coordinate.

The Continent information is missing based on current called API(result is encrypted): enter image description here

The related team has plan to refine the result in the future. Temporarily I would suggest you checking Here Map API to get such POI information.

Franklin Chen - MSFT
  • 4,845
  • 2
  • 17
  • 28