29 lines
475 B
TypeScript
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;
|
|
}
|