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 10:03:37 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
859043f42c9dbe2847082d8adafa558ecc425b8e
859043f4
1 parent
2f759c22
배열 형식 변경
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
BusInfo.js
BusInfo.js
View file @
859043f
...
...
@@ -63,7 +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
;
let
predictTime
=
[
'-1'
,
'-1'
,
'-1'
,
'-1'
]
;
function
predict
(){
console
.
log
(
GateBusUrl
);
...
...
@@ -94,7 +94,7 @@ function predict(){
Bus
[
index
][
"MinPredictTime"
]
=
predictHour1
+
":"
+
predictMinute1
;
Bus
[
index
][
"MaxPredictTime"
]
=
predictHour2
+
":"
+
predictMinute2
;
predictTime
=
[
Bus
[
index
].
MinPredictTime
,
Bus
[
index
].
MaxPredictTime
];
predictTime
=
[
predictHour1
+
""
,
predictMinute1
+
""
,
predictHour2
+
""
,
predictMinute2
+
""
]
}
})
})
...
...
Please
register
or
login
to post a comment