minotor
Version:
A lightweight client-side transit routing library.
22 lines (21 loc) • 848 B
TypeScript
import { StopsIndex } from '../stops/stopsIndex.js';
import { Timetable } from '../timetable/timetable.js';
import { AccessFinder } from './access.js';
import { Query } from './query.js';
import { Raptor } from './raptor.js';
import { Result } from './result.js';
export declare class PlainRouter {
private readonly timetable;
private readonly stopsIndex;
private readonly accessFinder;
private readonly raptor;
constructor(timetable: Timetable, stopsIndex: StopsIndex, accessFinder: AccessFinder, raptor: Raptor);
/**
* Standard RAPTOR: finds the earliest-arrival journey from `query.from` to
* `query.to` for the given departure time.
*
* @param query The routing query.
* @returns A {@link Result} that can reconstruct the best route and arrival times.
*/
route(query: Query): Result;
}