Interface DeparturesArrivalsOptions

interface DeparturesArrivalsOptions {
    direction?: string;
    duration?: number;
    entrances?: boolean;
    includeRelatedStations?: boolean;
    language?: string;
    line?: string;
    linesOfStops?: boolean;
    products?: Products;
    remarks?: boolean;
    results?: number;
    stopovers?: boolean;
    subStops?: boolean;
    when?: Date;
}

Properties

direction?: string

only show departures heading to this station

undefined
duration?: number

show departures for the next n minutes

120
entrances?: boolean

parse & expose entrances of stops/stations?

true
includeRelatedStations?: boolean

departures at related stations

false
language?: string

language

en
line?: string

filter by line ID

undefined
linesOfStops?: boolean

parse & expose lines at the stop/station?

false
products?: Products

products

undefined
remarks?: boolean

parse & expose hints & warnings?

false
results?: number

max. number of results; null means "whatever HAFAS wants"

10
stopovers?: boolean

fetch & parse previous/next stopovers?

false
subStops?: boolean

parse & expose sub-stops of stations?

true
when?: Date

departure date, undefined corresponds to Date.Now

undefined