UNPKG

raptor-journey-planner

Version:

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

18 lines (17 loc) 463 B
import type { ConnectionIndex } from "../../raptor/ScanResults"; import type { 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[];