Skip to content
On this page

Home > sncf.js > LineManager > get

LineManager.get() method

Get a line by id

Signature:

typescript
get(lineID: string): Promise<Line>;

Parameters

Parameter

Type

Description

lineID

string

The id of the line

**Returns:**

Promise<Line>

Example

This example shows how to get a line by id

javascript
const line = await client.line.get("lline:SNCF:CSR:433500")
console.log(line)