dpovshed / zipus

Lalavel 5 package to lookup for U.S. zip codes
3 stars 2 forks source link

Many to many relationships between zip code and city #1

Open tflight opened 7 years ago

tflight commented 7 years ago

One thing the associated CSV doesn't account for is that in many cases there is a many to many relationship between zip codes and cities. While many people know that cities can often have more than one zip code, there are also many instances in rural areas where one zip code can serve several "cities".

I live in such an area and these types of services always present a major issue if they try to pre-populate the city based on zip code-- especially if they don't let me override the selection. Mail and deliveries could go to the correct street and street number, but in the wrong town.

Just a friendly FYI. :)

dpovshed commented 7 years ago

@tflight, thanks a lot for your feedback!

Sure, on the same website http://federalgovernmentzipcodes.us/ there is also another database which serves exactly for purposes you mentioned.

Should be quite easy to add support for that one as well, but for now in my project I am using only simplified database.

If there will be any users of my package I will implement this, or gladly review any pull request with this functionality.

Take care!