Skip to content
On this page

Home > sncf.js > Client

Client class

The main hub for interacting with the Navitia API.

Signature:

typescript
export declare class Client extends BaseClient

Extends: BaseClient

Constructors

Constructor

Modifiers

Description

(constructor)(options)

Constructs a new instance of the Client class

Properties

Property

Modifiers

Type

Description

debug

boolean

If app run as debug mode

disruption

DisruptionManager

DisruptionManager class

isReady

readonly

boolean

Indicates whether the client is ready to start working.

journey

JourneyManager

JourneysManager class

line

LineManager

LineManager class

place

PlacesManager

PlacesManager class

requestManager

RequestManager

The request manager of the client

searchManager

SearchManager

SearchManager: It is used to search for a train by headsign ID and other search queries

status

string

The status of the client

Methods

Method

Modifiers

Description

login(token)

Logs the client in, establishing a connection to navitia.