I have a database table that contains street addresses in the following
format:
123 Any St.
456 Some Rd.
7789 That Blvd.
etc.
I.e. Street number, street name, standard abbriviation of road type.
Now, I have a web form where people will type in an address. The
problem is for what I have in the database (123 Any St.) a person might
type in:
123 Any St.
123 Any Street
123 Any
123 Any Street Apt. 4D
123 Any St. # 4D
#4D 123 Any St
etc.
What would be my best bet here? What I need is a sort of "best match"
ability (I'm assuming), but I'm unsure how to do it. Anyone have any
really good ideas?
Note: I'm not interested in Apartment numbers. They should be ignored.
I'm only concerned with building locations.
--
[ Sugapablo ]
[ http://www.sugapablo.com <--music ]
[ http://www.sugapablo.net <--personal ]
[ sugapablo@12jab ber.com <--jabber IM ]
format:
123 Any St.
456 Some Rd.
7789 That Blvd.
etc.
I.e. Street number, street name, standard abbriviation of road type.
Now, I have a web form where people will type in an address. The
problem is for what I have in the database (123 Any St.) a person might
type in:
123 Any St.
123 Any Street
123 Any
123 Any Street Apt. 4D
123 Any St. # 4D
#4D 123 Any St
etc.
What would be my best bet here? What I need is a sort of "best match"
ability (I'm assuming), but I'm unsure how to do it. Anyone have any
really good ideas?
Note: I'm not interested in Apartment numbers. They should be ignored.
I'm only concerned with building locations.
--
[ Sugapablo ]
[ http://www.sugapablo.com <--music ]
[ http://www.sugapablo.net <--personal ]
[ sugapablo@12jab ber.com <--jabber IM ]
Comment