Norway Postal Codes
Want to see pretty graphs? Log in now!
npm install norway-postal-codes
|8||downloads in the last month|
|Last Published By|
|Version||0.1.3 last updated 3 months ago|
|Keywords||norway, postal, codes, zip, postnummer|
Various utf8 alternative formats to the default ansi tab-delimited postal code registry provided by bring.no.
Norwegian: Postnummerregisteret inneholder alle postnummer i Norge som brukes til adressering av post.
Object with postal code as key and city as value.
Useful in forms to auto-complete city, see demo.
Object with postal code as key and the rest as value.
Last updated 2014-01-06
See the demo for an example on how to auto-complete city from postal code.
Which is a really good UX feature you should make use of.
Even though all converted files are provided here, you might want to do it yourself.
You'll need Node.js, then
cd into this folder and
./convert.js to fetch and convert the latest registry, or you can supply a file path
./convert.js postnummerregister_ansi.txt to convert a local file (make sure it's the ANSI version).
You can also use it as a Node module. Just install it
npm install --save norway-postal-codes and then require it in your code:
var postalCodes = require('norway-postal-codes'); console.log(postalCodes['1613']); // FREDRIKSTAD