/** * @copyright Sister Software * @license AGPL-3.0 * @author Teffen Ellis, et al. * * Fetch Korea's local-government permit registry (지방행정인허가데이터): one CSV per permit category, * every business a local authority has licensed, about 195 categories. Each row includes both address * forms of the same premises — `소재지전체주소` (the lot-number form, 지번) and `도로명전체주소` (the * road-name form) — plus both postcodes and a planar coordinate (`좌표정보(x/y)`, epsg:5174). That * The two formats together provide the cheapest dual-format signal in Korean addresses. * The coordinate supplies the board's coordinate half. That role gives this source its weight. * * What it asserts differs by field. The local authority grants the permit, so the permit identifier is an * `identity` assertion. The address is an `observation`: a clerk typed it, in both address systems, with * no validation. The registry attests only that it received the string. Both sit on `premise` rows — * the address of the licensed premises. One verdict over the source would discard the permit identity. * * The public-data portal labels the category files "이용허락범위 제한 없음" and links them to * `file.localdata.go.kr`, which serves them behind a session: the category page sets the xsrf cookie, * `/file/validate/download-count` is the portal's own rate check (429 when it wants a pause), and * `/file/download//info` streams the CSV. The files are CP949 as delivered. the adapter * decodes. The restaurant category by itself is about 700 MB. * * Invoke via `mailwoman corpus fetch localdata-kr --out-root `, optionally with * `--categories general_restaurants,rest_cafes`. */ import type { BaseFetchOptions, FetchSummary } from "#tools/fetch/download"; export interface FetchLocaldataKROptions extends BaseFetchOptions { /** * Category slugs to fetch (the path segment of `/file//info`). * * Defaults to every category the portal lists. */ categories?: string[]; } export declare function fetchLocaldataKR(options: FetchLocaldataKROptions, report?: (line: string) => void): Promise; //# sourceMappingURL=localdata.d.ts.map