김시환

Merge branch 'Yerim' into 'Yerim'

Directions_15_sample_3



See merge request !11
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);
......