From d7885b88dbaaeb784685d40e98f7a04a736505c7 Mon Sep 17 00:00:00 2001 From: Alexis <61119747+Alexis06030631@users.noreply.github.com> Date: Fri, 3 May 2024 18:34:37 +0200 Subject: [PATCH] Update doc --- docs-src/.vitepress/config.js | 1 + docs-src/api/index.md | 23 +- docs-src/api/sncf.js.activeperiods.md | 63 +- ...f.js.administrativeregion._constructor_.md | 48 +- docs-src/api/sncf.js.administrativeregion.md | 157 ++++- docs-src/api/sncf.js.arrival._constructor_.md | 48 +- docs-src/api/sncf.js.arrival.md | 217 ++++++- .../api/sncf.js.baseclient._constructor_.md | 35 +- docs-src/api/sncf.js.baseclient.md | 33 +- docs-src/api/sncf.js.cachedmanager.md | 33 +- .../api/sncf.js.calendar._constructor_.md | 48 +- docs-src/api/sncf.js.calendar.md | 97 ++- docs-src/api/sncf.js.client._constructor_.md | 35 +- docs-src/api/sncf.js.client.login.md | 35 +- docs-src/api/sncf.js.client.md | 272 ++++++++- docs-src/api/sncf.js.client.searchmanager.md | 13 + docs-src/api/sncf.js.co2emission.md | 59 +- docs-src/api/sncf.js.coord.md | 63 +- docs-src/api/sncf.js.createenum.md | 33 +- docs-src/api/sncf.js.datetonavitiadate.md | 35 +- docs-src/api/sncf.js.datewithdateandhour.md | 63 ++ docs-src/api/sncf.js.definerequesterror.md | 33 +- .../api/sncf.js.departure._constructor_.md | 48 +- docs-src/api/sncf.js.departure.md | 217 ++++++- .../api/sncf.js.disruption._constructor_.md | 48 +- docs-src/api/sncf.js.disruption.md | 277 ++++++++- ...sncf.js.disruptionmanager._constructor_.md | 33 +- docs-src/api/sncf.js.disruptionmanager.get.md | 35 +- docs-src/api/sncf.js.disruptionmanager.md | 82 ++- .../api/sncf.js.disruptionmanager.search.md | 52 +- docs-src/api/sncf.js.extractdateintripid.md | 49 ++ docs-src/api/sncf.js.hournativiatohour.md | 52 +- .../api/sncf.js.impactedstop._constructor_.md | 48 +- docs-src/api/sncf.js.impactedstop.md | 157 ++++- docs-src/api/sncf.js.isvalidid.md | 35 +- docs-src/api/sncf.js.isvalidlineid.md | 35 +- docs-src/api/sncf.js.journey._constructor_.md | 48 +- docs-src/api/sncf.js.journey.md | 259 +++++++- .../sncf.js.journeymanager._constructor_.md | 33 +- docs-src/api/sncf.js.journeymanager.get.md | 69 ++- docs-src/api/sncf.js.journeymanager.md | 67 ++- docs-src/api/sncf.js.line._constructor_.md | 48 +- docs-src/api/sncf.js.line.md | 217 ++++++- .../api/sncf.js.linemanager._constructor_.md | 33 +- docs-src/api/sncf.js.linemanager.get.md | 35 +- docs-src/api/sncf.js.linemanager.md | 82 ++- docs-src/api/sncf.js.linemanager.search.md | 35 +- docs-src/api/sncf.js.md | 556 ++++++++++++++++-- docs-src/api/sncf.js.navitiadatetodate.md | 35 +- docs-src/api/sncf.js.network.md | 63 +- docs-src/api/sncf.js.placemanagerresult.md | 77 ++- .../sncf.js.placesmanager._constructor_.md | 33 +- docs-src/api/sncf.js.placesmanager.get.md | 35 +- docs-src/api/sncf.js.placesmanager.md | 82 ++- docs-src/api/sncf.js.placesmanager.search.md | 35 +- docs-src/api/sncf.js.price.md | 63 +- .../sncf.js.requestmanager._constructor_.md | 33 +- .../api/sncf.js.requestmanager.encodeurl.md | 52 +- docs-src/api/sncf.js.requestmanager.md | 161 ++++- .../api/sncf.js.requestmanager.request.md | 52 +- docs-src/api/sncf.js.route._constructor_.md | 48 +- docs-src/api/sncf.js.route.md | 177 +++++- .../sncf.js.searchmanager._constructor_.md | 47 ++ docs-src/api/sncf.js.searchmanager.md | 80 +++ .../api/sncf.js.searchmanager.searchtrain.md | 78 +++ docs-src/api/sncf.js.severity.md | 77 ++- docs-src/api/sncf.js.step._constructor_.md | 48 +- docs-src/api/sncf.js.step.md | 255 +++++++- .../api/sncf.js.stoparea._constructor_.md | 48 +- .../sncf.js.stoparea.administrative_region.md | 2 +- docs-src/api/sncf.js.stoparea.arrivals.md | 35 +- docs-src/api/sncf.js.stoparea.departures.md | 35 +- docs-src/api/sncf.js.stoparea.journeys.md | 52 +- docs-src/api/sncf.js.stoparea.md | 266 ++++++++- .../api/sncf.js.stoparea.vehicle_journeys.md | 53 +- .../api/sncf.js.stopstep._constructor_.md | 48 +- docs-src/api/sncf.js.stopstep.md | 117 +++- .../api/sncf.js.stoptime._constructor_.md | 66 ++- docs-src/api/sncf.js.stoptime.arrival_date.md | 13 + docs-src/api/sncf.js.stoptime.arrival_time.md | 5 + .../api/sncf.js.stoptime.departure_date.md | 13 + .../api/sncf.js.stoptime.departure_time.md | 5 + docs-src/api/sncf.js.stoptime.md | 235 +++++++- docs-src/api/sncf.js.structuresmanager.md | 365 +++++++++++- docs-src/api/sncf.js.time.md | 63 +- docs-src/api/sncf.js.timeimpact.md | 83 ++- docs-src/api/sncf.js.traininfo.md | 123 +++- docs-src/api/sncf.js.vehicle._constructor_.md | 48 +- docs-src/api/sncf.js.vehicle.arrival_date.md | 13 + docs-src/api/sncf.js.vehicle.arrival_time.md | 5 + .../api/sncf.js.vehicle.departure_date.md | 13 + .../api/sncf.js.vehicle.departure_time.md | 5 + docs-src/api/sncf.js.vehicle.md | 317 +++++++++- docs-src/api/sncf.js.weekpattern.md | 149 ++++- 94 files changed, 7283 insertions(+), 519 deletions(-) create mode 100644 docs-src/api/sncf.js.client.searchmanager.md create mode 100644 docs-src/api/sncf.js.datewithdateandhour.md create mode 100644 docs-src/api/sncf.js.extractdateintripid.md create mode 100644 docs-src/api/sncf.js.searchmanager._constructor_.md create mode 100644 docs-src/api/sncf.js.searchmanager.md create mode 100644 docs-src/api/sncf.js.searchmanager.searchtrain.md create mode 100644 docs-src/api/sncf.js.stoptime.arrival_date.md create mode 100644 docs-src/api/sncf.js.stoptime.departure_date.md create mode 100644 docs-src/api/sncf.js.vehicle.arrival_date.md create mode 100644 docs-src/api/sncf.js.vehicle.departure_date.md diff --git a/docs-src/.vitepress/config.js b/docs-src/.vitepress/config.js index 9a7353df..86471514 100644 --- a/docs-src/.vitepress/config.js +++ b/docs-src/.vitepress/config.js @@ -27,6 +27,7 @@ export default { { text: 'Managers', items: [ + { text: 'SearchManager', link: '/api/sncf.js.searchmanager.html' }, { text: 'DisruptionManager', link: '/api/sncf.js.disruptionmanager.html' }, { text: 'JourneyManager', link: '/api/sncf.js.journeymanager.html' }, { text: 'LineManager', link: '/api/sncf.js.linemanager.html' }, diff --git a/docs-src/api/index.md b/docs-src/api/index.md index bb50aaf8..be507bda 100644 --- a/docs-src/api/index.md +++ b/docs-src/api/index.md @@ -6,7 +6,24 @@ ## Packages -| Package | Description | -| --- | --- | -| [sncf.js](./sncf.js.md) | | +
+Package + + + | + +Description + + + |
---|---|
+ +[sncf.js](./sncf.js.md) + + + | + + + |
+Property + + + | + +Modifiers + + + | + +Type + + + | + +Description + + + |
---|---|---|---|
+ +[end\_date](./sncf.js.activeperiods.end_date.md) + + + | + + + | + +Date + + + | + +The end date of the active period + + + |
+ +[start\_date](./sncf.js.activeperiods.start_date.md) + + + | + + + | + +Date + + + | + +The start date of the active period + + + |
+Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +Client + + + | + +any + + + | + + + |
+ +data + + + | + +any + + + | + + + |
AdministrativeRegion
class |
++ +Constructor + + + | + +Modifiers + + + | + +Description + + + |
---|---|---|
+ +[(constructor)(Client, data)](./sncf.js.administrativeregion._constructor_.md) + + + | + + + | + +Constructs a new instance of the `AdministrativeRegion` class + + + |
+ +Property + + + | + +Modifiers + + + | + +Type + + + | + +Description + + + |
---|---|---|---|
+ +[coord](./sncf.js.administrativeregion.coord.md) + + + | + + + | + +[Coord](./sncf.js.coord.md) + + + | + +Return the coordinate of the stop area + + + |
+ +[id](./sncf.js.administrativeregion.id.md) + + + | + + + | + +string + + + | + +Return the stop area id + + + |
+ +[insee](./sncf.js.administrativeregion.insee.md) + + + | + + + | + +string + + + | + +Return the stop area zip code + + + |
+ +[name](./sncf.js.administrativeregion.name.md) + + + | + + + | + +string + + + | + +Return the stop area name + + + |
+ +[timezone](./sncf.js.administrativeregion.timezone.md) + + + | + + + | + +number + + + | + +Return the stop area level + + |
+Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +Client + + + | + +any + + + | + + + |
+ +data + + + | + +any + + + | + + + |
Arrival
class |
++ +Constructor + + + | + +Modifiers + + + | + +Description + + + |
---|---|---|
+ +[(constructor)(Client, data)](./sncf.js.arrival._constructor_.md) + + + | + + + | + +Constructs a new instance of the `Arrival` class + + + |
+ +Property + + + | + +Modifiers + + + | + +Type + + + | + +Description + + + |
---|---|---|---|
+ +[arrival\_date\_time](./sncf.js.arrival.arrival_date_time.md) + + + | + + + | + +Date + + + | + +Return the arrival time (real time) + + + |
+ +[base\_arrival\_date\_time](./sncf.js.arrival.base_arrival_date_time.md) + + + | + + + | + +Date + + + | + +Return the arrival time (scheduled) + + + |
+ +[base\_departure\_date\_time](./sncf.js.arrival.base_departure_date_time.md) + + + | + + + | + +Date + + + | + +Return the departure time (scheduled) + + + |
+ +[departure\_date\_time](./sncf.js.arrival.departure_date_time.md) + + + | + + + | + +Date + + + | + +Return the departure time (real time) + + + |
+ +[isLate](./sncf.js.arrival.islate.md) + + + | + + + | + +boolean + + + | + +Return true if the train is late + + + |
+ +[route](./sncf.js.arrival.route.md) + + + | + + + | + +[Route](./sncf.js.route.md) + + + | + +Return the route of the train + + + |
+ +[stop\_area](./sncf.js.arrival.stop_area.md) + + + | + + + | + +[StopArea](./sncf.js.stoparea.md) + + + | + +Return the stop area of the train + + + |
+ +[train](./sncf.js.arrival.train.md) + + + | + + + | + +[TrainInfo](./sncf.js.traininfo.md) + + + | + +Return the train data + + |
+Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +options + + + | + +{} + + + | + +_(Optional)_ + + + |
BaseClient
class |
++Constructor + + + | + +Modifiers + + + | + +Description + + + |
---|---|---|
+ +[(constructor)(options)](./sncf.js.baseclient._constructor_.md) + + + | + + + | + +Constructs a new instance of the `BaseClient` class + + + |
CachedManager
class |
++Constructor + + + | + +Modifiers + + + | + +Description + + + |
---|---|---|
+ +[(constructor)()](./sncf.js.cachedmanager._constructor_.md) + + + | + + + | + +Constructs a new instance of the `CachedManager` class + + + |
+Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +Client + + + | + +any + + + | + + + |
+ +data + + + | + +any + + + | + + + |
Calendar
class |
++ +Constructor + + + | + +Modifiers + + + | + +Description + + + |
---|---|---|
+ +[(constructor)(Client, data)](./sncf.js.calendar._constructor_.md) + + + | + + + | + +Constructs a new instance of the `Calendar` class + + + |
+ +Property + + + | + +Modifiers + + + | + +Type + + + | + +Description + + + |
---|---|---|---|
+ +[active\_periods](./sncf.js.calendar.active_periods.md) + + + | + + + | + +[ActivePeriods](./sncf.js.activeperiods.md) + + + | + +Return the active\_periods of the calendar + + + |
+ +[week\_pattern](./sncf.js.calendar.week_pattern.md) + + + | + + + | + +[WeekPattern](./sncf.js.weekpattern.md) + + + | + +Return the week pattern of the calendar + + |
+Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +options + + + | + +any + + + | + +_(Optional)_ + + + |
+Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +token + + + | + +string + + + | + +_(Optional)_ the token of the account to log in with + + + |
Client
class |
++ +Constructor + + + | + +Modifiers + + + | + +Description + + + |
---|---|---|
+ +[(constructor)(options)](./sncf.js.client._constructor_.md) + + + | + + + | + +Constructs a new instance of the `Client` class + + + |
readonly
| boolean | Indicates whether the client is ready to start working. |
-| [journey](./sncf.js.client.journey.md) | | [JourneyManager](./sncf.js.journeymanager.md) | JourneysManager class |
-| [line](./sncf.js.client.line.md) | | [LineManager](./sncf.js.linemanager.md) | LineManager class |
-| [place](./sncf.js.client.place.md) | | [PlacesManager](./sncf.js.placesmanager.md) | PlacesManager class |
-| [requestManager](./sncf.js.client.requestmanager.md) | | [RequestManager](./sncf.js.requestmanager.md) | The request manager of the client |
-| [status](./sncf.js.client.status.md) | | string | The status of the client |
++ +Property + + + | + +Modifiers + + + | + +Type + + + | + +Description + + + |
---|---|---|---|
+ +[debug](./sncf.js.client.debug.md) + + + | + + + | + +boolean + + + | + +If app run as debug mode + + + |
+ +[disruption](./sncf.js.client.disruption.md) + + + | + + + | + +[DisruptionManager](./sncf.js.disruptionmanager.md) + + + | + +DisruptionManager class + + + |
+ +[isReady](./sncf.js.client.isready.md) + + + | + +`readonly` + + + | + +boolean + + + | + +Indicates whether the client is ready to start working. + + + |
+ +[journey](./sncf.js.client.journey.md) + + + | + + + | + +[JourneyManager](./sncf.js.journeymanager.md) + + + | + +JourneysManager class + + + |
+ +[line](./sncf.js.client.line.md) + + + | + + + | + +[LineManager](./sncf.js.linemanager.md) + + + | + +LineManager class + + + |
+ +[place](./sncf.js.client.place.md) + + + | + + + | + +[PlacesManager](./sncf.js.placesmanager.md) + + + | + +PlacesManager class + + + |
+ +[requestManager](./sncf.js.client.requestmanager.md) + + + | + + + | + +[RequestManager](./sncf.js.requestmanager.md) + + + | + +The request manager of the client + + + |
+ +[searchManager](./sncf.js.client.searchmanager.md) + + + | + + + | + +[SearchManager](./sncf.js.searchmanager.md) + + + | + +SearchManager: It is used to search for a train by headsign ID and other search queries + + + |
+ +[status](./sncf.js.client.status.md) + + + | + + + | + +string + + + | + +The status of the client + + + |
+ +Method + + + | + +Modifiers + + + | + +Description + + + |
---|---|---|
+ +[login(token)](./sncf.js.client.login.md) + + + | + + + | + +Logs the client in, establishing a connection to navitia. + + |
+Property + + + | + +Modifiers + + + | + +Type + + + | + +Description + + + |
---|---|---|---|
+ +[unit](./sncf.js.co2emission.unit.md) + + + | + + + | + +string + + + | + + + |
+ +[value](./sncf.js.co2emission.value.md) + + + | + + + | + +number + + + | + + + |
+Property + + + | + +Modifiers + + + | + +Type + + + | + +Description + + + |
---|---|---|---|
+ +[lat](./sncf.js.coord.lat.md) + + + | + + + | + +number + + + | + +Latitude + + + |
+ +[lon](./sncf.js.coord.lon.md) + + + | + + + | + +number + + + | + +Longitude + + + |
+Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +keys + + + | + +any + + + | + + + |
+Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +date + + + | + +Date \| string + + + | + +The date to transform + + + |
+ +Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +hour + + + | + +string + + + | + + + |
+ +date + + + | + +Date + + + | + + + |
+Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +response + + + | + +any + + + | + + + |
+Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +Client + + + | + +any + + + | + + + |
+ +data + + + | + +any + + + | + + + |
Departure
class |
++ +Constructor + + + | + +Modifiers + + + | + +Description + + + |
---|---|---|
+ +[(constructor)(Client, data)](./sncf.js.departure._constructor_.md) + + + | + + + | + +Constructs a new instance of the `Departure` class + + + |
+ +Property + + + | + +Modifiers + + + | + +Type + + + | + +Description + + + |
---|---|---|---|
+ +[arrival\_date\_time](./sncf.js.departure.arrival_date_time.md) + + + | + + + | + +Date + + + | + +Return the arrival time (real time) + + + |
+ +[base\_arrival\_date\_time](./sncf.js.departure.base_arrival_date_time.md) + + + | + + + | + +Date + + + | + +Return the arrival time (scheduled) + + + |
+ +[base\_departure\_date\_time](./sncf.js.departure.base_departure_date_time.md) + + + | + + + | + +Date + + + | + +Return the departure time (scheduled) + + + |
+ +[departure\_date\_time](./sncf.js.departure.departure_date_time.md) + + + | + + + | + +Date + + + | + +Return the departure time (real time) + + + |
+ +[isLate](./sncf.js.departure.islate.md) + + + | + + + | + +boolean + + + | + +Return true if the train is late + + + |
+ +[route](./sncf.js.departure.route.md) + + + | + + + | + +[Route](./sncf.js.route.md) + + + | + +Return the route of the train + + + |
+ +[stop\_area](./sncf.js.departure.stop_area.md) + + + | + + + | + +[StopArea](./sncf.js.stoparea.md) + + + | + +Return the stop area of the train + + + |
+ +[train](./sncf.js.departure.train.md) + + + | + + + | + +[TrainInfo](./sncf.js.traininfo.md) + + + | + +Return the train data + + |
+Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +Client + + + | + +any + + + | + + + |
+ +data + + + | + +any + + + | + + + |
Disruption
class |
++ +Constructor + + + | + +Modifiers + + + | + +Description + + + |
---|---|---|
+ +[(constructor)(Client, data)](./sncf.js.disruption._constructor_.md) + + + | + + + | + +Constructs a new instance of the `Disruption` class + + + |
+ +Property + + + | + +Modifiers + + + | + +Type + + + | + +Description + + + |
---|---|---|---|
+ +[canceled](./sncf.js.disruption.canceled.md) + + + | + + + | + +boolean + + + | + +Return true if the train was canceled + + + |
+ +[cause](./sncf.js.disruption.cause.md) + + + | + + + | + +string + + + | + +Return the cause of the disruption + + + |
+ +[delayed](./sncf.js.disruption.delayed.md) + + + | + + + | + +boolean + + + | + +Return true if the train was delayed + + + |
+ +[end](./sncf.js.disruption.end.md) + + + | + + + | + +Date + + + | + +Return the end date of the disruption + + + |
+ +[id](./sncf.js.disruption.id.md) + + + | + + + | + +string + + + | + +Return the id of the disruption + + + |
+ +[impacted\_stops](./sncf.js.disruption.impacted_stops.md) + + + | + + + | + +[ImpactedStop](./sncf.js.impactedstop.md)\[\] + + + | + +Return the impacted stops of the disruption + + + |
+ +[messages](./sncf.js.disruption.messages.md) + + + | + + + | + +string\[\] + + + | + +Return the messages of the disruption + + + |
+ +[severity](./sncf.js.disruption.severity.md) + + + | + + + | + +[Severity](./sncf.js.severity.md) + + + | + +Return the severity of the disruption + + + |
+ +[start](./sncf.js.disruption.start.md) + + + | + + + | + +Date + + + | + +Return the start date of the disruption + + + |
+ +[status](./sncf.js.disruption.status.md) + + + | + + + | + +string + + + | + +Return the status of the disruption + + + |
+ +[updated\_at](./sncf.js.disruption.updated_at.md) + + + | + + + | + +Date + + + | + +Return the updated date of the disruption + + |
+Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +client + + + | + +any + + + | + + + |
+Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +disruptionID + + + | + +string + + + | + +The id of the disruption to get + + + |
DisruptionManager
class |
++ +Constructor + + + | + +Modifiers + + + | + +Description + + + |
---|---|---|
+ +[(constructor)(client)](./sncf.js.disruptionmanager._constructor_.md) + + + | + + + | + +Constructs a new instance of the `DisruptionManager` class + + + |
+ +Method + + + | + +Modifiers + + + | + +Description + + + |
---|---|---|
+ +[get(disruptionID)](./sncf.js.disruptionmanager.get.md) + + + | + + + | + +Get a disruption by id + + + |
+ +[search(since\_date, until\_date)](./sncf.js.disruptionmanager.search.md) + + + | + + + | + +Search the disruptions + + |
+Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +since\_date + + + | + +Date + + + | + +_(Optional)_ Defines the start date of the disruptions to search for + + + |
+ +until\_date + + + | + +Date + + + | + +_(Optional)_ Defines the end date of the disruptions to search for + + + |
+ +Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +id + + + | + +string + + + | + + + |
+Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +data + + + | + +string + + + | + +The navitia date + + + |
+ +PassError + + + | + +boolean + + + | + +_(Optional)_ If true, return null instead of throwing an error + + + |
+Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +Client + + + | + +any + + + | + + + |
+ +data + + + | + +any + + + | + + + |
ImpactedStop
class |
++ +Constructor + + + | + +Modifiers + + + | + +Description + + + |
---|---|---|
+ +[(constructor)(Client, data)](./sncf.js.impactedstop._constructor_.md) + + + | + + + | + +Constructs a new instance of the `ImpactedStop` class + + + |
+ +Property + + + | + +Modifiers + + + | + +Type + + + | + +Description + + + |
---|---|---|---|
+ +[arrival](./sncf.js.impactedstop.arrival.md) + + + | + + + | + +[TimeImpact](./sncf.js.timeimpact.md) + + + | + +Return the Arrival data of the stop + + + |
+ +[cause](./sncf.js.impactedstop.cause.md) + + + | + + + | + +string + + + | + +Return the cause of the impact + + + |
+ +[departure](./sncf.js.impactedstop.departure.md) + + + | + + + | + +[TimeImpact](./sncf.js.timeimpact.md) + + + | + +Return the Departure data of the stop + + + |
+ +[is\_detour](./sncf.js.impactedstop.is_detour.md) + + + | + + + | + +boolean + + + | + +Return boolean if the stop is impacted by a detour + + + |
+ +[stop\_area](./sncf.js.impactedstop.stop_area.md) + + + | + + + | + +[StopArea](./sncf.js.stoparea.md) + + + | + +Return the stop area + + |
+Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +string + + + | + +string + + + | + +The string to check + + + |
+Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +string + + + | + +string + + + | + +The string to check + + + |
+Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +Client + + + | + +any + + + | + + + |
+ +data + + + | + +any + + + | + + + |
Journey
class |
++ +Constructor + + + | + +Modifiers + + + | + +Description + + + |
---|---|---|
+ +[(constructor)(Client, data)](./sncf.js.journey._constructor_.md) + + + | + + + | + +Constructs a new instance of the `Journey` class + + + |
readonly
| [Step](./sncf.js.step.md)\[\] | Get the steps of the journey |
-| [transfers](./sncf.js.journey.transfers.md) | | number | Transfers of the journey |
-| [type](./sncf.js.journey.type.md) | | string | Define the journey average |
++ +Property + + + | + +Modifiers + + + | + +Type + + + | + +Description + + + |
---|---|---|---|
+ +[arrival\_date\_time](./sncf.js.journey.arrival_date_time.md) + + + | + + + | + +Date + + + | + +Arrival time + + + |
+ +[departure\_date\_time](./sncf.js.journey.departure_date_time.md) + + + | + + + | + +Date + + + | + +Departure time + + + |
+ +[disruptions](./sncf.js.journey.disruptions.md) + + + | + + + | + +[Disruption](./sncf.js.disruption.md)\[\] + + + | + +If the journey has disruptions return the disruptions + + + |
+ +[duration](./sncf.js.journey.duration.md) + + + | + + + | + +number + + + | + +Duration of the journey + + + |
+ +[id](./sncf.js.journey.id.md) + + + | + + + | + +string + + + | + +Return the journey id + + + |
+ +[price](./sncf.js.journey.price.md) + + + | + + + | + +[Price](./sncf.js.price.md) + + + | + +Price of the journey + + + |
+ +[status](./sncf.js.journey.status.md) + + + | + + + | + +string + + + | + +Return value if status is define + + + |
+ +[steps](./sncf.js.journey.steps.md) + + + | + +`readonly` + + + | + +[Step](./sncf.js.step.md)\[\] + + + | + +Get the steps of the journey + + + |
+ +[transfers](./sncf.js.journey.transfers.md) + + + | + + + | + +number + + + | + +Transfers of the journey + + + |
+ +[type](./sncf.js.journey.type.md) + + + | + + + | + +string + + + | + +Define the journey average + + |
+Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +client + + + | + +any + + + | + + + |
+Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +from + + + | + +string + + + | + +The departure stop area id or name + + + |
+ +to + + + | + +string + + + | + +The arrival stop area id or name + + + |
+ +date + + + | + +Date + + + | + +_(Optional)_ The date of the journey to get + + + |
JourneyManager
class |
++ +Constructor + + + | + +Modifiers + + + | + +Description + + + |
---|---|---|
+ +[(constructor)(client)](./sncf.js.journeymanager._constructor_.md) + + + | + + + | + +Constructs a new instance of the `JourneyManager` class + + + |
+ +Method + + + | + +Modifiers + + + | + +Description + + + |
---|---|---|
+ +[get(from, to, date)](./sncf.js.journeymanager.get.md) + + + | + + + | + +Get a journey details with departure and arrival stop areas ids + + |
+Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +Client + + + | + +any + + + | + + + |
+ +data + + + | + +any + + + | + + + |
Line
class |
++ +Constructor + + + | + +Modifiers + + + | + +Description + + + |
---|---|---|
+ +[(constructor)(Client, data)](./sncf.js.line._constructor_.md) + + + | + + + | + +Constructs a new instance of the `Line` class + + + |
+ +Property + + + | + +Modifiers + + + | + +Type + + + | + +Description + + + |
---|---|---|---|
+ +[closing\_time](./sncf.js.line.closing_time.md) + + + | + + + | + +string + + + | + +Return the closing time (HH:MM:SS) + + + |
+ +[commercial\_mode](./sncf.js.line.commercial_mode.md) + + + | + + + | + +string + + + | + +Return the commercial mode + + + |
+ +[id](./sncf.js.line.id.md) + + + | + + + | + +string + + + | + +Return the line id + + + |
+ +[name](./sncf.js.line.name.md) + + + | + + + | + +string + + + | + +Return the line name + + + |
+ +[network](./sncf.js.line.network.md) + + + | + + + | + +[Network](./sncf.js.network.md) + + + | + +Return the line network + + + |
+ +[opening\_time](./sncf.js.line.opening_time.md) + + + | + + + | + +string + + + | + +Return the opening time (HH:MM:SS) + + + |
+ +[physical\_modes](./sncf.js.line.physical_modes.md) + + + | + + + | + +[Network](./sncf.js.network.md)\[\] + + + | + +Return the physical modes + + + |
+ +[routes](./sncf.js.line.routes.md) + + + | + + + | + +[Route](./sncf.js.route.md)\[\] + + + | + +Return the line routes if exist + + |
+Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +client + + + | + +any + + + | + + + |
+Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +lineID + + + | + +string + + + | + +The id of the line + + + |
LineManager
class |
++ +Constructor + + + | + +Modifiers + + + | + +Description + + + |
---|---|---|
+ +[(constructor)(client)](./sncf.js.linemanager._constructor_.md) + + + | + + + | + +Constructs a new instance of the `LineManager` class + + + |
+ +Method + + + | + +Modifiers + + + | + +Description + + + |
---|---|---|
+ +[get(lineID)](./sncf.js.linemanager.get.md) + + + | + + + | + +Get a line by id + + + |
+ +[search(line)](./sncf.js.linemanager.search.md) + + + | + + + | + +Search a line by name (departure - arrival) + + |
+Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +line + + + | + +string + + + | + +The name of the line + + + |
+ +Class + + + | + +Description + + + |
---|---|
+ +[AdministrativeRegion](./sncf.js.administrativeregion.md) + + + | + + + |
+ +[Arrival](./sncf.js.arrival.md) + + + | + + + |
+ +[BaseClient](./sncf.js.baseclient.md) + + + | + + + |
+ +[CachedManager](./sncf.js.cachedmanager.md) + + + | + +Manages the API methods of a data model with a mutable cache of instances. + + + |
+ +[Calendar](./sncf.js.calendar.md) + + + | + + + |
+ +[Client](./sncf.js.client.md) + + + | + +The main hub for interacting with the Navitia API. + + + |
+ +[Departure](./sncf.js.departure.md) + + + | + + + |
+ +[Disruption](./sncf.js.disruption.md) + + + | + + + |
+ +[DisruptionManager](./sncf.js.disruptionmanager.md) + + + | + + + |
+ +[ImpactedStop](./sncf.js.impactedstop.md) + + + | + + + |
+ +[Journey](./sncf.js.journey.md) + + + | + + + |
+ +[JourneyManager](./sncf.js.journeymanager.md) + + + | + + + |
+ +[Line](./sncf.js.line.md) + + + | + + + |
+ +[LineManager](./sncf.js.linemanager.md) + + + | + + + |
+ +[PlacesManager](./sncf.js.placesmanager.md) + + + | + + + |
+ +[RequestManager](./sncf.js.requestmanager.md) + + + | + + + |
+ +[Route](./sncf.js.route.md) + + + | + + + |
+ +[SearchManager](./sncf.js.searchmanager.md) + + + | + + + |
+ +[Step](./sncf.js.step.md) + + + | + + + |
+ +[StopArea](./sncf.js.stoparea.md) + + + | + + + |
+ +[StopStep](./sncf.js.stopstep.md) + + + | + + + |
+ +[StopTime](./sncf.js.stoptime.md) + + + | + + + |
+ +[StructuresManager](./sncf.js.structuresmanager.md) + + + | + + + |
+ +[Vehicle](./sncf.js.vehicle.md) + + + | + + + |
+ +Function + + + | + +Description + + + |
---|---|
+ +[createEnum(keys)](./sncf.js.createenum.md) + + + | + + + |
+ +[dateToNavitiaDate(date)](./sncf.js.datetonavitiadate.md) + + + | + +Transform a Date object to a navitia date + + + |
+ +[dateWithDateAndHour(hour, date)](./sncf.js.datewithdateandhour.md) + + + | + + + |
+ +[defineRequestError(response)](./sncf.js.definerequesterror.md) + + + | + + + |
+ +[extractDateInTripID(id)](./sncf.js.extractdateintripid.md) + + + | + + + |
+ +[hourNativiaToHour(data, PassError)](./sncf.js.hournativiatohour.md) + + + | + +Transform a navitia date to a moment object (format: HHmmss to HH:mm:ss) + + + |
+ +[isValidID(string)](./sncf.js.isvalidid.md) + + + | + +Check if is a valid ID + + + |
+ +[isValidLineID(string)](./sncf.js.isvalidlineid.md) + + + | + +Check if is a valid Line ID + + + |
+ +[navitiaDateToDate(date)](./sncf.js.navitiadatetodate.md) + + + | + +Transform a navitia date to a Date object + + + |
+ +Interface + + + | + +Description + + + |
---|---|
+ +[ActivePeriods](./sncf.js.activeperiods.md) + + + | + + + |
+ +[Co2Emission](./sncf.js.co2emission.md) + + + | + + + |
+ +[Coord](./sncf.js.coord.md) + + + | + + + |
+ +[Network](./sncf.js.network.md) + + + | + + + |
+ +[PlaceManagerResult](./sncf.js.placemanagerresult.md) + + + | + + + |
+ +[Price](./sncf.js.price.md) + + + | + + + |
+ +[Severity](./sncf.js.severity.md) + + + | + + + |
+ +[Time](./sncf.js.time.md) + + + | + + + |
+ +[TimeImpact](./sncf.js.timeimpact.md) + + + | + + + |
+ +[TrainInfo](./sncf.js.traininfo.md) + + + | + + + |
+ +[WeekPattern](./sncf.js.weekpattern.md) + + + | + + + |
+ +Variable + + + | + +Description + + + |
---|---|
+ +[ErrorCodes](./sncf.js.errorcodes.md) + + + | + + + |
+ +[Messages](./sncf.js.messages.md) + + + | + + + |
+ +[SncfjsError](./sncf.js.sncfjserror.md) + + + | + + + |
+ +[SncfjsRangeError](./sncf.js.sncfjsrangeerror.md) + + + | + + + |
+ +[SncfjsTypeError](./sncf.js.sncfjstypeerror.md) + + + | + + |
+Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +date + + + | + +string + + + | + +The navitia date format: YYYYMMDD\[T\]HHmmss + + + |
+Property + + + | + +Modifiers + + + | + +Type + + + | + +Description + + + |
---|---|---|---|
+ +[id](./sncf.js.network.id.md) + + + | + + + | + +string + + + | + +The id of the network + + + |
+ +[name](./sncf.js.network.name.md) + + + | + + + | + +string + + + | + +The name of the network + + + |
+Property + + + | + +Modifiers + + + | + +Type + + + | + +Description + + + |
---|---|---|---|
+ +[administrative\_regions](./sncf.js.placemanagerresult.administrative_regions.md) + + + | + + + | + +[AdministrativeRegion](./sncf.js.administrativeregion.md)\[\] + + + | + + + |
+ +[date](./sncf.js.placemanagerresult.date.md) + + + | + + + | + +Date + + + | + + + |
+ +[stop\_areas](./sncf.js.placemanagerresult.stop_areas.md) + + + | + + + | + +[StopArea](./sncf.js.stoparea.md)\[\] + + + | + + + |
+Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +client + + + | + +any + + + | + + + |
+Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +stationID + + + | + +string + + + | + +The id of the station to get + + + |
PlacesManager
class |
++ +Constructor + + + | + +Modifiers + + + | + +Description + + + |
---|---|---|
+ +[(constructor)(client)](./sncf.js.placesmanager._constructor_.md) + + + | + + + | + +Constructs a new instance of the `PlacesManager` class + + + |
+ +Method + + + | + +Modifiers + + + | + +Description + + + |
---|---|---|
+ +[get(stationID)](./sncf.js.placesmanager.get.md) + + + | + + + | + +Get a place by id + + + |
+ +[search(station)](./sncf.js.placesmanager.search.md) + + + | + + + | + +Search for a place by name + + |
+Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +station + + + | + +string + + + | + +The name of the station to search for + + + |
+Property + + + | + +Modifiers + + + | + +Type + + + | + +Description + + + |
---|---|---|---|
+ +[found](./sncf.js.price.found.md) + + + | + + + | + +boolean + + + | + +If the price is found + + + |
+ +[value](./sncf.js.price.value.md) + + + | + + + | + +number + + + | + +The currency of the price + + + |
+Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +client + + + | + +any + + + | + + + |
+Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +path + + + | + +string + + + | + +_(Optional)_ The path to url + + + |
+ +params + + + | + +any + + + | + +_(Optional)_ The parameters to encode + + + |
+ +Constructor + + + | + +Modifiers + + + | + +Description + + + |
---|---|---|
+ +[(constructor)(client)](./sncf.js.requestmanager._constructor_.md) + + + | + + + | + +The client that instantiated this WebSocketManager + + + |
+ +Property + + + | + +Modifiers + + + | + +Type + + + | + +Description + + + |
---|---|---|---|
+ +[config](./sncf.js.requestmanager.config.md) + + + | + + + | + +any + + + | + +The configuration of the request manager + + + |
+ +[requestNumber](./sncf.js.requestmanager.requestnumber.md) + + + | + + + | + +number + + + | + +The number of the request + + + |
+ +Method + + + | + +Modifiers + + + | + +Description + + + |
---|---|---|
+ +[connect()](./sncf.js.requestmanager.connect.md) + + + | + + + | + +Try to log in with the token + + + |
+ +[encodeURL(path, params)](./sncf.js.requestmanager.encodeurl.md) + + + | + + + | + +Encode the parameters and the url + + + |
+ +[request(path, params)](./sncf.js.requestmanager.request.md) + + + | + + + | + +Make a request to the API + + |
+Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +path + + + | + +string + + + | + +The path to url + + + |
+ +params + + + | + +any + + + | + +_(Optional)_ The parameters to encode + + + |
+Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +Client + + + | + +any + + + | + + + |
+ +data + + + | + +any + + + | + + + |
Route
class |
++ +Constructor + + + | + +Modifiers + + + | + +Description + + + |
---|---|---|
+ +[(constructor)(Client, data)](./sncf.js.route._constructor_.md) + + + | + + + | + +Constructs a new instance of the `Route` class + + + |
+ +Property + + + | + +Modifiers + + + | + +Type + + + | + +Description + + + |
---|---|---|---|
+ +[direction\_type](./sncf.js.route.direction_type.md) + + + | + + + | + +string + + + | + +Return the route direction type + + + |
+ +[direction](./sncf.js.route.direction.md) + + + | + + + | + +[StopArea](./sncf.js.stoparea.md) + + + | + +Return the route direction + + + |
+ +[id](./sncf.js.route.id.md) + + + | + + + | + +string + + + | + +Return the route id + + + |
+ +[line](./sncf.js.route.line.md) + + + | + + + | + +[Line](./sncf.js.line.md) + + + | + +Return the route line + + + |
+ +[name](./sncf.js.route.name.md) + + + | + + + | + +string + + + | + +Return the route name + + + |
+ +[physical\_modes](./sncf.js.route.physical_modes.md) + + + | + + + | + +any\[\] + + + | + +Physical mode of the route + + |
+ +Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +client + + + | + +any + + + | + + + |
+ +Constructor + + + | + +Modifiers + + + | + +Description + + + |
---|---|---|
+ +[(constructor)(client)](./sncf.js.searchmanager._constructor_.md) + + + | + + + | + +Constructs a new instance of the `SearchManager` class + + + |
+ +Method + + + | + +Modifiers + + + | + +Description + + + |
---|---|---|
+ +[searchTrain(headsign, date)](./sncf.js.searchmanager.searchtrain.md) + + + | + + + | + +Search a train by headsign ID + + + |
+ +Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +headsign + + + | + +string + + + | + +The headsign of the line + + + |
+ +date + + + | + +Date + + + | + +_(Optional)_ Not required, but highly recommended for effective results + + + |
+Property + + + | + +Modifiers + + + | + +Type + + + | + +Description + + + |
---|---|---|---|
+ +[code](./sncf.js.severity.code.md) + + + | + + + | + +string + + + | + + + |
+ +[name](./sncf.js.severity.name.md) + + + | + + + | + +string + + + | + + + |
+ +[priority](./sncf.js.severity.priority.md) + + + | + + + | + +string + + + | + + + |
+Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +Client + + + | + +any + + + | + + + |
+ +data + + + | + +any + + + | + + + |
Step
class |
++ +Constructor + + + | + +Modifiers + + + | + +Description + + + |
---|---|---|
+ +[(constructor)(Client, data)](./sncf.js.step._constructor_.md) + + + | + + + | + +Constructs a new instance of the `Step` class + + + |
+ +Property + + + | + +Modifiers + + + | + +Type + + + | + +Description + + + |
---|---|---|---|
+ +[arrival\_date\_time](./sncf.js.step.arrival_date_time.md) + + + | + + + | + +Date + + + | + +Return the step arrival date time + + + |
+ +[co2\_emission](./sncf.js.step.co2_emission.md) + + + | + + + | + +[Co2Emission](./sncf.js.co2emission.md) + + + | + + + |
+ +[departure\_date\_time](./sncf.js.step.departure_date_time.md) + + + | + + + | + +Date + + + | + +Return the step departure date time + + + |
+ +[duration](./sncf.js.step.duration.md) + + + | + + + | + +number + + + | + +Return the step duration + + + |
+ +[from](./sncf.js.step.from.md) + + + | + + + | + +[StopArea](./sncf.js.stoparea.md) + + + | + +Return the step from if exist + + + |
+ +[id](./sncf.js.step.id.md) + + + | + + + | + +string + + + | + +Return the step id + + + |
+ +[is\_transfer](./sncf.js.step.is_transfer.md) + + + | + + + | + +boolean + + + | + +Return boolean if the step is a transfer + + + |
+ +[stops](./sncf.js.step.stops.md) + + + | + + + | + +[StopStep](./sncf.js.stopstep.md)\[\] + + + | + +Return the step stops if exist + + + |
+ +[to](./sncf.js.step.to.md) + + + | + + + | + +[StopArea](./sncf.js.stoparea.md) + + + | + +Return the step to if exist + + + |
+ +[type](./sncf.js.step.type.md) + + + | + + + | + +string + + + | + +Return the step type + + |
+Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +Client + + + | + +any + + + | + + + |
+ +data + + + | + +any + + + | + + + |
+Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +date + + + | + +Date + + + | + +_(Optional)_ The date of the arrivals + + + |
+Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +date + + + | + +Date + + + | + +_(Optional)_ The date of the departures + + + |
+Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +to + + + | + +string + + + | + +_(Optional)_ The id or name of the destination + + + |
+ +date + + + | + +Date + + + | + +_(Optional)_ The date of the journey + + + |
StopArea
class |
++ +Constructor + + + | + +Modifiers + + + | + +Description + + + |
---|---|---|
+ +[(constructor)(Client, data)](./sncf.js.stoparea._constructor_.md) + + + | + + + | + +Constructs a new instance of the `StopArea` class + + + |
+ +Property + + + | + +Modifiers + + + | + +Type + + + | + +Description + + + |
---|---|---|---|
+ +[administrative\_region](./sncf.js.stoparea.administrative_region.md) + + + | + + + | + +[AdministrativeRegion](./sncf.js.administrativeregion.md) \| null + + + | + +Return the Administative Region of the stop area (if exist) + + + |
+ +[coord](./sncf.js.stoparea.coord.md) + + + | + + + | + +[Coord](./sncf.js.coord.md) + + + | + +The coord of the stop area + + + |
+ +[id](./sncf.js.stoparea.id.md) + + + | + + + | + +string + + + | + +The id of the stop area + + + |
+ +[name](./sncf.js.stoparea.name.md) + + + | + + + | + +string + + + | + +The name of the stop area + + + |
+ +[timezone](./sncf.js.stoparea.timezone.md) + + + | + + + | + +string + + + | + +The timezone of the stop area + + + |
+ +Method + + + | + +Modifiers + + + | + +Description + + + |
---|---|---|
+ +[arrivals(date)](./sncf.js.stoparea.arrivals.md) + + + | + + + | + +Get the arrivals of the stop area + + + |
+ +[departures(date)](./sncf.js.stoparea.departures.md) + + + | + + + | + +Get the departures of the stop area + + + |
+ +[journeys(to, date)](./sncf.js.stoparea.journeys.md) + + + | + + + | + +Get Journeys from the stop area + + + |
+ +[lines()](./sncf.js.stoparea.lines.md) + + + | + + + | + +Get the lines of the stop area + + + |
+ +[routes()](./sncf.js.stoparea.routes.md) + + + | + + + | + +Get the routes of the stop area + + + |
+ +[vehicle\_journeys(since, until)](./sncf.js.stoparea.vehicle_journeys.md) + + + | + + + | + +Get vehicle journeys of the stop area + + |
+Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +since + + + | + +Date + + + | + +_(Optional)_ The start date of the vehicle journeys to get + + + |
+ +until + + + | + +Date + + + | + +_(Optional)_ The end date of the vehicle journeys to get (default: since + 1 day) + + + |
+Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +Client + + + | + +any + + + | + + + |
+ +data + + + | + +any + + + | + + + |
StopStep
class |
++ +Constructor + + + | + +Modifiers + + + | + +Description + + + |
---|---|---|
+ +[(constructor)(Client, data)](./sncf.js.stopstep._constructor_.md) + + + | + + + | + +Constructs a new instance of the `StopStep` class + + + |
+ +Property + + + | + +Modifiers + + + | + +Type + + + | + +Description + + + |
---|---|---|---|
+ +[arrival](./sncf.js.stopstep.arrival.md) + + + | + + + | + +[Time](./sncf.js.time.md) + + + | + +Return the Arrival data of the stop + + + |
+ +[departure](./sncf.js.stopstep.departure.md) + + + | + + + | + +[Time](./sncf.js.time.md) + + + | + +Return the Departure data of the stop + + + |
+ +[stop\_area](./sncf.js.stopstep.stop_area.md) + + + | + + + | + +[StopArea](./sncf.js.stoparea.md) + + + | + +Return the stop area + + |
+Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +Client + + + | + +any + + + | + + + |
+ +data + + + | + +any + + + | + + + |
+ +date + + + | + +Date + + + | + +_(Optional)_ + + + |
StopTime
class |
++ +Constructor + + + | + +Modifiers + + + | + +Description + + + |
---|---|---|
+ +[(constructor)(Client, data, date)](./sncf.js.stoptime._constructor_.md) + + + | + + + | + +Constructs a new instance of the `StopTime` class + + + |
+ +Property + + + | + +Modifiers + + + | + +Type + + + | + +Description + + + |
---|---|---|---|
+ +[arrival\_date](./sncf.js.stoptime.arrival_date.md) + + + | + + + | + +Date + + + | + +Return the arrival date of the train + + + |
+ +[arrival\_time](./sncf.js.stoptime.arrival_time.md) + + + | + + + | + +string + + + | + +Arrival time + + + |
+ +[departure\_date](./sncf.js.stoptime.departure_date.md) + + + | + + + | + +Date + + + | + +Return the departure date of the train + + + |
+ +[departure\_time](./sncf.js.stoptime.departure_time.md) + + + | + + + | + +string + + + | + +Departure time + + + |
+ +[drop\_off](./sncf.js.stoptime.drop_off.md) + + + | + + + | + +boolean + + + | + +Return boolean if drop off is available + + + |
+ +[headsign](./sncf.js.stoptime.headsign.md) + + + | + + + | + +string + + + | + +Return the headsign of the train + + + |
+ +[pick\_up](./sncf.js.stoptime.pick_up.md) + + + | + + + | + +boolean + + + | + +Return boolean if pick up is available + + + |
+ +[skipped](./sncf.js.stoptime.skipped.md) + + + | + + + | + +boolean + + + | + +Return boolean if the stop is skipped + + + |
+ +[stop\_area](./sncf.js.stoptime.stop_area.md) + + + | + + + | + +[StopArea](./sncf.js.stoparea.md) + + + | + +Return the stop area + + |
StructuresManager
class |
++ +Constructor + + + | + +Modifiers + + + | + +Description + + + |
---|---|---|
+ +[(constructor)()](./sncf.js.structuresmanager._constructor_.md) + + + | + + + | + +Constructs a new instance of the `StructuresManager` class + + + |
readonly
| typeof [AdministrativeRegion](./sncf.js.administrativeregion.md) | Get AdministartiveRegion constructor |
-| [class\_arrival](./sncf.js.structuresmanager.class_arrival.md) | readonly
| typeof [Arrival](./sncf.js.arrival.md) | Get arrival constructor |
-| [class\_calendar](./sncf.js.structuresmanager.class_calendar.md) | readonly
| typeof [Calendar](./sncf.js.calendar.md) | Get Calendar constructor |
-| [class\_departure](./sncf.js.structuresmanager.class_departure.md) | readonly
| typeof [Departure](./sncf.js.departure.md) | Get departure constructor |
-| [class\_disruption](./sncf.js.structuresmanager.class_disruption.md) | readonly
| typeof [Disruption](./sncf.js.disruption.md) | Get class\_disruption constructor |
-| [class\_impacted\_stop](./sncf.js.structuresmanager.class_impacted_stop.md) | readonly
| typeof [ImpactedStop](./sncf.js.impactedstop.md) | Get ImpactedStop constructor |
-| [class\_journey](./sncf.js.structuresmanager.class_journey.md) | readonly
| typeof [Journey](./sncf.js.journey.md) | Get Journey constructor |
-| [class\_line](./sncf.js.structuresmanager.class_line.md) | readonly
| typeof [Line](./sncf.js.line.md) | Get Line constructor |
-| [class\_route](./sncf.js.structuresmanager.class_route.md) | readonly
| typeof [Route](./sncf.js.route.md) | Get Route constructor |
-| [class\_step](./sncf.js.structuresmanager.class_step.md) | readonly
| typeof [Step](./sncf.js.step.md) | Get Step constructor |
-| [class\_stop\_area](./sncf.js.structuresmanager.class_stop_area.md) | readonly
| typeof [StopArea](./sncf.js.stoparea.md) | Get StopArea constructor |
-| [class\_stop\_step](./sncf.js.structuresmanager.class_stop_step.md) | readonly
| typeof [StopStep](./sncf.js.stopstep.md) | Get StopStep constructor |
-| [class\_stop\_time](./sncf.js.structuresmanager.class_stop_time.md) | readonly
| typeof [StopTime](./sncf.js.stoptime.md) | Get StopTime constructor |
-| [class\_vehicle](./sncf.js.structuresmanager.class_vehicle.md) | readonly
| typeof [Vehicle](./sncf.js.vehicle.md) | Get Vehicle constructor |
++ +Property + + + | + +Modifiers + + + | + +Type + + + | + +Description + + + |
---|---|---|---|
+ +[class\_administrative\_region](./sncf.js.structuresmanager.class_administrative_region.md) + + + | + +`readonly` + + + | + +typeof [AdministrativeRegion](./sncf.js.administrativeregion.md) + + + | + +Get AdministartiveRegion constructor + + + |
+ +[class\_arrival](./sncf.js.structuresmanager.class_arrival.md) + + + | + +`readonly` + + + | + +typeof [Arrival](./sncf.js.arrival.md) + + + | + +Get arrival constructor + + + |
+ +[class\_calendar](./sncf.js.structuresmanager.class_calendar.md) + + + | + +`readonly` + + + | + +typeof [Calendar](./sncf.js.calendar.md) + + + | + +Get Calendar constructor + + + |
+ +[class\_departure](./sncf.js.structuresmanager.class_departure.md) + + + | + +`readonly` + + + | + +typeof [Departure](./sncf.js.departure.md) + + + | + +Get departure constructor + + + |
+ +[class\_disruption](./sncf.js.structuresmanager.class_disruption.md) + + + | + +`readonly` + + + | + +typeof [Disruption](./sncf.js.disruption.md) + + + | + +Get class\_disruption constructor + + + |
+ +[class\_impacted\_stop](./sncf.js.structuresmanager.class_impacted_stop.md) + + + | + +`readonly` + + + | + +typeof [ImpactedStop](./sncf.js.impactedstop.md) + + + | + +Get ImpactedStop constructor + + + |
+ +[class\_journey](./sncf.js.structuresmanager.class_journey.md) + + + | + +`readonly` + + + | + +typeof [Journey](./sncf.js.journey.md) + + + | + +Get Journey constructor + + + |
+ +[class\_line](./sncf.js.structuresmanager.class_line.md) + + + | + +`readonly` + + + | + +typeof [Line](./sncf.js.line.md) + + + | + +Get Line constructor + + + |
+ +[class\_route](./sncf.js.structuresmanager.class_route.md) + + + | + +`readonly` + + + | + +typeof [Route](./sncf.js.route.md) + + + | + +Get Route constructor + + + |
+ +[class\_step](./sncf.js.structuresmanager.class_step.md) + + + | + +`readonly` + + + | + +typeof [Step](./sncf.js.step.md) + + + | + +Get Step constructor + + + |
+ +[class\_stop\_area](./sncf.js.structuresmanager.class_stop_area.md) + + + | + +`readonly` + + + | + +typeof [StopArea](./sncf.js.stoparea.md) + + + | + +Get StopArea constructor + + + |
+ +[class\_stop\_step](./sncf.js.structuresmanager.class_stop_step.md) + + + | + +`readonly` + + + | + +typeof [StopStep](./sncf.js.stopstep.md) + + + | + +Get StopStep constructor + + + |
+ +[class\_stop\_time](./sncf.js.structuresmanager.class_stop_time.md) + + + | + +`readonly` + + + | + +typeof [StopTime](./sncf.js.stoptime.md) + + + | + +Get StopTime constructor + + + |
+ +[class\_vehicle](./sncf.js.structuresmanager.class_vehicle.md) + + + | + +`readonly` + + + | + +typeof [Vehicle](./sncf.js.vehicle.md) + + + | + +Get Vehicle constructor + + |
+Property + + + | + +Modifiers + + + | + +Type + + + | + +Description + + + |
---|---|---|---|
+ +[base\_date](./sncf.js.time.base_date.md) + + + | + + + | + +Date + + + | + +The scheduled date + + + |
+ +[real\_date](./sncf.js.time.real_date.md) + + + | + + + | + +Date + + + | + +The real date + + + |
+Property + + + | + +Modifiers + + + | + +Type + + + | + +Description + + + |
---|---|---|---|
+ +[base\_time](./sncf.js.timeimpact.base_time.md) + + + | + + + | + +string + + + | + +Return the base time of the impact + + + |
+ +[real\_time](./sncf.js.timeimpact.real_time.md) + + + | + + + | + +string + + + | + +Return the real time of the impact + + + |
+ +[status](./sncf.js.timeimpact.status.md) + + + | + + + | + +string + + + | + +Return the status of the impact + + + |
+Property + + + | + +Modifiers + + + | + +Type + + + | + +Description + + + |
---|---|---|---|
+ +[commercial\_mode](./sncf.js.traininfo.commercial_mode.md) + + + | + + + | + +string + + + | + +The train commercial mode + + + |
+ +[direction](./sncf.js.traininfo.direction.md) + + + | + + + | + +string + + + | + +The train direction + + + |
+ +[headsign](./sncf.js.traininfo.headsign.md) + + + | + + + | + +string + + + | + +The train identifier + + + |
+ +[name](./sncf.js.traininfo.name.md) + + + | + + + | + +string + + + | + +The train name + + + |
+ +[physical\_mode](./sncf.js.traininfo.physical_mode.md) + + + | + + + | + +string + + + | + +The train physical mode + + + |
+Parameter + + + | + +Type + + + | + +Description + + + |
---|---|---|
+ +Client + + + | + +any + + + | + + + |
+ +data + + + | + +any + + + | + + + |
Vehicle
class |
++ +Constructor + + + | + +Modifiers + + + | + +Description + + + |
---|---|---|
+ +[(constructor)(Client, data)](./sncf.js.vehicle._constructor_.md) + + + | + + + | + +Constructs a new instance of the `Vehicle` class + + + |
readonly
| [Disruption](./sncf.js.disruption.md)\[\] | Return the vehicle disruptions |
-| [get\_arrival\_time](./sncf.js.vehicle.get_arrival_time.md) | readonly
| string | |
-| [get\_departure\_time](./sncf.js.vehicle.get_departure_time.md) | readonly
| string | |
-| [has\_disruptions](./sncf.js.vehicle.has_disruptions.md) | | boolean | Return boolean if the vehicle has disruptions |
-| [headsign](./sncf.js.vehicle.headsign.md) | | string | Return the vehicle headsign |
-| [id](./sncf.js.vehicle.id.md) | | string | Return the vehicle id |
-| [stop\_times](./sncf.js.vehicle.stop_times.md) | | [StopTime](./sncf.js.stoptime.md)\[\] | Return the steps of the vehicle |
-| [trip\_id](./sncf.js.vehicle.trip_id.md) | | string | Return trip ID |
++ +Property + + + | + +Modifiers + + + | + +Type + + + | + +Description + + + |
---|---|---|---|
+ +[arrival\_date](./sncf.js.vehicle.arrival_date.md) + + + | + + + | + +Date + + + | + +Return the arrival date of the vehicle + + + |
+ +[arrival\_time](./sncf.js.vehicle.arrival_time.md) + + + | + + + | + +string + + + | + +Return the arrival time of the vehicle + + + |
+ +[calendar](./sncf.js.vehicle.calendar.md) + + + | + + + | + +[Calendar](./sncf.js.calendar.md)\[\] + + + | + +Return the calendar of the vehicle + + + |
+ +[departure\_date](./sncf.js.vehicle.departure_date.md) + + + | + + + | + +Date + + + | + +Return the departure date of the vehicle + + + |
+ +[departure\_time](./sncf.js.vehicle.departure_time.md) + + + | + + + | + +string + + + | + +Return the departure time of the vehicle + + + |
+ +[disruptions](./sncf.js.vehicle.disruptions.md) + + + | + +`readonly` + + + | + +[Disruption](./sncf.js.disruption.md)\[\] + + + | + +Return the vehicle disruptions + + + |
+ +[get\_arrival\_time](./sncf.js.vehicle.get_arrival_time.md) + + + | + +`readonly` + + + | + +string + + + | + + + |
+ +[get\_departure\_time](./sncf.js.vehicle.get_departure_time.md) + + + | + +`readonly` + + + | + +string + + + | + + + |
+ +[has\_disruptions](./sncf.js.vehicle.has_disruptions.md) + + + | + + + | + +boolean + + + | + +Return boolean if the vehicle has disruptions + + + |
+ +[headsign](./sncf.js.vehicle.headsign.md) + + + | + + + | + +string + + + | + +Return the vehicle headsign + + + |
+ +[id](./sncf.js.vehicle.id.md) + + + | + + + | + +string + + + | + +Return the vehicle id + + + |
+ +[stop\_times](./sncf.js.vehicle.stop_times.md) + + + | + + + | + +[StopTime](./sncf.js.stoptime.md)\[\] + + + | + +Return the steps of the vehicle + + + |
+ +[trip\_id](./sncf.js.vehicle.trip_id.md) + + + | + + + | + +string + + + | + +Return trip ID + + |
+Property + + + | + +Modifiers + + + | + +Type + + + | + +Description + + + |
---|---|---|---|
+ +[friday](./sncf.js.weekpattern.friday.md) + + + | + + + | + +boolean + + + | + + + |
+ +[monday](./sncf.js.weekpattern.monday.md) + + + | + + + | + +boolean + + + | + + + |
+ +[saturday](./sncf.js.weekpattern.saturday.md) + + + | + + + | + +boolean + + + | + + + |
+ +[sunday](./sncf.js.weekpattern.sunday.md) + + + | + + + | + +boolean + + + | + + + |
+ +[thursday](./sncf.js.weekpattern.thursday.md) + + + | + + + | + +boolean + + + | + + + |
+ +[tuesday](./sncf.js.weekpattern.tuesday.md) + + + | + + + | + +boolean + + + | + + + |
+ +[wednesday](./sncf.js.weekpattern.wednesday.md) + + + | + + + | + +boolean + + + | + + + |