Toggle navigation
Toggle navigation
This project
Loading...
Sign in
조아혜
/
cfr-chatbot
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
daeun
2020-12-05 23:15:15 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
320dab393c0fad865f08e6feaef7758a2688b045
320dab39
1 parent
f6a61af9
add address function
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
chatbot.js
chatbot.js
View file @
320dab3
...
...
@@ -501,6 +501,21 @@ imgtodata = function(dir) {
});
}
//좌표 변경
const
proj4
=
require
(
'proj4'
);
function
TMtoWGS
(
x
,
y
){
var
to
=
'WGS84'
var
from
=
'TM128'
proj4
.
defs
(
'WGS84'
,
"+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"
);
proj4
.
defs
(
'TM128'
,
'+proj=tmerc +lat_0=38 +lon_0=128 +k=0.9999 +x_0=400000 +y_0=600000 +ellps=bessel +units=m +no_defs +towgs84=-115.80,474.99,674.11,1.16,-2.31,-1.63,6.43'
);
var
xy
=
[
x
,
y
];
var
result
=
proj4
(
from
,
to
,
xy
);
return
(
result
);
}
//사용자가 보낸 사진 저장
const
config
=
({
channelAccessToken
:
`
${
TOKEN
}
`
,
...
...
Please
register
or
login
to post a comment