GermanPostalCode Plugin

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

Documentation

Summary

Installation

grails install-plugin german-postal-code

Description

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