tfl-api-wrapper
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -20,5 +20,5 @@ import TfLAPI from './tfl'; | ||
* @param ids A list of stop point ids (station naptan code e.g. 940GZZLUASL). | ||
* @param includeCrowding Include the crowding data (static). To Filter further use: /StopPoint/{ids}/Crowding/{line} | ||
* @param includeCrowdingData Include the crowding data (static). To Filter further use: /StopPoint/{ids}/Crowding/{line} | ||
*/ | ||
getByIDs(ids: Array<string>, includeCrowding: boolean): Promise<any>; | ||
getByIDs(ids: Array<string>, includeCrowdingData: boolean): Promise<any>; | ||
/** | ||
@@ -25,0 +25,0 @@ * Gets all stop points of a given type |
@@ -53,6 +53,6 @@ 'use strict'; | ||
* @param ids A list of stop point ids (station naptan code e.g. 940GZZLUASL). | ||
* @param includeCrowding Include the crowding data (static). To Filter further use: /StopPoint/{ids}/Crowding/{line} | ||
* @param includeCrowdingData Include the crowding data (static). To Filter further use: /StopPoint/{ids}/Crowding/{line} | ||
*/ | ||
StopPoint.prototype.getByIDs = function (ids, includeCrowding) { | ||
return this.sendRequest('/StopPoint/' + this.arrayToCSV(ids), { includeCrowding: includeCrowding }, 'GET'); | ||
StopPoint.prototype.getByIDs = function (ids, includeCrowdingData) { | ||
return this.sendRequest('/StopPoint/' + this.arrayToCSV(ids), { includeCrowdingData: includeCrowdingData }, 'GET'); | ||
}; | ||
@@ -59,0 +59,0 @@ /** |
@@ -10,3 +10,3 @@ import TfLAPI from './tfl'; | ||
/** | ||
* This service will return detailed train prediction information for a nominated station on a nominated line within 100 minute range. | ||
* Get detailed train prediction information for a nominated station on a nominated line within 100 minute range. | ||
* @param {TrackerNetLines} line | ||
@@ -18,3 +18,3 @@ * @param {TrackerNetStations} stationCode | ||
/** | ||
* This service will return the status of all lines on the network indicating any delays, disruptions or suspensions on the lines. | ||
* Get the status of all lines on the network indicating any delays, disruptions or suspensions on the lines. | ||
* @param incidentsOnly An indication of whether only lines that have incidents should be returned | ||
@@ -24,6 +24,6 @@ */ | ||
/** | ||
* Gets station status information for all stations. | ||
* @param {boolean} incidentsOnly Gets station status information for stations with incidents only. | ||
* station status information for all stations. | ||
* @param {boolean} incidentsOnly Get station status information for stations with incidents only. | ||
*/ | ||
getAllStationStatus(incidentsOnly?: boolean): Promise<getAllStationStatus>; | ||
} |
@@ -197,3 +197,3 @@ 'use strict'; | ||
/** | ||
* This service will return detailed train prediction information for a nominated station on a nominated line within 100 minute range. | ||
* Get detailed train prediction information for a nominated station on a nominated line within 100 minute range. | ||
* @param {TrackerNetLines} line | ||
@@ -260,3 +260,3 @@ * @param {TrackerNetStations} stationCode | ||
/** | ||
* This service will return the status of all lines on the network indicating any delays, disruptions or suspensions on the lines. | ||
* Get the status of all lines on the network indicating any delays, disruptions or suspensions on the lines. | ||
* @param incidentsOnly An indication of whether only lines that have incidents should be returned | ||
@@ -297,4 +297,4 @@ */ | ||
/** | ||
* Gets station status information for all stations. | ||
* @param {boolean} incidentsOnly Gets station status information for stations with incidents only. | ||
* station status information for all stations. | ||
* @param {boolean} incidentsOnly Get station status information for stations with incidents only. | ||
*/ | ||
@@ -301,0 +301,0 @@ TrackerNet.prototype.getAllStationStatus = function (incidentsOnly) { |
{ | ||
"name": "tfl-api-wrapper", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "A Node JS wrapper for the Transport for London API", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
83631