Add notes

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface 2023-06-01 00:12:50 +01:00
parent 7f3d4780ff
commit 4ba93fdfa8

View File

@ -20,6 +20,16 @@ async function findByHeadcode(headcode) {
const trainData = db.query('timetable', query);
return trainData; // Use pis.findByTiplocArray() to return a PIS code alongside the data
// eg. {trainData: {}, pis:5001}
// Will need to do something like:
/* for i in trainData {
let tiplocArray = []
for ii in i['stops'] {
get TIPLOC
push TIPLOC to tiplocArray
}
const pis = pis.findByTiplocArray(tiplocArray)
}
*/
}
module.exports = {