/** * @copyright Sister Software * @license AGPL-3.0 * @author Teffen Ellis, et al. * * `geonames-postal`: GeoNames postal-code dump consumer (https://www.geonames.org/, CC-BY-4.0). * * The GeoNames postal export (`https://download.geonames.org/export/zip/.zip`) is a clean, * per-country `postcode → place → admin1` table with the place + region NAMES inline (no aux-file * join needed). It broadens the corpus's postcode→locality→region coverage to ~80 countries, well * beyond `wof-postalcode`/the coordinate-first table — forward coverage for the multi-locale * goal. * * Input: a per-country postal dump (`.txt`, 12 tab-separated columns, no header): country, * postcode, place, admin1_name, admin1_code, admin2__, admin3__, lat, lon, accuracy. * * Output: per row, postcode-FIRST (international) variants — the common order for the non-US * locales this fills (US postcodes are already covered by TIGER/WOF, which use postcode-LAST): * * 1. `{ postcode, locality }` → "AD100 Canillo" * 2. `{ postcode, locality, region }` → "AD100 Canillo, Canillo" Prefer configuring this adapter for * non-US countries; for US, the postcode-last sources are the right order. License: * `"CC-BY-4.0"` per row (attribute "GeoNames"). */ import type { CorpusAdapter } from "@mailwoman/corpus/types"; /** * Registry id for this adapter. Stamped into every row it emits, so a corpus record can be traced back to the dataset * it came from. */ export declare const GEONAMES_POSTAL_ADAPTER_ID = "geonames-postal"; /** * License carried by this source (CC-BY-4.0), attached to each row so downstream consumers inherit the terms rather * than having to look them up. */ export declare const GEONAMES_POSTAL_DEFAULT_LICENSE = "CC-BY-4.0"; export declare function createGeonamesPostalAdapter(): CorpusAdapter; /** * The configured adapter instance registered with the corpus builder. */ export declare const geonamesPostalAdapter: CorpusAdapter; //# sourceMappingURL=adapter.d.ts.map