Skip to content

Track train #9

May 3, 2024 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

As promised!

The new function that lets you search for a train using its ID (headsign)

requirements:

Update the module: npm i sncf.js@latest

How to use:

sncf.searchManager.searchTrain('HEADSING').then(data=>{
  console.log(data)
})

Documentation of the new function

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@alexandrebrosse
Comment options

@Alexis06030631
Comment options

@Alexis06030631
Comment options

Answer selected by Alexis06030631
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request
2 participants