UNPKG

@golemio/pid

Version:
25 lines (24 loc) 974 B
import { IGeoJSONFeature, IGeoJSONFeatureCollection } from "@golemio/core/dist/output-gateway/Geo"; import { SequelizeModel } from "@golemio/core/dist/output-gateway/models"; import { GetAllOptions, IGTFSStopGetAllOutput } from "./GTFSStopModelInterfaces"; export declare class GTFSStopModel extends SequelizeModel { private readonly outputAttributes; private cisStopsModel; private gtfsStopParser; constructor(); Associate: () => void; /** * Retrieve all gtfs stops */ GetAll<T extends boolean = false>(options: GetAllOptions<T>): Promise<T extends true ? IGTFSStopGetAllOutput[] : IGeoJSONFeatureCollection>; /** * Retrieve multiple GTFS stop ids by ASW node id */ getMultipleIdsByAswNode: (aswNodeId: string) => Promise<string[]>; /** * Retrieve specific gtfs stop */ GetOne: (id: string) => Promise<IGeoJSONFeature | null>; private prepareCisStops; private prepareFindOptionsForMetro; }