UNPKG

text-to-map

Version:

Text To Map usiluje o lepší, strojově zpracovatelné využití částí vyhlášek s výčtem ulic a dalších lokací. Jde o rozšiřitelnou sadu konceptů a nástrojů, které zajistí hladký převod výčtu ulic a jejich rozsahů v lidsky srozumitelném jazyce do strojově zpra

23 lines (22 loc) 1.24 kB
import { clearDb, initDb } from "./db/db"; import { downloadAndImportAddressPoints } from "./open-data-sync/address-points"; import { importCities } from "./open-data-sync/cities"; import { downloadAndImportRegions } from "./open-data-sync/regions"; import { downloadAndImportSchools } from "./open-data-sync/schools"; import { municipalitiesToPolygons } from "./street-markdown/polygons"; import { OpenDataSyncOptionsPartial } from "./utils/helpers"; export * from "./street-markdown/smd"; export * from "./street-markdown/types"; /** * Download and import all open data to SQLite DB. The DB file will be located * in the `dataDir` folder. * @param options Options for the sync * @param syncStreets Streets sync takes around 1 hour, so it might be skipped. * ```typescript * import { downloadAndImportEverything } from "text-to-map"; * * await downloadAndImportEverything({ tmpDir: "./tmp", dataDir: "./data" }); * ``` */ export declare function downloadAndImportEverything(options?: OpenDataSyncOptionsPartial, syncStreets?: boolean): Promise<void>; export { clearDb, downloadAndImportAddressPoints, downloadAndImportRegions, downloadAndImportSchools, importCities, municipalitiesToPolygons, initDb, };