parseDutchPostcodefunction
Takes a postcode apart: its canonical form (1015 CJ) and whether CBS's list has its digits. The Netherlands has no
region in its table, so there is none in the answer.
Import it
import { parseDutchPostcode } from "@johnmorrisdotca/address-plus/nl";
Definition
function parseDutchPostcode(postcode: string): PostcodeLookup
Parameters
| Name | Type | Description |
|---|---|---|
postcode | string | The postcode. |
Returns
PostcodeLookup
The postcode, and whether the list has it.
Examples
import { parseDutchPostcode } from "@johnmorrisdotca/address-plus/nl";
console.log(parseDutchPostcode("1015cj"));
// → {"postcode":"1015 CJ","known":true}{ postcode: '1015 CJ', known: true }What it prints (run when this page was built)