Plugins You can find out about all the publicly available Grails plugins.

GermanPostalCode Plugin

  • Tags: /
  • Latest: 0.1
  • Last Updated: 02 June 2010
  • Grails version: 1.3.1 > *
  • Authors: null
0 vote
compile "org.grails.plugins:german-postal-code:0.1"




grails install-plugin german-postal-code


GermanPostalCode Plugin

Author: Björn Wilmsmann, MetaSieve


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 for more information