MacHu-GWU/uszipcode-project

Way to extract ''border polygon''

Opened this issue · 1 comments

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 commented

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