keep in mind that, like I said, there is a certain degree of risk involved in using services like these... unless you either don't need to be too accurate or they actually guarantee accuracy (which they don't). That said, in the UK a web service like this is probably rather accurate. I wouldn't recommend this approach in the U.S. - streets are added far too often and there are too many roads already there... you shouldn't expect better than a 60 to 70 (at best) percent accuracy rate. One other alternative is to take whatever word they type and use verity to do a soundex on it. It it's not a real word or a derivitive of one, it's probably fake.
~Simon Simon Horwith CTO, Etrilogy Ltd. Member of Team Macromedia Macromedia Certified Instructor Certified Advanced ColdFusion MX Developer Certified Flash MX Developer CFDJList - List Administrator http://www.how2cf.com/ -----Original Message----- From: Ellwood [mailto:[EMAIL PROTECTED] Sent: 11 October 2003 23:49 To: [EMAIL PROTECTED] Subject: RE: [ cf-dev ] Valid address checker I think so.. -----Original Message----- From: Snake Hollywood [mailto:[EMAIL PROTECTED] Sent: 11 October 2003 23:43 To: [EMAIL PROTECTED] Subject: RE: [ cf-dev ] Valid address checker Very nice :-) Does this just do UK addresses ? > -----Original Message----- > From: NTL [mailto:[EMAIL PROTECTED] > Sent: 11 October 2003 21:45 > To: [EMAIL PROTECTED] > Subject: RE: [ cf-dev ] Valid address checker > > > If there is a free one then I would love to know. There are > plenty of really expensive alternatives such as GBGroup, > Quick Address, etc that use dll's called via cfc and com. > > There is however, a site available that I worked on recently > that have their own address finder which you might find it > useful to use (inadvertantly that is). The code that may or > may not work ;-) is as > follows: > > <!--- Find the address ---> > <CFOBJECT action="CREATE" > class="MSXML2.XMLHTTP" name="objXMLSend" type="COM"> > <CFSET PostCode = Replace(Trim(attributes.PostCode)," > ","","ALL")> > <CFSET Premise = attributes.Premise> > <CFSET str_PostData = > "postcode=#PostCode#&building_name=#Premise#"> > > <CFSCRIPT> > > objXMLSend.Open("Post","http://www.GlobalDataManagement.co.uk/ > clients/co > ors_brewers/2934/address/get_address.php?#str_PostData#", False); > objXMLSend.Send(); > str_Response = objXMLSend.responseText; > </CFSCRIPT> > <!--- Extract each address element form the result > string ---> > <CFIF FindNoCase("<error>",str_Response) eq 0> > <CFSET start = > FindNoCase("<line1>",str_Response)> > <Cfset line1start = start + 7> > <CFSET end = > FindNoCase("</line1>",str_Response)> > <CFSET address1 = > Mid(str_Response,line1start,end-line1start)> > > <CFSET start = > FindNoCase("<line2>",str_Response)> > <Cfset line2start = start + 7> > <CFSET end = > FindNoCase("</line2>",str_Response)> > <CFSET address2 = > Mid(str_Response,line2start,end-line2start)> > > <CFSET start = > FindNoCase("<line3>",str_Response)> > <Cfset line3start = start + 7> > <CFSET end = > FindNoCase("</line3>",str_Response)> > <CFSET address3 = > Mid(str_Response,line3start,end-line3start)> > > <CFSET start = > FindNoCase("<town>",str_Response)> > <Cfset townstart = start + 6> > <CFSET end = FindNoCase("</town>",str_Response)> > <CFSET town = > Mid(str_Response,townstart,end-townstart)> > > <CFSET start = > FindNoCase("<postcode>",str_Response)> > <Cfset postcodestart = start + 10> > <CFSET end = > FindNoCase("</postcode>",str_Response)> > <CFSET postcode = > Mid(str_Response,postcodestart,end-postcodestart)> > </CFIF> > > However, I will deny this code exists if anyone asks. And If > they ask where it cam from just say 5 fgJvbff Street, vghfghffh, TS13 > > > -----Original Message----- > From: Snake Hollywood [mailto:[EMAIL PROTECTED] > Sent: 11 October 2003 21:31 > To: [EMAIL PROTECTED] > Subject: RE: [ cf-dev ] Valid address checker > > When I say addresses, I don't mean e-mail. I mean street addresses. > > E.g > > 1 sevenacres grove > Valid address > > Sdklfjdkslfjdkl > Invalid address > > > > -----Original Message----- > > From: Simon Horwith [mailto:[EMAIL PROTECTED] > > Sent: 11 October 2003 21:08 > > To: [EMAIL PROTECTED] > > Subject: RE: [ cf-dev ] Valid address checker > > > > > > not to say that this is the best solution, but off of the top > > of my head one thing you can do is check to make sure that an > > address username doesn't have more than 4 or 5 consanants in > > a row... that's an extremely rare case with legitimate > > addresses. You can also finger addresses, but you then have > > to accept that fingering isn't going to work with web-based > > e-mail clients like hotmail, yahoo, etc. Not last time I > > checked, anyway. This obviously isn't going to catch 100% of > > the garbage - but the odds are good that whatever it does > > catch, is garbage. > > > > ~Simon > > > > Simon Horwith > > CTO, Etrilogy Ltd. > > Member of Team Macromedia > > Macromedia Certified Instructor > > Certified Advanced ColdFusion MX Developer > > Certified Flash MX Developer > > CFDJList - List Administrator > > http://www.how2cf.com/ > > > > > > -----Original Message----- > > From: Snake Hollywood [mailto:[EMAIL PROTECTED] > > Sent: 11 October 2003 19:49 > > To: [EMAIL PROTECTED] > > Subject: [ cf-dev ] Valid address checker > > > > > > Guys, > > > > I am really getting miffed with all the bogus signups on > > cfdeveloper now, it wastes my time having to sift through all > > the bogus ones to validate the legit ones. Does anyone have > > any kind of script that can intelligently check form fields > > and identify addresses or names which are total garbage so I > > can reject them. I have registered on sites myself and just > > typed in junk and it has been caught as junk, so I know it's > > not an impossible request. > > > > Russ Michaels > > Macromedia/Allaire Certified ColdFusion Developer > > > > CFDeveloper > > The free resource and community for ColdFusion developer. > http://www.cfdeveloper.co.uk > > Join the CFDeveloper discussion lists. > To subscribe send an e-mail to [EMAIL PROTECTED] > > > -- > ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] For > human help, e-mail: [EMAIL PROTECTED] > > > > > > > -- > ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] For > human help, e-mail: [EMAIL PROTECTED] > > > -- > ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > For human help, e-mail: [EMAIL PROTECTED] > > > -- > ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > For human help, e-mail: [EMAIL PROTECTED] > -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED] -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED] -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
