Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김시환
/
emergency_room_ChatBot
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
윤규리
2022-11-21 18:29:30 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c5a6ad4e750f69c4c50c4bc3ca6d30cac569b898
c5a6ad4e
1 parent
02cdaa89
getAddress
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
Address.js
Address.js
0 → 100644
View file @
c5a6ad4
import
fetch
from
"node-fetch"
;
globalThis
.
fetch
=
fetch
;
var
currAddress
=
new
Array
();
function
getAdddress
(
currQuery
)
{
fetch
(
'https://dapi.kakao.com/v2/local/search/address.json?'
+
new
URLSearchParams
({
query
:
currQuery
}),
{
method
:
"GET"
,
headers
:
{
"Authorization"
:
"KakaoAK c14234ba46c574c73715276c5644f397"
}
})
.
then
(
response
=>
response
.
json
())
.
then
(
data
=>
{
currAddress
=
data
.
documents
.
map
(({
road_address
})
=>
({
road_address
}));
// console.log(currAddress)
return
currAddress
})
}
function
selectAddress
(
addressArray
,
number
)
{
}
function
getXY
()
{
}
module
.
exports
=
{
getAddress
,
selectAddress
,
getXY
};
\ No newline at end of file
Please
register
or
login
to post a comment