postal code : Java Glossary

*0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ (all)
The CurrCon Java Applet displays prices on this web page converted with today’s exchange rates into your local international currency, e.g. Euros, US dollars, Canadian dollars, British Pounds, Indian Rupees… CurrCon requires an up-to-date browser and Java version 1.8, preferably 1.8.0_131. If you can’t see the prices in your local currency, Troubleshoot. Use Firefox for best results.

postal code
Canada’s equivalent to the Zip code. A typical postal code is V3M 5T9, starting with a letter and alternating letters and digits. The first three characters are called the FSA (Forward Sortation Area) and the last three the LDU (Local Deliver Unit). Letters A-Z are allowed except DFIOQU. In addition, W and Z are not allowed in the first position. Unfortunately, there are no freely available tables of valid postal codes, though there is plenty of proprietary software for looking up addresses to get the postal code.

I have yet to find any lookup or validation software with a suitable interface to allow it to be seamlessly integrated into custom software. I have been repeatedly screwed in the ear by vendors promising such an interface if I would buy the product, then not delivering. You end up cutting and pasting to a separate application both to supply the address and to get the resulting postal code — very clumsy. The post office has an online lookup service. That is probably your best bet for seamless integration. Do screenscraping. It will be free and easy to understand, though will require an online connection. It will be more up-to-date than any other service.

It is trivially easy to translate postal code to province, or to do a consistency check. Just look at the first letter of the postal code. If you could find a large address list, you could construct a postal code to city mapping. You could also create one from the data you can buy from the post office.

Digimap offers a list of the legal FSAs (Forward Sortation Areas) in a text file for $500.00 CAD This can be used for data validation, but not automatic postal code lookup.


This page is posted
on the web at:

http://mindprod.com/jgloss/postalcode.html

Optional Replicator mirror
of mindprod.com
on local hard disk J:

J:\mindprod\jgloss\postalcode.html
Canadian Mind Products
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.

IP:[65.110.21.43]
Your face IP:[18.118.19.89]
You are visitor number