您如何处理重复的街道后缀? [英] How do you deal with duplicate street suffixes?

查看:118
本文介绍了您如何处理重复的街道后缀?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个系统,用户需要输入地址。当然,我试图限制重复项,我开始注意到的一个大问题是一些用户输入了 Road,而另一些用户输入了 Rd,因此重复项正在蔓延。

I have a system where users need to enter addresses. I am trying to limit duplicates of course and something I started noticing was becoming a big problem was some users putting in "Road" and others "Rd", therefore duplicates were creeping in.

我查看了USPS街道后缀缩写的列表,但仍然有一个我找不到答案的问题。我可以用USPS标准缩写替换街道地址中的所有单词吗?一个例子是 123 Forest Hill Road。如果我将其替换为缩写,那么它将是 123 Frst Hl Rd或USPS所指的街道后缀是否意味着他们只希望您放到 123 Forest Hill Rd?

I looked up the list of USPS street suffix abbreviations but I still have a question which I can't find an answer to. Can I replace all words in a street address with the USPS standard abbreviation? An example would be "123 Forest Hill Road". If I were to replace it with the abbreviations it would then be "123 Frst Hl Rd" or does the "street suffix" that USPS is referring to mean they only want you to make go as far as "123 Forest Hill Rd"?

推荐答案

USPS具有一个API ,可以为您提供格式正确的地址。

USPS has an API that can get you properly formatted addresses.

这篇关于您如何处理重复的街道后缀?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆