UNPKG

connection-scan-algorithm

Version:
20 lines (19 loc) 845 B
import { ConnectionScanAlgorithm } from "../csa/ConnectionScanAlgorithm"; import { JourneyFactory } from "../journey/JourneyFactory"; import { StopID, Time } from "../gtfs/Gtfs"; import { Journey } from "../journey/Journey"; import { JourneyFilter } from "./JourneyFilter"; /** * Implementation of CSA that searches for journeys between a set of origin and destinations. */ export declare class DepartAfterQuery { private readonly csa; private readonly resultsFactory; private readonly filters; constructor(csa: ConnectionScanAlgorithm, resultsFactory: JourneyFactory, filters?: JourneyFilter[]); /** * Plan a journey between the origin and destination set of stops on the given date and time */ plan(origins: StopID[], destinations: StopID[], date: Date, time: Time): Journey[]; private getDateNumber; }