홍용민

수정사항 반영

......@@ -64,7 +64,6 @@ for(var i=0; i<routeID.length; i++){
const GateBusUrl = bus_url + '?servicekey=' + process.env.key + '&stationId=' + gateStationID; //국제캠 정문 정류장
let date = new Date();
let predictTime = ['-1', '-1', '-1', '-1'];
let body = new Object();
function predict(){
console.log(GateBusUrl);
......@@ -103,18 +102,11 @@ function predict(){
var gapHour = Math.floor(gapSec / 60 / 60);
var gapMin = Math.floor((gapSec - gapHour * 3600) / 60);
// var ans = gapHour + "시간" + gapMin + "분 이상";
// var ETD_min_H = predictTime[0];
// var ETD_min_M = predictTime[1];
// var ETD_max_H = predictTime[2];
// var ETD_max_M = predictTime[3];
body.remainTime = gapHour + "시간" + gapMin + "분 이상";
body.ETD_min_H = predictTime[0];
body.ETD_min_M = predictTime[1];
body.ETD_max_H = predictTime[2];
body.ETD_max_M = predictTime[3];
module.exports.remainTime = gapHour + "시간" + gapMin + "분 이상";
module.exports.ETD_min_H = predictTime[0];
module.exports.ETD_min_M = predictTime[1];
module.exports.ETD_max_H = predictTime[2];
module.exports.ETD_max_M = predictTime[3];
}
})
})
......