MacHu-GWU / uszipcode-project

USA zipcode programmable database, includes up-to-date census and geometry information.
MIT License
231 stars 49 forks source link

Missing someting in manual? #17

Closed altair0319 closed 3 years ago

altair0319 commented 5 years ago

from uszipcode import Zipcode
Search zipcode within 30 miles, ordered from closest to farthest result = search.by_coordinates(39.122229, -77.133578, radius=30, returns=5) len(res) # by default 5 results returned 5

What does search stand for?

Thanks

MacHu-GWU commented 5 years ago

plz take a look at https://uszipcode.readthedocs.io/?badge=latest#example-usage, the first step using this is

>>> from uszipcode import SearchEngine
>>> search = SearchEngine(simple_zipcode=False)