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

60 lines (59 loc) 1.47 kB
import { FeatureCollection, MultiPolygon, Polygon } from "@turf/helpers"; export declare enum SchoolType { Kindergarten = 0, Elementary = 1 } export interface SchoolLocation { id?: number; schoolIzo?: number; addressPointId: number; } export interface School { name: string; izo: string; redizo: string; capacity: number; type: SchoolType; locations: SchoolLocation[]; } export interface Founder { name: string; ico: string; originalType?: number; municipalityType: MunicipalityType; municipalityCode?: number; schools: School[]; } export declare enum MunicipalityType { City = 0, District = 1, Other = 2 } export interface Position { lat: number; lng: number; } export interface Municipality { type: MunicipalityType; code: number; } export type MunicipalityWithPosition = Municipality & Position; export interface PlaceWithPosition { code: number; lat: number; lng: number; } export declare const founderToMunicipality: (founder: Founder) => Municipality; export interface DbfStreet { KOD: string; NAZEV: string; OBEC_KOD: string; } export declare enum SyncPart { AddressPoints = "address-points", Schools = "schools", Regions = "regions", Streets = "streets", Cities = "cities" } export type PolygonsByCodes = Record<number, FeatureCollection<Polygon | MultiPolygon>>;