简体   繁体   English

Java 比较地址

[英]Java Compare Addresses

Does anyone know a library to compare addresses in Java ?有谁知道一个库来比较 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.在美国,您可以利用经过认证的地址上的 12 位交货点条形码,该条形码可用作给定地址的唯一标识符。 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.我应该提到我是 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.我们有CASS 认证的地址验证服务,可以让您清理、标准化、验证和确认每个地址,然后使重复检测变得轻而易举。 We offer both batch processing to obtain a C ASS-certified list or individual "live" checking via an address verification web service API .我们提供批处理以获取 C ASS 认证列表或通过地址验证 Web 服务 API 进行个人“实时”检查。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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