Showing
1 changed file
with
5 additions
and
13 deletions
... | @@ -64,7 +64,6 @@ for(var i=0; i<routeID.length; i++){ | ... | @@ -64,7 +64,6 @@ for(var i=0; i<routeID.length; i++){ |
64 | const GateBusUrl = bus_url + '?servicekey=' + process.env.key + '&stationId=' + gateStationID; //국제캠 정문 정류장 | 64 | const GateBusUrl = bus_url + '?servicekey=' + process.env.key + '&stationId=' + gateStationID; //국제캠 정문 정류장 |
65 | let date = new Date(); | 65 | let date = new Date(); |
66 | let predictTime = ['-1', '-1', '-1', '-1']; | 66 | let predictTime = ['-1', '-1', '-1', '-1']; |
67 | -let body = new Object(); | ||
68 | 67 | ||
69 | function predict(){ | 68 | function predict(){ |
70 | console.log(GateBusUrl); | 69 | console.log(GateBusUrl); |
... | @@ -103,18 +102,11 @@ function predict(){ | ... | @@ -103,18 +102,11 @@ function predict(){ |
103 | var gapHour = Math.floor(gapSec / 60 / 60); | 102 | var gapHour = Math.floor(gapSec / 60 / 60); |
104 | var gapMin = Math.floor((gapSec - gapHour * 3600) / 60); | 103 | var gapMin = Math.floor((gapSec - gapHour * 3600) / 60); |
105 | 104 | ||
106 | - // var ans = gapHour + "시간" + gapMin + "분 이상"; | 105 | + module.exports.remainTime = gapHour + "시간" + gapMin + "분 이상"; |
107 | - | 106 | + module.exports.ETD_min_H = predictTime[0]; |
108 | - // var ETD_min_H = predictTime[0]; | 107 | + module.exports.ETD_min_M = predictTime[1]; |
109 | - // var ETD_min_M = predictTime[1]; | 108 | + module.exports.ETD_max_H = predictTime[2]; |
110 | - // var ETD_max_H = predictTime[2]; | 109 | + module.exports.ETD_max_M = predictTime[3]; |
111 | - // var ETD_max_M = predictTime[3]; | ||
112 | - | ||
113 | - body.remainTime = gapHour + "시간" + gapMin + "분 이상"; | ||
114 | - body.ETD_min_H = predictTime[0]; | ||
115 | - body.ETD_min_M = predictTime[1]; | ||
116 | - body.ETD_max_H = predictTime[2]; | ||
117 | - body.ETD_max_M = predictTime[3]; | ||
118 | } | 110 | } |
119 | }) | 111 | }) |
120 | }) | 112 | }) | ... | ... |
-
Please register or login to post a comment