Address Matching

vmaneesh

Member
Hello - I am currently dealing with address validation where in i have to compare two addresses and check if they match or not.
The complex part is that the addresses can have the word 'St' in one address and 'Street' in another - but it still needs to be considered as a match. Below are few examples of such scenarios. Please let me know if you guys have any ideas on how to get around this problem.

Scenarios:
123 Hello St = 123 Hello Street
123 S Hello Street = 123 South Hello St
123 North Hello Ave = 123 North Hello Avenue
123 Hello St Apt 2b = 123 Hello Street Unit 2b

Please let me know if you have any questions. Thanks in advance!
 

bot1robot

Member
@vmaneesh

One possible approach would be to prepare a reference table (may be hash table / dictionary with key value pair).
This table will contain such combinations (key = st , Value = Street) and so on .
While doing comparison for two addresses you may scan this table for such key and value pair and replace accordingly.

Hope this helps.

Please post how it goes.
 
Top