Skip to content
On this page

Home > sncf.js > Journey

Journey class

Signature:

typescript
export declare class Journey

Constructors

Constructor

Modifiers

Description

(constructor)(Client, data)

Constructs a new instance of the Journey class

Properties

Property

Modifiers

Type

Description

arrival_date_time

Date

Arrival time

departure_date_time

Date

Departure time

disruptions

Disruption[]

If the journey has disruptions return the disruptions

duration

number

Duration of the journey

id

string

Return the journey id

price

Price

Price of the journey

status

string

Return value if status is define

steps

readonly

Step[]

Get the steps of the journey

transfers

number

Transfers of the journey

type

string

Define the journey average