Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zipcode 75036 returns "None" for all fields when using SearchEngine().by_zipcode() #39

Open
magnawhale opened this issue Aug 28, 2020 · 2 comments

Comments

@magnawhale
Copy link

I love this package, but encountered a missing zip code (or maybe there's some other error going on).
I am using uszipcode==0.2.4 .

Code to reproduce the issue:

from uszipcode import SearchEngine

SearchEngine(simple_zipcode=True).by_zipcode('75036')

# OUTPUT:
SimpleZipcode(zipcode=None, zipcode_type=None, major_city=None, post_office_city=None, common_city_list=None, county=None, state=None, lat=None, lng=None, timezone=None, radius_in_miles=None, area_code_list=None, population=None, population_density=None, land_area_in_sqmi=None, water_area_in_sqmi=None, housing_units=None, occupied_housing_units=None, median_home_value=None, median_household_income=None, bounds_west=None, bounds_east=None, bounds_north=None, bounds_south=None)

Expected behavior

Zipcode 75036 does in fact exist, it is located just north of Dallas, Texas.

@magnawhale
Copy link
Author

I also found another real zip code that erroneously returns 'None':

zipcode 97003 is in Oregon

@a143416
Copy link

a143416 commented Nov 5, 2021

I am experiencing same issue with v0.2.6. For some zip codes, the app can find the city name but returns null for gps-related data.

from uszipcode import SearchEngine
search.by_zipcode("34265")

SimpleZipcode(zipcode='34265', zipcode_type='PO Box', major_city='Arcadia', post_office_city=None, common_city_list=['Arcadia'], county='Desoto County', state='FL', lat=None, lng=None, timezone=None, radius_in_miles=None, area_code_list=['863'], population=None, population_density=None, land_area_in_sqmi=None, water_area_in_sqmi=None, housing_units=None, occupied_housing_units=None, median_home_value=None, median_household_income=None, bounds_west=None, bounds_east=None, bounds_north=None, bounds_south=None)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants