Swiss Post Code Plugin

  • Tags : functionality, postcode, country
  • Latest : 0.1.2
  • Last Updated: 04 January 2012
  • Grails version : 2.0 > *
  • Authors : Silvio Wangler
0 vote
Dependency :
compile ":swiss-post-code:0.1.2"

Documentation Source


This plug in provides you all available Swiss post codes


grails install-plugin swiss-post-code


This is a brief introduction into the Swiss Postcode Plug In for Grails 2.x.

This plug in provides a look-up service for postcode of Switzerland. The data is provided by the Swiss Post.


In order to install this plug in run the following command

grails install-plugin swiss-post-code


class YourController {
    def SwissPostcodeService swissPostcodeService

def index = {

//return postcode of Wallisellen (8304) List<SwissPostcode> postcodes = swissPostcodeService.findPostcodes('8304')

render {postcodes[0].city.encodeAsHTML()} } }