Bing Map does not return GeoLocation for specific zipcode "98197"

Lokender Tiwari 0 Reputation points
2023-08-31T10:11:22.9433333+00:00

We are using Map control (Windows.UI.Xaml.Controls.Maps) in UWP App. We are generating Route for some list of zipcodes. To get BasicGeoposition using Method (Windows.Services.Maps. MapLocationFinder.FindLocationsAsync). We found this method returns Null for specific zipcodes(98197). We also checked same at Bing Map Api also [http://dev.virtualearth.net/REST/v1/Locations?postalCode=98197&key=xxxxxxxxxxxx]

which also return nothing. We checked the zipcode in google search which shows somewhere in WASHINGTON (US). Could please suggest us on this. How we can achieve BasicGeoposition for this Zipcode (98197)

Windows Maps
Windows Maps
A Microsoft app that provides voice navigation and turn-by-turn driving, transit, and walking directions.
257 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. IoTGirl 3,131 Reputation points Microsoft Employee
    2023-09-01T20:26:17.1233333+00:00

    You can't. A Zip code is a polygon by definition, not a co-ordinate. It does not make sense to generate routes to Zips because they are polygons. Can you step back and tell us the problem you are trying to solve? What you are doing does not make sense to me.

    Take a look at our sample in the Web control that shows 5 US Zip Codes and you will see what I mean https://samples.bingmapsportal.com/?search=zip&sample=load-multiple-boundaries-geodata

    bmv8-geodatamultipleboundaries[1]

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.