It currently supports UK, US, Canadian, Australian, New Zealand, and South African postal codes (plus rules to say no postcode is valid in Ireland, as they don't use them), and we'd love to accept contributions to add rules for more countries.
Imagine the following conversation in your asynchronous group communications tool of choice: OK, what now? With the WLD platform we operate in 7 countries, and none of them agree on a postcode format, so this isn't your standard "google for a quick regular expression" validation.
We had some code for attempting to take any old string and convert it to a formatted postcode (so we can be permissive with the input when looking up latitude and longitude from a postcode) so that was the first stop.
One obvious solution is to use a State lookup table, with the primary key as the state code, and data columns for the state name and other information relevant to your needs, such as a shipping charge that varies by state.
Then any table that has a state code can define it as a foreign key to the State table so that relational integrity will be enforced, automatically ensuring that any state code entered is valid.
It is NOT possible to get data in batch or get list of valid postal codes for a given country at a regular interval.
The following countries are supported: The service uses Geo Names as source for all countries except Norway.
Validating your shipping address can help ensure prompt and accurate delivery of your package. UPS Address Validation verified your address and provided the ZIP 4.
However, an exact match does not guarantee that the physical address exists, or that the intended company or recipient occupies the address provided. Chicago IL, 60657UPS Address Validation Response:3258 N. Example 2: Invalid Postal Code: In this example, you are attempting to ship your package to a hotel in Beverly Hills, and you inadvertently mistype the postal code.
For unsupported countries (countries not in the list above), all postal codes will be marked as valid with no city name returned.