/** * @copyright Sister Software * @license AGPL-3.0 * @author Teffen Ellis, et al. * * `openaddresses`: line-delimited GeoJSON adapter for openaddresses.io exports. * * Country must be explicit because OpenAddresses organizes files by country while the row data * has no country code. A per-row `LICENSE` property wins where present and the configured * `defaultLicense` covers the remaining rows. `district` stays unmapped because US data uses it for a borough or county. * The adapter omits that field because mapping it would inflate alignment quarantine. */ import { type CorpusAdapter } from "#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 OPENADDRESSES_ADAPTER_ID = "openaddresses"; /** * License assigned to each row from this source (CC-BY-4.0), so downstream consumers * inherit the terms rather than having to look them up. */ export declare const OPENADDRESSES_DEFAULT_LICENSE = "CC-BY-4.0"; export interface OpenaddressesAdapterOptions { /** * Per-row license used when a Feature lacks an explicit `LICENSE` property. * * Defaults to `CC-BY-4.0` — the most common license across the OpenAddresses collection. * Override per dump via the runner's adapter-options passthrough. */ defaultLicense?: string; /** * Whether this adapter emits a row whose per-file license requires share-alike. * * The default is `true`. * `buildCorpus({ licensePolicy })` and `mw corpus build --license-policy share-alike-free` * express a refusal at build level. * * The policy reads the obligations of every adapter's rows under one policy and records what it refused. * * Pass `false` only for an adapter-scoped drop, such as a fixture that must use one license. */ allowShareAlike?: boolean; } /** * Build an OpenAddresses adapter. * * The optional `defaultLicense` lets callers stamp a non-default fallback for dumps * known to use a single license throughout (e.g. a PDDL-only state extract). */ export declare function createOpenaddressesAdapter(opts?: OpenaddressesAdapterOptions): CorpusAdapter; /** * The configured adapter instance registered with the corpus builder. */ export declare const openaddressesAdapter: CorpusAdapter; //# sourceMappingURL=adapter.d.ts.map