all repos — kokyo @ 30926539d63017dc70c7cd24b47786610318f86d

Chatbot and CLI tool for Swiss public transports

types.d.ts (view raw)

 1interface StopEvent {
 2  from: string;
 3  to: string;
 4  departure: string;
 5  departureIn?: number;
 6  stopName: string;
 7  quay: string;
 8  serviceName: string;
 9  serviceType: string;
10  serviceTypeIcon: string;
11}
12
13interface Stop {
14  name: string;
15  stopRef: string;
16  geoPosition?: {
17    latitude: number;
18    longitude: number;
19  };
20}
21
22interface Coordinates {
23  latitude: number;
24  longitude: number;
25}