Switzerland postal codes Javascript module
$ npm install switzerland-postal-codes
Then you can require('switzerland-postal-codes')
.
var postalCodes = require('switzerland-postal-codes');
console.log(postalCodes['1260']);
//=> 'Nyon'
$ bower install switzerland-postal-codes
Then use dist/postal-codes.json
or dist/postal-codes-full.json
in your HTML.
Download postal-codes.json
or postal-codes-full.json
from the Github Release pages
See the demo.
You need Node.js, then cd
into this folder and
$ npm install
$ ./src/converter.js
- Postal codes based on the official postal codes database from Swiss Post
- Geolocation based on the Geonames database licensed under a Creative Commons Attribution 3.0 License.
The MIT License (MIT)