UNPKG

raptor-journey-planner

Version:

Implementation of the Round bAsed Public Transit Optimized Router (Raptor) journey planning algorithm.

12 lines (11 loc) 446 B
import type { StopIndex, Trip } from "./GTFS"; import type { Interchange, TransfersByOrigin } from "../raptor/RaptorAlgorithm"; import type { Readable } from "node:stream"; /** * Returns trips, transfers, interchange time and calendars from a GTFS zip. */ export declare function loadGTFS(stream: Readable): Promise<GTFSData>; /** * Contents of the GTFS zip file */ export type GTFSData = [Trip[], TransfersByOrigin, Interchange, StopIndex];