Merge branch 'master' into 'master'
Master See merge request !2
Showing
11 changed files
with
153 additions
and
3 deletions
developImg/0_callingapi.PNG
0 → 100644
17.1 KB
developImg/1_startoriginal.PNG
0 → 100644
668 KB
keys/api_option_traffic.js
0 → 100644
keys/db_option_traffic.js
0 → 100644
lib/Examples/TrafficAccident_Rest.json
0 → 100644
1 | +{ | ||
2 | + "fields": [ | ||
3 | + { "id": "afos_fid" }, | ||
4 | + { "id": "afos_id" }, | ||
5 | + { "id": "bjd_cd" }, | ||
6 | + { "id": "spot_cd" }, | ||
7 | + { "id": "sido_sgg_nm" }, | ||
8 | + { "id": "spot_nm" }, | ||
9 | + { "id": "occrrnc_cnt" }, | ||
10 | + { "id": "caslt_cnt" }, | ||
11 | + { "id": "dth_dnv_cnt" }, | ||
12 | + { "id": "se_dnv_cnt" }, | ||
13 | + { "id": "sl_dnv_cnt" }, | ||
14 | + { "id": "wnd_dnv_cnt" }, | ||
15 | + { "id": "geom_json" }, | ||
16 | + { "id": "lo_crd" }, | ||
17 | + { "id": "la_crd" } | ||
18 | + ], | ||
19 | + "records": [ | ||
20 | + { | ||
21 | + "lo_crd": "126.913415969472", | ||
22 | + "dth_dnv_cnt": "1", | ||
23 | + "geom_json": "{type:Polygon/coordinates:[[[126.914763442398/37.5492293175798]/[126.914737551084/37.5490208989909]/[126.914660872129/37.5488204892619]/[126.914536352264/37.5486357901207]/[126.914368776716/37.5484738995931]/[126.91416458532/37.548341039208]/[126.913931625036/37.5482423148821]/[126.913678848399/37.5481815206774]/[126.913415969472/37.5481609929754]/[126.913153090545/37.5481815206774]/[126.912900313908/37.5482423148821]/[126.912667353624/37.548341039208]/[126.912463162228/37.5484738995931]/[126.912295586681/37.5486357901207]/[126.912171066815/37.5488204892619]/[126.91209438786/37.5490208989909]/[126.912068496546/37.5492293175798]/[126.91209438786/37.5494377355859]/[126.912171066815/37.5496381436553]/[126.912295586681/37.5498228403127]/[126.912463162228/37.5499847279105]/[126.912667353624/37.5501175853658]/[126.912900313908/37.5502163072079]/[126.913153090545/37.550277099753]/[126.913415969472/37.5502976268722]/[126.913678848399/37.550277099753]/[126.913931625036/37.5502163072079]/[126.91416458532/37.5501175853658]/[126.914368776716/37.5499847279105]/[126.914536352264/37.5498228403127]/[126.914660872129/37.5496381436553]/[126.914737551084/37.5494377355859]/[126.914763442398/37.5492293175798]]]}", | ||
24 | + "se_dnv_cnt": "8", | ||
25 | + "sl_dnv_cnt": "79", | ||
26 | + "afos_fid": "6467443", | ||
27 | + "bjd_cd": "11440122", | ||
28 | + "sido_sgg_nm": "서울특별시 마포구1", | ||
29 | + "spot_nm": "서울특별시 마포구 합정동(합정역 인근)", | ||
30 | + "afos_id": "2018074", | ||
31 | + "spot_cd": "11440001", | ||
32 | + "occrrnc_cnt": "60", | ||
33 | + "caslt_cnt": "94", | ||
34 | + "wnd_dnv_cnt": "6", | ||
35 | + "la_crd": "37.54922931758" | ||
36 | + }, | ||
37 | + { | ||
38 | + "lo_crd": "126.947032472871", | ||
39 | + "dth_dnv_cnt": "1", | ||
40 | + "geom_json": "{type:Polygon/coordinates:[[[126.948379945797/37.5404063720573]/[126.948354054483/37.5401979288003]/[126.948277375528/37.5399974953512]/[126.948152855663/37.5398127743496]/[126.947985280115/37.5396508646611]/[126.947781088719/37.539517988551]/[126.947548128435/37.5394192525405]/[126.947295351798/37.5393584511404]/[126.947032472871/37.5393379210089]/[126.946769593944/37.5393584511404]/[126.946516817307/37.5394192525405]/[126.946283857023/37.539517988551]/[126.946079665627/37.5396508646611]/[126.945912090079/37.5398127743496]/[126.945787570214/37.5399974953512]/[126.945710891259/37.5401979288003]/[126.945684999945/37.5404063720573]/[126.945710891259/37.5406148147315]/[126.945787570214/37.5408152465211]/[126.945912090079/37.5409999650393]/[126.946079665627/37.5411618717982]/[126.946283857023/37.5412947449786]/[126.946516817307/37.5413934785055]/[126.946769593944/37.5414542782462]/[126.947032472871/37.541474807795]/[126.947295351798/37.5414542782462]/[126.947548128435/37.5413934785055]/[126.947781088719/37.5412947449786]/[126.947985280115/37.5411618717982]/[126.948152855663/37.5409999650393]/[126.948277375528/37.5408152465211]/[126.948354054483/37.5406148147315]/[126.948379945797/37.5404063720573]]]}", | ||
41 | + "se_dnv_cnt": "6", | ||
42 | + "sl_dnv_cnt": "51", | ||
43 | + "afos_fid": "6467444", | ||
44 | + "bjd_cd": "11440104", | ||
45 | + "sido_sgg_nm": "서울특별시 마포구2", | ||
46 | + "spot_nm": "서울특별시 마포구 도화동(일진빌딩 인근)", | ||
47 | + "afos_id": "2018074", | ||
48 | + "spot_cd": "11440002", | ||
49 | + "occrrnc_cnt": "42", | ||
50 | + "caslt_cnt": "60", | ||
51 | + "wnd_dnv_cnt": "2", | ||
52 | + "la_crd": "37.540406372057" | ||
53 | + }, | ||
54 | + { | ||
55 | + "lo_crd": "126.950985152444", | ||
56 | + "dth_dnv_cnt": "0", | ||
57 | + "geom_json": "{type:Polygon/coordinates:[[[126.95233262537/37.5439369566262]/[126.952306734056/37.5437285232398]/[126.952230055101/37.543528099282]/[126.952105535236/37.5433433870274]/[126.951937959688/37.5431814850059]/[126.951733768292/37.5430486151879]/[126.951500808008/37.5429498838529]/[126.951248031371/37.5428890853319]/[126.950985152444/37.5428685561725]/[126.950722273517/37.5428890853319]/[126.95046949688/37.5429498838529]/[126.950236536596/37.5430486151879]/[126.9500323452/37.5431814850059]/[126.949864769652/37.5433433870274]/[126.949740249787/37.543528099282]/[126.949663570832/37.5437285232398]/[126.949637679518/37.5439369566262]/[126.949663570832/37.5441453894298]/[126.949740249787/37.5443458117281]/[126.949864769652/37.544530521499]/[126.9500323452/37.5446924205909]/[126.950236536596/37.5448252874792]/[126.95046949688/37.5449240163305]/[126.950722273517/37.544984813192]/[126.950985152444/37.5450053417687]/[126.951248031371/37.544984813192]/[126.951500808008/37.5449240163305]/[126.951733768292/37.5448252874792]/[126.951937959688/37.5446924205909]/[126.952105535236/37.544530521499]/[126.952230055101/37.5443458117281]/[126.952306734056/37.5441453894298]/[126.95233262537/37.5439369566262]]]}", | ||
58 | + "se_dnv_cnt": "8", | ||
59 | + "sl_dnv_cnt": "51", | ||
60 | + "afos_fid": "6467445", | ||
61 | + "bjd_cd": "11440104", | ||
62 | + "sido_sgg_nm": "서울특별시 마포구3", | ||
63 | + "spot_nm": "서울특별시 마포구 도화동(공덕오거리 인근)", | ||
64 | + "afos_id": "2018074", | ||
65 | + "spot_cd": "11440003", | ||
66 | + "occrrnc_cnt": "41", | ||
67 | + "caslt_cnt": "62", | ||
68 | + "wnd_dnv_cnt": "3", | ||
69 | + "la_crd": "37.543936956626" | ||
70 | + } | ||
71 | + ] | ||
72 | +} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
lib/Examples/TrafficAccident_Rest.xml
0 → 100644
1 | +<response> | ||
2 | + <header> | ||
3 | + <resultCode>00</resultCode> | ||
4 | + <resultMsg>NORMAL_CODE</resultMsg> | ||
5 | + </header> | ||
6 | + <body> | ||
7 | + <items> | ||
8 | + <item> | ||
9 | + <afos_fid>6467443</afos_fid> | ||
10 | + <afos_id>2018074</afos_id> | ||
11 | + <bjd_cd>11440122</bjd_cd> | ||
12 | + <spot_cd>11440001</spot_cd> | ||
13 | + <sido_sgg_nm>서울특별시 마포구1</sido_sgg_nm> | ||
14 | + <spot_nm>서울특별시 마포구 합정동(합정역 인근)</spot_nm> | ||
15 | + <occrrnc_cnt>60</occrrnc_cnt> | ||
16 | + <caslt_cnt>94</caslt_cnt> | ||
17 | + <dth_dnv_cnt>1</dth_dnv_cnt> | ||
18 | + <se_dnv_cnt>8</se_dnv_cnt> | ||
19 | + <sl_dnv_cnt>79</sl_dnv_cnt> | ||
20 | + <wnd_dnv_cnt>6</wnd_dnv_cnt> | ||
21 | + <geom_json>{"type":"Polygon","coordinates":[[[126.914763442398,37.5492293175798],[126.914737551084,37.5490208989909],[126.914660872129,37.5488204892619],[126.914536352264,37.5486357901207],[126.914368776716,37.5484738995931],[126.91416458532,37.548341039208],[126.913931625036,37.5482423148821],[126.913678848399,37.5481815206774],[126.913415969472,37.5481609929754],[126.913153090545,37.5481815206774],[126.912900313908,37.5482423148821],[126.912667353624,37.548341039208],[126.912463162228,37.5484738995931],[126.912295586681,37.5486357901207],[126.912171066815,37.5488204892619],[126.91209438786,37.5490208989909],[126.912068496546,37.5492293175798],[126.91209438786,37.5494377355859],[126.912171066815,37.5496381436553],[126.912295586681,37.5498228403127],[126.912463162228,37.5499847279105],[126.912667353624,37.5501175853658],[126.912900313908,37.5502163072079],[126.913153090545,37.550277099753],[126.913415969472,37.5502976268722],[126.913678848399,37.550277099753],[126.913931625036,37.5502163072079],[126.91416458532,37.5501175853658],[126.914368776716,37.5499847279105],[126.914536352264,37.5498228403127],[126.914660872129,37.5496381436553],[126.914737551084,37.5494377355859],[126.914763442398,37.5492293175798]]]}</geom_json> | ||
22 | + <lo_crd>126.913415969472</lo_crd> | ||
23 | + <la_crd>37.54922931758</la_crd> | ||
24 | + </item> | ||
25 | + <item> | ||
26 | + <afos_fid>6467444</afos_fid> | ||
27 | + <afos_id>2018074</afos_id> | ||
28 | + <bjd_cd>11440104</bjd_cd> | ||
29 | + <spot_cd>11440002</spot_cd> | ||
30 | + <sido_sgg_nm>서울특별시 마포구2</sido_sgg_nm> | ||
31 | + <spot_nm>서울특별시 마포구 도화동(일진빌딩 인근)</spot_nm> | ||
32 | + <occrrnc_cnt>42</occrrnc_cnt> | ||
33 | + <caslt_cnt>60</caslt_cnt> | ||
34 | + <dth_dnv_cnt>1</dth_dnv_cnt> | ||
35 | + <se_dnv_cnt>6</se_dnv_cnt> | ||
36 | + <sl_dnv_cnt>51</sl_dnv_cnt> | ||
37 | + <wnd_dnv_cnt>2</wnd_dnv_cnt> | ||
38 | + <geom_json>{"type":"Polygon","coordinates":[[[126.948379945797,37.5404063720573],[126.948354054483,37.5401979288003],[126.948277375528,37.5399974953512],[126.948152855663,37.5398127743496],[126.947985280115,37.5396508646611],[126.947781088719,37.539517988551],[126.947548128435,37.5394192525405],[126.947295351798,37.5393584511404],[126.947032472871,37.5393379210089],[126.946769593944,37.5393584511404],[126.946516817307,37.5394192525405],[126.946283857023,37.539517988551],[126.946079665627,37.5396508646611],[126.945912090079,37.5398127743496],[126.945787570214,37.5399974953512],[126.945710891259,37.5401979288003],[126.945684999945,37.5404063720573],[126.945710891259,37.5406148147315],[126.945787570214,37.5408152465211],[126.945912090079,37.5409999650393],[126.946079665627,37.5411618717982],[126.946283857023,37.5412947449786],[126.946516817307,37.5413934785055],[126.946769593944,37.5414542782462],[126.947032472871,37.541474807795],[126.947295351798,37.5414542782462],[126.947548128435,37.5413934785055],[126.947781088719,37.5412947449786],[126.947985280115,37.5411618717982],[126.948152855663,37.5409999650393],[126.948277375528,37.5408152465211],[126.948354054483,37.5406148147315],[126.948379945797,37.5404063720573]]]}</geom_json> | ||
39 | + <lo_crd>126.947032472871</lo_crd> | ||
40 | + <la_crd>37.540406372057</la_crd> | ||
41 | + </item> | ||
42 | + <item> | ||
43 | + <afos_fid>6467445</afos_fid> | ||
44 | + <afos_id>2018074</afos_id> | ||
45 | + <bjd_cd>11440104</bjd_cd> | ||
46 | + <spot_cd>11440003</spot_cd> | ||
47 | + <sido_sgg_nm>서울특별시 마포구3</sido_sgg_nm> | ||
48 | + <spot_nm>서울특별시 마포구 도화동(공덕오거리 인근)</spot_nm> | ||
49 | + <occrrnc_cnt>41</occrrnc_cnt> | ||
50 | + <caslt_cnt>62</caslt_cnt> | ||
51 | + <dth_dnv_cnt>0</dth_dnv_cnt> | ||
52 | + <se_dnv_cnt>8</se_dnv_cnt> | ||
53 | + <sl_dnv_cnt>51</sl_dnv_cnt> | ||
54 | + <wnd_dnv_cnt>3</wnd_dnv_cnt> | ||
55 | + <geom_json>{"type":"Polygon","coordinates":[[[126.95233262537,37.5439369566262],[126.952306734056,37.5437285232398],[126.952230055101,37.543528099282],[126.952105535236,37.5433433870274],[126.951937959688,37.5431814850059],[126.951733768292,37.5430486151879],[126.951500808008,37.5429498838529],[126.951248031371,37.5428890853319],[126.950985152444,37.5428685561725],[126.950722273517,37.5428890853319],[126.95046949688,37.5429498838529],[126.950236536596,37.5430486151879],[126.9500323452,37.5431814850059],[126.949864769652,37.5433433870274],[126.949740249787,37.543528099282],[126.949663570832,37.5437285232398],[126.949637679518,37.5439369566262],[126.949663570832,37.5441453894298],[126.949740249787,37.5443458117281],[126.949864769652,37.544530521499],[126.9500323452,37.5446924205909],[126.950236536596,37.5448252874792],[126.95046949688,37.5449240163305],[126.950722273517,37.544984813192],[126.950985152444,37.5450053417687],[126.951248031371,37.544984813192],[126.951500808008,37.5449240163305],[126.951733768292,37.5448252874792],[126.951937959688,37.5446924205909],[126.952105535236,37.544530521499],[126.952230055101,37.5443458117281],[126.952306734056,37.5441453894298],[126.95233262537,37.5439369566262]]]}</geom_json> | ||
56 | + <lo_crd>126.950985152444</lo_crd> | ||
57 | + <la_crd>37.543936956626</la_crd> | ||
58 | + </item> | ||
59 | + </items> | ||
60 | + <totalCount>3</totalCount> | ||
61 | + <numOfRows>3</numOfRows> | ||
62 | + <pageNo>1</pageNo> | ||
63 | + </body> | ||
64 | +</response> |
lib/Examples/TrafficAccident_document.hwp
0 → 100644
No preview for this file type
This diff is collapsed. Click to expand it.
... | @@ -13,10 +13,13 @@ | ... | @@ -13,10 +13,13 @@ |
13 | "debug": "~2.6.9", | 13 | "debug": "~2.6.9", |
14 | "ejs": "~2.5.7", | 14 | "ejs": "~2.5.7", |
15 | "express": "~4.16.0", | 15 | "express": "~4.16.0", |
16 | - "helmet": "^3.13.0", | 16 | + "helmet": "^3.15.0", |
17 | "http-errors": "~1.6.2", | 17 | "http-errors": "~1.6.2", |
18 | - "morgan": "~1.9.0", | 18 | + "iconv-lite": "^0.4.23", |
19 | + "morgan": "^1.9.1", | ||
19 | "mysql": "^2.16.0", | 20 | "mysql": "^2.16.0", |
21 | + "raw-body": "^2.3.3", | ||
22 | + "referrer-policy": "^1.1.0", | ||
20 | "request": "^2.88.0", | 23 | "request": "^2.88.0", |
21 | "socket.io": "^2.1.1" | 24 | "socket.io": "^2.1.1" |
22 | } | 25 | } | ... | ... |
-
Please register or login to post a comment