-1
Ich bekomme den folgenden Fehler, wenn ich versuche, diesen Code in meiner UWP-App auszuführen. Ich habe den Code aus dem offiziellen Beispiel:"InvalidCredentials" Fehler in UWP umgekehrt Geocode API
„InvalidCredentials“ Fehler in UWP Reverse Geo-API
BasicGeoposition location = new BasicGeoposition();
location.Latitude = 47.643;
location.Longitude = -122.131;
Geopoint pointToReverseGeocode = new Geopoint(location);
// Reverse geocode the specified geographic location.
MapLocationFinderResult result = await MapLocationFinder.FindLocationsAtAsync(pointToReverseGeocode);
// If the query returns results, display the name of the town
// contained in the address of the first result.
if (result.Status == MapLocationFinderStatus.Success)
{
tbOutputText.Text = "town = " + result.Locations[0].Address.Town;
}