czydojade/resources/ts/model/stop.ts
2020-02-08 21:50:20 +01:00

29 lines
475 B
TypeScript

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