raptor-journey-planner
Version:
Implementation of the Round bAsed Public Transit Optimized Router (Raptor) journey planning algorithm.
14 lines (13 loc) • 470 B
TypeScript
import { StopID, Transfer } from "../gtfs/GTFS";
import { Journey } from "./Journey";
import { 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;