2 ms·
FWIW: Getting state from ZIP would break some edge case users. zip->state is not a many to one mapping, it's many to many. Example: Zip code 19973 spans both
by DannyBee 14y ago
FWIW: Getting state from ZIP would break some edge case users.
zip->state is not a many to one mapping, it's many to many.
Example: Zip code 19973 spans both maryland and delaware.
https://www.google.com/maps/vt/data=Ay5GWBeob_WIPLDYoIWcfVXxvZu9XwJ55OX7Ag,q-Y-xGZnjBtbUjikTIP2bwFiNcmI_ebT8zGEfQfwkYESkqn6Rv4N9WzHJ11Q1mHuVZdyvSMZ2bMokNzF2r1CBv9uz0iz96WUYOibyHYBjUuQ2ZkuMqTme7UR4ZYygTcKE5a6jU9kyTIu7e5AO0muRObcGObFk-JTWkGkd6jfOEKc7jRZKxOY6z_GHtPrtA https://www.google.com/maps/vt/data=Ay5GWBeob_WIPLDYoIWcfVXx...
The dashed vertical line is the maryland/delaware boundary.
You can see there are people both in maryland, and delaware, who have that zip code. The post office is in seaford, de.
This actually came up in the real world in some elections stuff, because these folks often list their mailing address as in seaford, de, but vote in maryland ;)