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
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
홍예림
2022-11-25 18:17:30 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0c414e65c59b273d062428617a536b3997f45324
0c414e65
1 parent
24442a3c
Directions_15_sample_3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
Directions_15_sample.js
Directions_15_sample.js
View file @
0c414e6
const
express
=
require
(
'express'
);
const
app
=
express
();
var
request
=
require
(
'request'
);
//필요한 주소 정보 (data 형식 확정 x )
...
...
@@ -6,11 +8,11 @@ let address = {
"number"
:
10
,
"hospital_data"
:[
{
"name"
:
"병원명"
,
"address"
:
"병원 주소"
,
"x"
:
129.075986
,
"y"
:
35.179470
},
{
"name"
:
"병원명"
,
"address"
:
"병원 주소"
,
"x"
:
127.1058342
,
"y"
:
37.359708
}
{
"name"
:
"병원명"
,
"address"
:
"병원 주소"
,
"x"
:
127.1058342
,
"y"
:
37.359708
},
{
"name"
:
"병원명"
,
"address"
:
"병원 주소"
,
"x"
:
126.1058342
,
"y"
:
37.359708
}
]
}
var
options
=
{
'method'
:
'GET'
,
'url'
:
'https://naveropenapi.apigw.ntruss.com/map-direction-15/v1/driving?start='
+
address
.
current_address
.
x
+
','
...
...
@@ -21,6 +23,8 @@ var options = {
}
};
request
(
options
,
function
(
error
,
response
)
{
if
(
error
)
throw
new
Error
(
error
);
let
body
=
JSON
.
parse
(
response
.
body
);
...
...
Please
register
or
login
to post a comment