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-08 02:00:08 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2f759c2273e4f3f4dfbeb062c2edc61aff08e0b0
2f759c22
1 parent
0ecf406f
예측시간 저장 배열 변수 추가
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
BusInfo.js
BusInfo.js
View file @
2f759c2
...
...
@@ -63,6 +63,7 @@ for(var i=0; i<routeID.length; i++){
const
GateBusUrl
=
bus_url
+
'?servicekey='
+
process
.
env
.
key
+
'&stationId='
+
gateStationID
;
//국제캠 정문 정류장
let
date
=
new
Date
();
let
predictTime
;
function
predict
(){
console
.
log
(
GateBusUrl
);
...
...
@@ -92,13 +93,15 @@ function predict(){
Bus
[
index
][
"MinPredictTime"
]
=
predictHour1
+
":"
+
predictMinute1
;
Bus
[
index
][
"MaxPredictTime"
]
=
predictHour2
+
":"
+
predictMinute2
;
predictTime
=
[
Bus
[
index
].
MinPredictTime
,
Bus
[
index
].
MaxPredictTime
];
}
})
})
}
function
useWhile
(){
function
start
(){
setInterval
(
predict
,
60000
);
}
setTimeout
(
useWhile
,
20000
);
\ No newline at end of file
setTimeout
(
start
,
20000
);
\ No newline at end of file
...
...
Please
register
or
login
to post a comment