Sign in to edit and +1 items.
Login required
Download

Swiss Post Code Plugin

(0)
Author(s) Silvio Wangler
Current Release 0.1.2   (4 months ago)
Grails Version 2.0 > *
Tags country  functionality  postcode 
Dependency
compile ":swiss-post-code:0.1.2"
This plug in provides you all available Swiss post codes
Last updated by saw303 4 months ago
grails install-plugin swiss-post-code
Last updated by saw303 4 months ago
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()} } }

Last updated by saw303 4 months ago
Last updated by saw303 4 months ago