Find the postal code from the hosted shapefile.

Balasaheb Molawade 136 Reputation points
2024-06-27T13:19:17.9833333+00:00

Hi,

We have hosted the shapefile (with postal codes) on our Bing Map portal. We need to get the coordinates of any specific postal code. For example, when we pass the postal code '98201' that is included in the shapefile, we need to query the shapefile URL to get the coordinates of that specific postal code. We need in c# code.

Thanks!

Azure Maps
Azure Maps
An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.
649 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. rbrundritt 16,331 Reputation points Microsoft Employee
    2024-06-27T17:18:32.5+00:00

    The find by property code in this documentation is what you are looking for: https://video2.skills-academy.com/en-us/bingmaps/spatial-data-services/query-api/query-api-sample-code-csharp

    Alternatively you can use the https://github.com/Microsoft/BingMapsSDSToolkit There is a nuget package for this here: https://www.nuget.org/packages/BingMapsSDSToolkit Here is a code sample for finding by property: https://github.com/microsoft/BingMapsSDSToolkit/tree/master/Docs#example-find-by-property

    As you know, Bing Maps is retiring. Azure Maps is unlikely to create an alternative for the Bing Spatial Data Services as there is lots of other options for data storage and access in Azure that provide a lot more security and capabilities, and would cost significantly less.