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
15 lines (14 loc) • 902 B
TypeScript
import { DbMunicipalityResult, MunicipalityPartResult, SmdError } from "../street-markdown/types";
import { Founder, MunicipalityType, SchoolType } from "./types";
export declare const insertFounders: (founders: Founder[]) => Promise<number>;
export declare const getFounderById: (id: number, schoolType: SchoolType) => Promise<{
founder: Founder;
errors: SmdError[];
}>;
export declare const findFounder: (nameWithHashtag: string, schoolType: SchoolType) => Promise<{
founder: Founder;
errors: SmdError[];
}>;
export declare const getFounderCityCode: (type: MunicipalityType, code: number) => Promise<number>;
export declare const findMunicipalityPartByName: (name: string, cityCode: number) => Promise<MunicipalityPartResult>;
export declare const findMunicipalityByNameAndType: (name: string, type: MunicipalityType, founder: Founder) => Promise<DbMunicipalityResult>;