Skip to the content

address-plusアドレスプラス

Parse, validate, format and compare addresses locally, add country modules and mount an optional native form field.

address-plus extends the parse-address style with typed results, validation, formatting and country modules. About the name

Contents

Reference · /nl

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

NameTypeDescription
postcodestring

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)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/address-plus 1.10.2.