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 23:05:06 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
928a85a863486d9ef74432591602fb02e4766bf5
928a85a8
1 parent
7550a140
Update sample.js
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
sample.js
sample.js
View file @
928a85a
...
...
@@ -38,8 +38,8 @@ 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
;
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
;}
});
...
...
Please
register
or
login
to post a comment