I was trying to do the same thing... except I resorted to just matching up the first two characters.
 
You might want to check out the following url:
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Rick Mason
Sent: January 17, 2002 1:54 PM
To: [EMAIL PROTECTED]
Subject: [CFTALKTor] Postal Codes

I'm looking for suggestions on how to go about finding postal codes close to a users postal code. 
 
Basically I need to find the closest location of a building to the postal code a user submits.  It needs to be more accurate than just looking for similar characters in the first 3 characters of the postal code.  This is only moderately accurate for metropolitan areas.  An example of where it doesn't work would be a rural code in Ont. starting with L0 where the closest location to this is somewhere in Toronto and the postal code starts with M.
 
Rick Mason
Pangaea NewMedia, Inc.
http://www.pangaeanewmedia.ca
416-922-1600

Reply via email to