Login required
Download

GermanPostalCode Plugin

(0)
Author(s) Björn Wilmsmann
Current Release 0.1   (1 year ago)
Grails Version 1.3.1 > *
Tags
Dependency
compile ":german-postal-code:0.1"
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