UNPKG

raptor-journey-planner

Version:

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

23 lines (22 loc) 897 B
import { StopID, StopTime, Time, Transfer, Trip } from "../../src/gtfs/GTFS"; import { Journey } from "../../src/results/Journey"; import { Service } from "../../src/gtfs/Service"; export declare const allDays: { 0: boolean; 1: boolean; 2: boolean; 3: boolean; 4: boolean; 5: boolean; 6: boolean; }; export declare const services: { "1": Service; "2": Service; }; export declare function t(...stopTimes: StopTime[]): Trip; export declare function st(stop: StopID, arrivalTime: Time | null, departureTime: Time | null): StopTime; export declare function j(...legStopTimes: (StopTime[] | Transfer)[]): Journey; export declare function isTransfer(connection: StopTime[] | Transfer): connection is Transfer; export declare function tf(origin: StopID, destination: StopID, duration: Time): Transfer; export declare function setDefaultTrip(results: Journey[]): void;