thorin Posted June 15, 2004 Share Posted June 15, 2004 Hey Guys, After reading this thread: http://forums.Groundspeak.com/GC/index.php...topic=70506&hl= Specifically graciious' post of Jun 14 2004, 07:00 PM I was wondering if you could add some simple parsing to the search by zip/postal code. ie: Check string length, if 6 and no spaces check whether the string is entirely numeric (zip is 6 char numeric right?). If not insert a space between chars 3 and 4 and continue the search with the new string. Thorin Link to comment
+The Jester Posted June 16, 2004 Share Posted June 16, 2004 Actually, zip is 5 digits numeric. Or nine if the extended 4 digits are added - hmmm, make that 10 as the form is xxxxx-xxxx. Link to comment
thorin Posted June 16, 2004 Author Share Posted June 16, 2004 OH ok that makes it even easier. If 6 insert a space. Link to comment
thorin Posted June 22, 2004 Author Share Posted June 22, 2004 So what's everyone think? Doable? Link to comment
+Geofellas Posted June 22, 2004 Share Posted June 22, 2004 So what's everyone think? Doable? Because the site works for US, Canada, UK and Australian postal codes (the original 6 char request was in respect of the Canadian standard format à la H0H 1H0) these rules are pretty tricky to ascertain I would think. I know that the UK postal codes do not necessarily have a consistent number of characters or layout as regards spacing - e.g. RH7 4HG and PL14 4NF are both valid formats for UK codes. That said a search algorithm that works by removing all non alphanumeric characters a user types and compares against a database with all such chars also removed also should be pretty easy to implement. However, I bet it's a long way down on the priority list... Link to comment
thorin Posted June 24, 2004 Author Share Posted June 24, 2004 Ok....thanks for the reply Link to comment
Recommended Posts