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

Enhance zipcode geocoding #4

Open
mrcnc opened this issue May 6, 2020 · 2 comments
Open

Enhance zipcode geocoding #4

mrcnc opened this issue May 6, 2020 · 2 comments

Comments

@mrcnc
Copy link
Member

mrcnc commented May 6, 2020

Currently the uszipcode library does not return lat/lng coordinates for certain zip codes.

>>> from uszipcode import SearchEngine
>>> search = SearchEngine(simple_zipcode=True)
>>> zipcode = '70728'
>>> search.by_zipcode(int(zipcode))
SimpleZipcode(zipcode='70728', zipcode_type='PO Box', major_city='Duplessis', post_office_city=None, common_city_list=['Duplessis'], county='Ascension Parish', state='LA', lat=None, lng=None, timezone=None, radius_in_miles=None, area_code_list=['225'], 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)

No ❤️ for Duplessis 😞

As a first step, let's enhance the script to ensure all the zip codes in Louisiana have a corresponding lat/lng.

@mrcnc
Copy link
Member Author

mrcnc commented May 6, 2020

It might be a good idea to first determine how many zip codes are actually missing....if it's only a few, maybe we can hardcode them. Otherwise maybe we need to look into using a geocoding service or other method to replace uszipcode

@mrcnc
Copy link
Member Author

mrcnc commented Jun 12, 2020

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

No branches or pull requests

1 participant