Last updated by admin 1 year ago
grails install-plugin german-postal-code
Last updated by willy 1 year ago
GermanPostalCode Plugin
Author:
Björn Wilmsmann,
MetaSieve
Usage
GermanPostalCode is a plugin that allows you to find and check German postal codes (PLZ). It is built upon the
PlzFinder service.
The plugin provides a GermanPostalCodeService that can be injected into Grails artefacts as usual:
def germanPostalCodeService
The service has two methods - findPostalCodes() and checkPostalCode() - both of which take a query argument as in:
assert ['10997'] == germanPostalCodeService.findPostalCodes('10997')
assert ['48431', '48432'] == germanPostalCodeService.findPostalCodes('4843*')
assert true == germanPostalCodeService.checkPostalCode('46242')Both methods allow wildcard (*) characters. findPostalCodes() yields a list of matching postal codes. checkPostalCode returns true if a postal code matches the query.
Plugin version history
See
http://jira.codehaus.org for more information
Last updated by admin 1 year ago
Last updated by admin 1 year ago