UNPKG

raptor-journey-planner

Version:

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

13 lines (12 loc) 457 B
/// <reference types="node" /> import { StopIndex, Trip } from "./GTFS"; import { Interchange, TransfersByOrigin } from "../raptor/RaptorAlgorithm"; import { Readable } from "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];