raptor-journey-planner
Version:
Implementation of the Round bAsed Public Transit Optimized Router (Raptor) journey planning algorithm.
14 lines (13 loc) • 485 B
TypeScript
import type { StopID, Transfer } from "../gtfs/GTFS";
import type { Journey } from "./Journey";
import type { Connection, ConnectionIndex } from "../raptor/ScanResults";
/**
* Create results from the kConnections index
*/
export interface ResultsFactory {
getResults(kConnections: ConnectionIndex, destination: StopID): Journey[];
}
/**
* Type check for a kConnection connection
*/
export declare function isTransfer(connection: Connection | Transfer): connection is Transfer;