parseKoreanPostcodefunction
Takes a postcode apart: the province it is in, and whether GeoNames' list has it.
Import it
import { parseKoreanPostcode } from "@johnmorrisdotca/address-plus/kr";
Definition
function parseKoreanPostcode(postcode: string): PostcodeLookup
Parameters
| Name | Type | Description |
|---|---|---|
postcode | string | The postcode. |
Returns
PostcodeLookup
The postcode, its province (when the list has it) and whether the list has it.
Examples
import { parseKoreanPostcode } from "@johnmorrisdotca/address-plus/kr";
console.log(parseKoreanPostcode("04524"));
// → {"postcode":"04524","region":"11","known":true}{ postcode: '04524', region: '11', known: true }What it prints (run when this page was built)