简体   繁体   中英

Java Compare Addresses

Does anyone know a library to compare addresses in Java ?

Something that would give equality on addresses, written in different ways.

For example, it should recognize that

"22 Acacia Avenue" and "22 acacia av." 

is the same address.

Of course, this can escalate a lot, that's why i'm asking.

Thanks in advance.

你应该看看这个问题: 哪里是一个好的地址解析器

The only way to truly and accurately compare addresses is to ensure that both are standardized and certified. Within the USA, you can leverage the 12-digit delivery point barcode on a certified address which can serve as a unique identifier for a given address. Beyond that, there's not much else you can because addresses are not self validating and can be written in countless different ways. Even complex regex don't help. And don't get me started on how people spell streets and cities incorrectly.

I should mention that I'm the founder of SmartyStreets. We have a CASS-certified address verification service which allows you to clean, standardize, verify, and confirm each address which then makes duplicate detection a piece of cake. We offer both batch processing to obtain a C ASS-certified list or individual "live" checking via an address verification web service API .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM