Skip to content
On this page

Home > sncf.js > Line

Line class

Signature:

typescript
export declare class Line

Constructors

Constructor

Modifiers

Description

(constructor)(Client, data)

Constructs a new instance of the Line class

Properties

Property

Modifiers

Type

Description

closing_time

string

Return the closing time (HH:MM:SS)

commercial_mode

string

Return the commercial mode

id

string

Return the line id

name

string

Return the line name

network

Network

Return the line network

opening_time

string

Return the opening time (HH:MM:SS)

physical_modes

Network[]

Return the physical modes

routes

Route[]

Return the line routes if exist