Skip to content
On this page

Home > sncf.js > Vehicle

Vehicle class

Signature:

typescript
export declare class Vehicle

Constructors

Constructor

Modifiers

Description

(constructor)(Client, data)

Constructs a new instance of the Vehicle class

Properties

Property

Modifiers

Type

Description

arrival_date

Date

Return the arrival date of the vehicle

arrival_time

string

Return the arrival time of the vehicle

calendar

Calendar[]

Return the calendar of the vehicle

departure_date

Date

Return the departure date of the vehicle

departure_time

string

Return the departure time of the vehicle

disruptions

readonly

Disruption[]

Return the vehicle disruptions

get_arrival_time

readonly

string

get_departure_time

readonly

string

has_disruptions

boolean

Return boolean if the vehicle has disruptions

headsign

string

Return the vehicle headsign

id

string

Return the vehicle id

stop_times

StopTime[]

Return the steps of the vehicle

trip_id

string

Return trip ID