Swiss Post Code Plugin

  • Tags: 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

Summary

This plug in provides you all available Swiss post codes

Installation

grails install-plugin swiss-post-code

Description

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.

Installation

In order to install this plug in run the following command

grails install-plugin swiss-post-code

Example

class YourController {
    def SwissPostcodeService swissPostcodeService

def index = {

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

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