A route represents a single set of stations, of a single line.

interface Route {
    id: string;
    line: string;
    mode:
        | "train"
        | "bus"
        | "watercraft"
        | "taxi"
        | "gondola"
        | "aircraft"
        | "car"
        | "bicycle"
        | "walking";
    stops: readonly string[];
    type: "route";
}

Properties

Properties

id: string
line: string
mode:
    | "train"
    | "bus"
    | "watercraft"
    | "taxi"
    | "gondola"
    | "aircraft"
    | "car"
    | "bicycle"
    | "walking"
stops: readonly string[]

stop ids

type: "route"