Toggle navigation
Toggle navigation
This project
Loading...
Sign in
홍용민
/
BusTime
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
홍용민
2021-06-09 13:31:49 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1e74c920c17b209dbe14066ad36e9ee937f5e5c4
1e74c920
1 parent
0cab76ba
수정사항 반영
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
13 deletions
BusInfo.js
BusInfo.js
View file @
1e74c92
...
...
@@ -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
];
}
})
})
...
...
Please
register
or
login
to post a comment