tfl-api-wrapper
Version:
A Node JS wrapper for the Transport for London API
16 lines (15 loc) • 590 B
TypeScript
import TfLAPI from './tfl';
import TfL from './interfaces/tfl';
export default class Mode extends TfLAPI {
constructor(config: string);
/**
* Returns the service type active for a mode. Currently only supports tube
*/
getActiveServiceTypes(): Promise<Array<TfL['ActiveServiceType']>>;
/**
*
* @param mode A mode name e.g. tube, dlr
* @param count Number of arrivals to return for each stop, -1 to return all available (default).
*/
getAllArrivalPredictions(mode: string, count?: number): Promise<Array<TfL['Prediction']>>;
}