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)
| 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, |