MacHu-GWU / uszipcode-project

USA zipcode programmable database, includes up-to-date census and geometry information.
MIT License
231 stars 49 forks source link

search by state does not return all zip codes in Texas #32

Closed venkatpolisetti closed 4 years ago

venkatpolisetti commented 4 years ago

Describe the bug

I am using the following code and got only a few zip codes in Texas where as Texas has a lot of zip codes.

search = SearchEngine(simple_zipcode=False) zipcodes = search.by_state('Texas') for zip in zipcodes: print(f"zip: {zip.zipcode}, {zip.county}")

output: zip: 75001, Dallas County zip: 75002, Collin County zip: 75006, Dallas County zip: 75007, Denton County zip: 75009, Collin County

Expected behavior Should return all zip codes in the state of Texas.

venkatpolisetti commented 4 years ago

Looks like I need to pass "returns" parameter so that it would return all of them.