parseItalianPostcodefunction
Takes a postcode apart: the province it is in, and whether GeoNames' list has it.
Import it
import { parseItalianPostcode } from "@johnmorrisdotca/address-plus/it";
Definition
function parseItalianPostcode(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 { parseItalianPostcode } from "@johnmorrisdotca/address-plus/it";
console.log(parseItalianPostcode("20121"));
// → {"postcode":"20121","region":"MI","known":true}{ postcode: '20121', region: 'MI', known: true }What it prints (run when this page was built)