Re: Canadian Postal Codes

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 38816
interpreted = N
texte = Canadian postal codes are formatted LNL NLN, as you pointed out. The first three characters (LNL) denote the Forward Sortation Area (FSA), and the last three denote the Local Delivery Unit (LDU).FSAs are polygons representing the boundaries that encompass postal code points with the first three characters in common, designating a postal delivery area. For example, both postal codes S7K 2Y2 and S7K 2H3 would be found in the same FSA - S7K.Unless your dealers know which FSAs they cover (and major Canadian cities like Toronto can have up to 50), then you might have to try something else. There are companies who sell lists of postal codes, with the FSAs matched to geographic coordinates (latitude/longitude).Canadian postal codes are somewhat of a mystery, even to Canadians. Heck, I didn't even know how they were formatted until you asked this question, and my own curiosity led me to research it!Clint Davis wrote:> I've just completed a zip search feature for a client. It works like this: > 1. Each of their dealers covers has a zip range (i.e. 47700 - 49800) > that they cover. > 2. Visitors enter their zip into a form. > 3. My search finds the dealer whose zip range covers the visitors zip. > > My client wants to do the same thing for Canadian postal codes now. Does > anyone know how CAN post codes are formatted? Is there any rhyme or > reason to their organization? > > I know that they all fit this form: > Letter/Number/Letter Number/Letter/Number (A1B 2C3) > > Is this going to be possible without the use a specialized app/cgi? -- Daryl Mitchell, Technical Service Operator PW Group - Saskatoon, SK CANADA Ph: (306) 665-2212 Fax: (306) 664-0094 Toll-free: (866) 241-1109 E-Mail: support@pwgroup.ca Office hours: 8:30 am - 5:00 pm CST, Mon - Fri ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Using grep to parse Canadian Postal Codes (John Peacock 2002)
  2. Using grep to parse Canadian Postal Codes (Dennis J. Bonsall, Jr. 2002)
  3. Re: Canadian Postal Codes (location-based searching) (David M. Dantowitz 2001)
  4. Re: Canadian Postal Codes (Ken MacMurchy 2001)
  5. Re: Canadian Postal Codes (Christopher Mackay 2001)
  6. Re: Canadian Postal Codes (Daryl Mitchell 2001)
  7. Re: Canadian Postal Codes (John Peacock 2001)
  8. Canadian Postal Codes (Clint Davis 2001)
Canadian postal codes are formatted LNL NLN, as you pointed out. The first three characters (LNL) denote the Forward Sortation Area (FSA), and the last three denote the Local Delivery Unit (LDU).FSAs are polygons representing the boundaries that encompass postal code points with the first three characters in common, designating a postal delivery area. For example, both postal codes S7K 2Y2 and S7K 2H3 would be found in the same FSA - S7K.Unless your dealers know which FSAs they cover (and major Canadian cities like Toronto can have up to 50), then you might have to try something else. There are companies who sell lists of postal codes, with the FSAs matched to geographic coordinates (latitude/longitude).Canadian postal codes are somewhat of a mystery, even to Canadians. Heck, I didn't even know how they were formatted until you asked this question, and my own curiosity led me to research it!Clint Davis wrote:> I've just completed a zip search feature for a client. It works like this: > 1. Each of their dealers covers has a zip range (i.e. 47700 - 49800) > that they cover. > 2. Visitors enter their zip into a form. > 3. My search finds the dealer whose zip range covers the visitors zip. > > My client wants to do the same thing for Canadian postal codes now. Does > anyone know how CAN post codes are formatted? Is there any rhyme or > reason to their organization? > > I know that they all fit this form: > Letter/Number/Letter Number/Letter/Number (A1B 2C3) > > Is this going to be possible without the use a specialized app/cgi? -- Daryl Mitchell, Technical Service Operator PW Group - Saskatoon, SK CANADA Ph: (306) 665-2212 Fax: (306) 664-0094 Toll-free: (866) 241-1109 E-Mail: support@pwgroup.ca Office hours: 8:30 am - 5:00 pm CST, Mon - Fri ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Daryl Mitchell

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

RE: path hierarchy notation (1998) HELP WITH DATES (1997) WebCatalog2 Feature Feedback (1996) Moving records (2000) Can't Update records (1997) MasterCounter Weirdness (1997) Help formatting search results w/ table (1997) [OT] Unix question -solution?- (2002) Progress !! WAS: Trouble with formula.db (1997) WebCat2b13MacPlugIn - More limits on [include] (1997) showif and cart (1997) RAM variables (1997) results in a table (2000) SQL Ref. (1999) name of file (2002) Date or time comparisons have bugs ... (1998) [WebDNA] Encode cookies ONLY via "method=Base64" (2008) Calendar (1997) RE: Re:Signal Raised (1997) Quickie question on the email templates (1997)