slow-zone
Version:
A client & wrapper for CTA 'L' arrival data.
17 lines (15 loc) • 417 B
JavaScript
const ENDPOINT = "ttarrivals.aspx";
module.exports = client => {
return {
arrivals: {
byStop: (stopId, options = {}, callback) => {
options.stpid = stopId;
return client.fetch(ENDPOINT, options, callback);
},
byStation: (stationId, options = {}, callback) => {
options.mapid = stationId;
return client.fetch(ENDPOINT, options, callback);
}
}
};
};