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-25 18:22:41 +0900
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
79a18541850e6058254778c4c228ffbeda800f4a
79a18541
2 parents
a771dbc6
0c414e65
Merge branch 'Yerim' into 'Yerim'
Directions_15_sample_3 See merge request
!11
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 @
79a1854
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