Search zipcode information by first N digits. Returns multiple results.
(self,
prefix,
zipcode_type=ZipcodeType.Standard,
sort_by=SimpleZipcode.zipcode.name,
ascending=True,
returns=DEFAULT_LIMIT)
| 594 | return self.zip_klass() |
| 595 | |
| 596 | def by_prefix(self, |
| 597 | prefix, |
| 598 | zipcode_type=ZipcodeType.Standard, |
| 599 | sort_by=SimpleZipcode.zipcode.name, |
| 600 | ascending=True, |
| 601 | returns=DEFAULT_LIMIT): |
| 602 | """ |
| 603 | Search zipcode information by first N digits. |
| 604 | |
| 605 | Returns multiple results. |
| 606 | """ |
| 607 | return self.query( |
| 608 | prefix=prefix, |
| 609 | sort_by=sort_by, zipcode_type=zipcode_type, |
| 610 | ascending=ascending, returns=returns, |
| 611 | ) |
| 612 | |
| 613 | def by_pattern(self, |
| 614 | pattern, |