UNPKG

raptor-journey-planner

Version:

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

23 lines (22 loc) 994 B
import type { RaptorAlgorithm } from "../raptor/RaptorAlgorithm"; import type { ResultsFactory } from "../results/ResultsFactory"; import type { StopID } from "../gtfs/GTFS"; import type { Journey } from "../results/Journey"; import type { JourneyFilter } from "../results/filter/JourneyFilter"; /** * Use the Raptor algorithm to generate a full day of results. */ export declare class RangeQuery { readonly raptor: RaptorAlgorithm; readonly resultsFactory: ResultsFactory; readonly maxSearchDays: number; private readonly filters; private readonly ONE_DAY; private readonly groupQuery; constructor(raptor: RaptorAlgorithm, resultsFactory: ResultsFactory, maxSearchDays?: number, filters?: JourneyFilter[]); /** * Perform a query at midnight, and then continue to search one minute after the earliest departure of each set of * results. */ plan(origin: StopID, destination: StopID, date: Date, time?: number, endTime?: number): Journey[]; }