UNPKG

mvgapi

Version:

A small mvg api for a bot dev workshop

44 lines (38 loc) 990 B
export interface IMVGStation { id: number, name: string, place: string, products: string[] } export function searchForLocations(query: string): Promise<IMVGStation[]>; export interface IMVGRoutePart { arrival: number, arrivalPlatform: string, departure: number, departurePlatform: string, destination: string, from: IMVGStation, to: IMVGStation, label: string, product: string, sev: boolean, connectionPartType: string } export interface IMVGRoute { arrival: number, departure: number, ringFrom: number, ringTo: number, connectionPartList: IMVGRoutePart[] } export function route(from: number, to: number, time?: number): Promise<IMVGRoute[]>; export interface IMVGDeparture { departureId: number, departureTime: number, destination: string, label: string, live: boolean, product: string, sev: boolean } export function departures(stationID: number): Promise<IMVGDeparture[]>;