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

Method by_city

uszipcode/search.py:630–645  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

628 )
629
630 def by_city(self,
631 city,
632 zipcode_type=ZipcodeType.Standard,
633 sort_by=SimpleZipcode.zipcode.name,
634 ascending=True,
635 returns=DEFAULT_LIMIT):
636 """
637 Search zipcode information by fuzzy City name.
638
639 My engine use fuzzy match and guess what is the city you want.
640 """
641 return self.query(
642 city=city,
643 sort_by=sort_by, zipcode_type=zipcode_type,
644 ascending=ascending, returns=returns,
645 )
646
647 def by_state(self,
648 state,

Callers 1

test_by_cityMethod · 0.80

Calls 1

queryMethod · 0.95

Tested by 1

test_by_cityMethod · 0.64