Swiss Post Code Plugin
Dependency :
compile ":swiss-post-code:0.1.2"
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 commandgrails 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()}
}
}