Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김시환
/
emergency_room_ChatBot
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
김시환
2022-11-30 22:57:04 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7550a140d8f995dfc08c58764020c5332b189f64
7550a140
1 parent
beeb5c06
Update sample.js
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
sample.js
sample.js
View file @
7550a14
...
...
@@ -37,11 +37,11 @@ const fetchAPI = async () => {
return
fetch
(
request
).
then
(
async
res
=>
{
const
data
=
await
res
.
json
();
if
(
data
.
route
!=
undefined
){
const
distance
=
data
.
route
?.
trafast
[
0
].
summary
.
distance
;
const
duration
=
data
.
route
?.
trafast
[
0
].
summary
.
duration
;
addrData
[
"hospital_data"
][
idx
].
distance
=
distance
;
addrData
[
"hospital_data"
][
idx
].
duration
=
duration
;
addrData
[
"hospital_data"
][
idx
].
duration
=
duration
;
}
});
})
...
...
Please
register
or
login
to post a comment