开发者

Is there a chance that street and zipcode data wasn't enough to populate full address

开发者 https://www.devze.com 2023-03-18 22:58 出处:网络
I have a form where I ask the user to input their mailing address. Would there be any issues with asking only street address and zipcode and omitting city and state?

I have a form where I ask the user to input their mailing address. Would there be any issues with asking only street address and zipcode and omitting city and state? User zipcode i开发者_运维知识库n conjunction with zipcode database would result in having full address of the user. Would that be reliable considering that zipcode database is accurate?


Marcin, There is not a one to one relationship between city and zipcode. A city can have multiple zipcodes. A zipcode can cross city lines.

Brian


I wouldn't do that.

  • A ZIP code can contain two different towns, each with a "#123 Main Street" address.
  • A ZIP code may cross state lines, which means you don't have enough information for shipping/tax details.
  • You'll have a very hard time dealing with any customers who live outside of the USA.
0

精彩评论

暂无评论...
验证码 换一张
取 消