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

Way to extract ''border polygon'' #64

Open
ismaelahrazem opened this issue Jul 20, 2022 · 1 comment
Open

Way to extract ''border polygon'' #64

ismaelahrazem opened this issue Jul 20, 2022 · 1 comment

Comments

@ismaelahrazem
Copy link

Good morning,

I'm interested in finding the polygon that encapsulate a specific zip code.

Such that, given a zip code, i.e., zipcode = 10001, I would like to find the shape as the corresponding polygon.

In case that query is possible, what would the piece of code I should write to extract that information?

Thanks for your help

@mPyth
Copy link

mPyth commented Sep 10, 2022

with a "small" delay, next code should work:

from uszipcode import SearchEngine
with SearchEngine(simple_or_comprehensive = SearchEngine.SimpleOrComprehensiveArgEnum.comprehensive) as se:
    zip = se.by_zipcode('90008')
    requiredPolygon = zip.polygon

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

2 participants