czydojade/resources/ts/model/stop.ts
Kacper Donat f2f7b19380 #38 - Add lines to destinations
This is useful when we have few different stops, with same destinations and different lines.
2020-02-08 18:36:29 +01:00

26 lines
420 B
TypeScript

import { Line } from "./line";
export interface Stop {
id: any;
name: string;
description?: string;
location?: {
lat: number,
lng: number,
};
onDemand?: boolean;
variant?: string;
destinations?: Destination[];
}
export type Destination = {
stop: Stop;
lines: Line[]
}
export type StopGroup = Stop[];
export type StopGroups = {
[name: string]: StopGroup;
}