Since I don't know which nuget package you are using, I cannot reproduce your problem now.
But according to your description, I wrote some code using bing map API, please try to see if it can meet your needs.
static async Task Main(string[] args)
{
string zipCode = "99999";
await Pesquisar(zipCode);
Console.WriteLine("Press any key to continue......");
Console.ReadLine();
}
public static async Task Pesquisar(string zipCode)
{
HttpClient httpClient = new HttpClient();
// get key from https://www.microsoft.com/en-us/maps/create-a-bing-maps-key#basic
string mapKey = @"your map key";
try
{
string path = String.Format(@"http://dev.virtualearth.net/REST/v1/Locations?postalCode={0}&key={1}", zipCode, mapKey);
HttpResponseMessage response = await httpClient.GetAsync(path);
response.EnsureSuccessStatusCode();
string responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);
}
catch (HttpRequestException e)
{
Console.WriteLine("\nException Caught!");
Console.WriteLine("Message :{0} ", e.Message);
}
}
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.