Interface Schedule

There are many ways to format schedules of public transport routes. This one tries to balance the amount of data and consumability. It is specifically geared towards urban public transport, with frequent trains and homogenous travels.

interface Schedule {
    id: string;
    mode: "train" | "bus" | "watercraft" | "taxi" | "gondola" | "aircraft" | "car" | "bicycle" | "walking";
    route: string;
    sequence: readonly ArrivalDeparture[];
    starts: readonly string[];
    type: "schedule";
}

Properties

id: string
mode: "train" | "bus" | "watercraft" | "taxi" | "gondola" | "aircraft" | "car" | "bicycle" | "walking"
route: string
sequence: readonly ArrivalDeparture[]
starts: readonly string[]

array of Unix timestamps

type: "schedule"

Generated using TypeDoc