Interface JourneysOptionsCommon

interface JourneysOptionsCommon {
    accessibility?: string;
    arrival?: Date;
    bike?: boolean;
    departure?: Date;
    earlierThan?: string;
    entrances?: boolean;
    language?: string;
    laterThan?: string;
    polylines?: boolean;
    products?: Products;
    remarks?: boolean;
    results?: number;
    scheduledDays?: boolean;
    startWithWalking?: boolean;
    stopovers?: boolean;
    subStops?: boolean;
    tickets?: boolean;
    transfers?: number;
    transferTime?: number;
    via?: string;
    walkingSpeed?: string;
    when?: Date;
}

Properties

accessibility?: string

'none', 'partial' or 'complete'

none
arrival?: Date

arrival date, departure and arrival are mutually exclusive.

undefined
bike?: boolean

only bike-friendly journeys

false
departure?: Date

departure date, undefined corresponds to Date.Now

undefined
earlierThan?: string

earlierThan, use Journeys#earlierRef, earlierThan and departure/arrival are mutually exclusive.

undefined
entrances?: boolean

parse & expose entrances of stops/stations?

true
language?: string

language to get results in

en
laterThan?: string

laterThan, use Journeys#laterRef, laterThan and departure/arrival are mutually exclusive.

undefined
polylines?: boolean

return a shape for each leg?

false
products?: Products
remarks?: boolean

parse & expose hints & warnings?

true
results?: number

how many search results?

3
scheduledDays?: boolean

parse which days each journey is valid on

false
startWithWalking?: boolean

start with walking

false
stopovers?: boolean

return stations on the way?

false
subStops?: boolean

parse & expose sub-stops of stations?

false
tickets?: boolean

return tickets? only available with some profiles

false
transfers?: number

Maximum nr of transfers. Default: Let HAFAS decide.

10
transferTime?: number

minimum time for a single transfer in minutes

10
via?: string

let journeys pass this station

undefined
walkingSpeed?: string

'slow', 'normal', 'fast'

slow
when?: Date