김시환

Merge branch 'Yerim' into 'main'

Directions_15_sample

Directions_15_sample

See merge request !1
1 +var request = require('request');
2 +var options = {
3 + 'method': 'GET',
4 + 'url': 'https://naveropenapi.apigw.ntruss.com/map-direction-15/v1/driving?start=127.1058342,37.359708&goal=129.075986,35.179470&option=trafast',
5 + 'headers': {
6 + 'X-NCP-APIGW-API-KEY-ID': '12rhzhzq7g',
7 + 'X-NCP-APIGW-API-KEY': 'FhD45P91TxG2820MadrsiPOUjI6bQMJhddnHZIeI'
8 + }
9 +};
10 +request(options, function (error, response) {
11 + if (error) throw new Error(error);
12 + console.log(response.body);
13 +});