raptor-journey-planner
Version:
Implementation of the Round bAsed Public Transit Optimized Router (Raptor) journey planning algorithm.
18 lines (17 loc) • 453 B
TypeScript
import { ConnectionIndex } from "../../raptor/ScanResults";
import { StopID } from "../../gtfs/GTFS";
/**
* Create the results factory
*/
export type TransferPatternResultsFactory<T> = () => TransferPatternResults<T>;
/**
* Transfer pattern results
*/
export interface TransferPatternResults<T> {
add(kConnections: ConnectionIndex): void;
finalize(): T;
}
/**
* A list of stops representing a journeys path
*/
export type Path = StopID[];