Showing
1 changed file
with
13 additions
and
0 deletions
Directions_15_sample.js
0 → 100644
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 | +}); |
-
Please register or login to post a comment