최현영

key setting

......@@ -10,10 +10,10 @@ const fs = require('fs');
const path = require('path');
const HTTPS = require('https');
const TARGET_URL = 'https://api.line.me/v2/bot/message/reply'
const TOKEN = 'sqNjA99TptppqvcoVFAnU7Kawsl+s7l+JgnZ7r2is97qrFQraIn0sLQ6mTsIPvXLG7FNK34rvjkXbgwuy0/bgrUn4J5eYPn4H/IH27MdimpiXo/yv+obIN9IKlqR+EF2gLmuXSxMU/LWzyGxCk1G0gdB04t89/1O/w1cDnyilFU='
//const workbook = xlsx.readFile(__dirname + '/pyblic/Expressfee.xlsx');
const domain = "www.chyoss.tk"
const TOKEN = 'your Token';
const apikey1 = "your key";
const apikey2 = "your key"
const domain = "your dodmain"
const sslport = 23023;
const feebuffer = fs.readFileSync('Expressfee.json');
......@@ -80,7 +80,7 @@ app.get('/accident', function(req, res){
function jsonforecast(callback){ //교통예보
var url2 = 'http://data.ex.co.kr/openapi/safeDriving/forecast';
var queryParams2 = '?' + encodeURIComponent('key') + '=4365330273'; /* Service Key*/
var queryParams2 = '?' + encodeURIComponent('key') + '=' + apikey1; /* Service Key*/
queryParams2 += '&' + encodeURIComponent('type') + '=' + encodeURIComponent('json'); /* */
var obj
request(
......@@ -100,7 +100,7 @@ function jsonforecast(callback){ //교통예보
function jsoncongest(callback){ //교통정체
var url1 = 'http://data.ex.co.kr/openapi/odtraffic/trafficAmountByCongest';
var queryParams1 = '?' + encodeURIComponent('key') + '=4365330273'; /* Service Key*/
var queryParams1 = '?' + encodeURIComponent('key') + '=' + apikey1; /* Service Key*/
queryParams1 += '&' + encodeURIComponent('type') + '=' + encodeURIComponent('json'); /* */
request({
......@@ -118,7 +118,7 @@ function jsoncongest(callback){ //교통정체
function jsonICtoICtime(startICcode, endICcode, callback){
var url3 = 'http://data.ex.co.kr/openapi/trtm/realUnitTrtm';
var queryParams3 = '?' + encodeURIComponent('key') + '=4365330273';
var queryParams3 = '?' + encodeURIComponent('key') + '=' + apikey1;;
queryParams3 += '&' + encodeURIComponent('type') + '=' + encodeURIComponent('json');
queryParams3 += '&' + encodeURIComponent('iStartUnitCode') + '=' + startICcode + '&' + encodeURIComponent('iEndUnitCode') + '=' + endICcode + '&' + encodeURIComponent('numOfRows') + '=10'+ '&' + encodeURIComponent('pageNo') + '=1'
......@@ -137,7 +137,7 @@ function jsonICtoICtime(startICcode, endICcode, callback){
function jsonConstrunction(callback){
var url4 = 'http://openapi.its.go.kr:8082/api/NEventIdentity';
var queryParams4 = '?' + encodeURIComponent('key') + '=1590913608992'; /* Service Key*/
var queryParams4 = '?' + encodeURIComponent('key') + '=' + apikey2; /* Service Key*/
queryParams4 += '&ReqType=2&MinX=127.100000&MaxX=128.890000&MinY=34.100000 &MaxY=39.100000&type=ex'
request({
......@@ -154,7 +154,9 @@ function jsonConstrunction(callback){
}
function jsonAccident(callback){
var url5 = 'http://openapi.its.go.kr:8082/api/NIncidentIdentity?key=1590913608992&ReqType=2&MinX=127.100000&MaxX=128.890000&MinY=34.100000 &MaxY=39.100000&type=ex';
var url5 = 'http://openapi.its.go.kr:8082/api/NIncidentIdentity';
var queryParams5 = '?' + encodeURIComponent('key') + '=' + apikey2; /* Service Key*/
queryParams5 += '&ReqType=2&MinX=127.100000&MaxX=128.890000&MinY=34.100000 &MaxY=39.100000&type=ex'
request({
url: url5,
......
......@@ -22,7 +22,7 @@
<script type="text/javascript">
var API_DOMAIN = 'http://openapi.its.go.kr';
var key = '1590913608992';
var key = 'Your Key';
var NOPOP_LAYERS = [];
var POPUP_LAYERS = [];
var EPSG_4326 = new OpenLayers.Projection('EPSG:4326');
......
......@@ -9,7 +9,7 @@
<div id="map" style="width:100%; height:100%"></div>
<style type="text/css"> html, body { height:100%; overflow:hidden } .h-div {height:96%; border:3px #f99 solid} </style>
<div class="h-div"></div>
<script type="text/javascript" src="//dapi.kakao.com/v2/maps/sdk.js?appkey=3ebfae70e971821ab8f14e074d068bdc"></script>
<script type="text/javascript" src="//dapi.kakao.com/v2/maps/sdk.js?appkey=yourkey"></script>
<script>
var mapContainer = document.getElementById('map'), // 지도를 표시할 div
mapOption = {
......
......@@ -10,7 +10,7 @@
<style type="text/css"> html, body { height:100%; overflow:hidden } .h-div {height:96%; border:3px #f99 solid} </style>
<div class="h-div"></div>
<script type="text/javascript" src="//dapi.kakao.com/v2/maps/sdk.js?appkey=3ebfae70e971821ab8f14e074d068bdc"></script>
<script type="text/javascript" src="//dapi.kakao.com/v2/maps/sdk.js?appkey=yourkey"></script>
<script>
var mapContainer = document.getElementById('map'), // 지도를 표시할 div
mapOption = {
......