davglass / zipcodes

Zipcode lookup node module
Other
157 stars 83 forks source link

Filtering Zipcodes by Type #42

Open rvilgalys opened 4 years ago

rvilgalys commented 4 years ago

Maybe this is more of a 'nice to have' feature request, but it would be helpful to know or filter by the type of a zip code being returned (Standard, Military, PO Box Only, Unique) -- For instance we're using this in a real estate related app, and we only need the "standard" codes and it's confusing to have "Muscular Dystrophy, NY" returned in search results.

The data is in the source CSVs from http://federalgovernmentzipcodes.us/ can it be included?

Guzikowski commented 1 year ago

If you add the filtering for type, I could see the benefit to exclude decommissioned zip codes as well. Currently, I am thinking of rolling an exclusion list to accept the requested zip code if not on my exclusion. The exclusion list will be most likely the Military and any other decommissioned codes. This might be scope creep but this would be huge!!