UNPKG

@sroussey/parse-address

Version:

International street address parser for 220 jurisdictions (US, CA + 218 countries and territories), with SEC EDGAR country-code resolution

28 lines (27 loc) 1.58 kB
import type { EuCountryConfig } from "../_eu/types.js"; /** * Greenland (GL) address configuration. * * Greenland is a Danish autonomous territory and uses the Danish postal system, * but its street/building grammar is distinctive: * - Street name FIRST, then the premises identifier AFTER. Greenlandic street * names are long single or multi-word Kalaallisut/Danish words * ("Aqqusinersuaq", "Jens Kreutzmannip Aqqutaa", "Imaneq") and carry no * productive fused generic, so the type is NOT parsed (typePlacement "none"). * - Older stock and settlements identify a building by its "B-number" * (bygningsnummer), e.g. "B-1140". When the premises token is a B-number it * is emitted as `building` (via postNormalize) rather than as `number`; a * plain "10" / "10A" stays in `number`/`civic_number_suffix`. * - Postcode is 4 digits, the first two always "39" (3900-3992), written * BEFORE the city ("3900 Nuuk"). No "GL-" prefix is used domestically. * - No state/region. * * Sources: Wikipedia "Postal codes in Greenland" (GL, 4 digits, "39"..); * ResearchGate (house-number + B-number plates on Nuuk buildings); Smarty * (https://www.smarty.com/global-address-formatting/greenland-address-format-examples); * PostGrid (https://www.postgrid.com/global-address-format/greenland-address-format/); * GeoPostcodes (https://www.geopostcodes.com/country/greenland/address-format/); * TELE-POST / Post Greenland (postcode-before-city, "Postboks" boxes). */ export declare const glConfig: EuCountryConfig; export default glConfig;