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

Zip Code Overlap #1

Open
woodhull opened this issue Mar 18, 2017 · 1 comment
Open

Zip Code Overlap #1

woodhull opened this issue Mar 18, 2017 · 1 comment

Comments

@woodhull
Copy link

How are you representing ZCTA that map to more than one CD in this file? When you say you de-dupe the data, does that mean that you remove ZCTAs that span CDs removing those ZCTA entirely or just choose one?

I've been considering A/B testing a zip code lookup option and then falling back on full address if there is not an exact match for VisitThem.org.

We currently always ask for full address and then do the lookup via polygon.

@jlev
Copy link
Contributor

jlev commented Mar 20, 2017

I deduplicate only repeated zipcode->CD matches (of which there are many in the county_rel file). But if a zipcode is part of multiple congressional districts or crosses state lines, there are multiple rows in the zccd.csv file.

I have tested this for a known set of zipcodes that cross geographic boundaries and the output appears correct. http://gis.stackexchange.com/questions/53918/determining-which-us-zipcodes-map-to-more-than-one-state-or-more-than-one-city

Lookup by polygon is always going to be better. This is just faster, and really useful for when you can't request full address (i.e., when prompting location by phone)

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

2 participants