logoalt Hacker News

ghostly_stoday at 12:09 AM4 repliesview on HN

> A city can also exist in multiple zip codes. And there can be multiple cities with the same name in the same state.

These are reasons you cannot deduce the Zip from the city, not the opposite. A ZIP+4 actually encodes all other information for a US address.


Replies

Someone1234today at 12:14 AM

Nobody knows their +4 code. You cannot ask for information 90%+ of people won't have.

show 3 replies
bombcartoday at 1:04 AM

A ZIP+4 does not encode all information.

Proof: a post office has its own zip code, for PO Boxes.

The +4 is the last four digits of the post office box.

If the Post Office has more than 10,000 boxes, the +4 will be duplicated.

show 1 reply
Tweytoday at 1:04 AM

ZIP+4? I think that's literally enough digits to give every house in the US (about 150,000,000 apparently) its own identifier.

show 3 replies
tokyobreakfasttoday at 12:22 AM

Wrong. There can also be multiple cities in the same ZIP code. There is not a 1:1 relationship with a 5-digit ZIP as everyone is assuming here.