Which postal code field is recommended to use ?

Rahul Sharma 1 Reputation point
2022-03-07T13:18:26.42+00:00

We have a requirement to auto populate postal code based on the address selected as part of address auto complete functionality that we have developed using the Azure maps apis. In the Azuremaps API related to postal codes we are getting two postal code fields. 1. Postal Code 2. extendedpostalcode. which one is recommended to be used generically as we have requirements to auto populated addresses of different countries.

180693-image.png

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,853 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. hossein jalilian 2,365 Reputation points
    2024-03-09T08:31:03.5966667+00:00

    Thanks for posting your question in the Microsoft Q&A forum.

    In Azure Maps API, the "Postal Code" and "Extended Postal Code" represent different levels of granularity in the postal code information. The specific usage may depend on the country or region, and it's essential to understand the differences between them.

    1. Postal Code: The "Postal Code" typically refers to the primary postal code or ZIP code for a given area. It's the primary code used for sorting and delivering mail. In many countries, this is the standard postal code that most addresses will share.
    2. Extended Postal Code: The "Extended Postal Code" may represent a more detailed or specific portion within the main postal code. It might provide additional information, such as a street block or a specific building within a larger postal zone. However, not all countries or regions use an extended postal code, and in some cases, this field might be empty.

    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful

    0 comments No comments