MCPcopy Create free account
hub / github.com/MacHu-GWU/uszipcode-project / by_state

Method by_state

uszipcode/search.py:647–662  ·  view source on GitHub ↗

Search zipcode information by fuzzy State name. My engine use fuzzy match and guess what is the state you want.

(self,
                 state,
                 zipcode_type=ZipcodeType.Standard,
                 sort_by=SimpleZipcode.zipcode.name,
                 ascending=True,
                 returns=DEFAULT_LIMIT)

Source from the content-addressed store, hash-verified

645 )
646
647 def by_state(self,
648 state,
649 zipcode_type=ZipcodeType.Standard,
650 sort_by=SimpleZipcode.zipcode.name,
651 ascending=True,
652 returns=DEFAULT_LIMIT):
653 """
654 Search zipcode information by fuzzy State name.
655
656 My engine use fuzzy match and guess what is the state you want.
657 """
658 return self.query(
659 state=state,
660 sort_by=sort_by, zipcode_type=zipcode_type,
661 ascending=ascending, returns=returns,
662 )
663
664 def by_city_and_state(self,
665 city,

Callers 1

test_by_stateMethod · 0.80

Calls 1

queryMethod · 0.95

Tested by 1

test_by_stateMethod · 0.64