UNPKG

raptor-journey-planner

Version:

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

26 lines (25 loc) 1.06 kB
import type { RaptorAlgorithm } from "../raptor/RaptorAlgorithm"; import type { StopID, Time } from "../gtfs/GTFS"; import type { ResultsFactory } from "../results/ResultsFactory"; import type { Journey } from "../results/Journey"; /** * Implementation of Raptor that searches for journeys departing after a specific time. * * Only returns results from a single pass of the Raptor algorithm. */ export declare class DepartAfterQuery { readonly raptor: RaptorAlgorithm; readonly resultsFactory: ResultsFactory; readonly maxSearchDays: number; private readonly groupQuery; constructor(raptor: RaptorAlgorithm, resultsFactory: ResultsFactory, maxSearchDays?: number); /** * Plan a journey between the origin and destination on the given date and time. * * This method delegates the call to a GroupStationDepartAfterQuery where the origin and * destination sets are just a single station. * * No filters are applied. */ plan(origin: StopID, destination: StopID, date: Date, time: Time): Journey[]; }