gtfs-bods
Version:
A CLI tool for processing UK Bus Open Data Service (BODS) GTFS data - import, export, and query transit data with ease
46 lines (45 loc) • 1.47 kB
TypeScript
interface QueryOptions {
agencyKey?: string | undefined;
routeId?: string | undefined;
stopId?: string | undefined;
limit?: number | undefined;
}
export declare class GTFSQueries {
/**
* Get all agencies in the database
*/
static getAllAgencies(): Promise<any[]>;
/**
* Get all routes, optionally filtered by agency
*/
static getAllRoutes(options?: QueryOptions): Promise<any[]>;
/**
* Get all stops, optionally filtered by agency
*/
static getAllStops(options?: QueryOptions): Promise<any[]>;
/**
* Get trips for a specific route
*/
static getTripsForRoute(routeId: string, agencyKey?: string): Promise<any[]>;
/**
* Get stop times for a specific trip
*/
static getStopTimesForTrip(tripId: string, agencyKey?: string): Promise<any[]>;
/**
* Get shapes (route geometry) for visualization
*/
static getShapesForRoute(shapeId: string, agencyKey?: string): Promise<any[]>;
/**
* Find stops within a bounding box (alternative to radius search)
*/
static findStopsInArea(minLat: number, minLon: number, maxLat: number, maxLon: number, agencyKey?: string): Promise<any[]>;
/**
* Get calendar information
*/
static getCalendarInfo(agencyKey?: string): Promise<any[]>;
/**
* Generate a comprehensive report of the GTFS data
*/
static generateReport(agencyKey?: string): Promise<void>;
}
export {};