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
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
김시환
2022-11-21 18:52:08 +0900
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
d908828560764209119b5933e24433f223454db2
d9088285
2 parents
465c83e8
c5a6ad4e
Merge branch 'main' into 'main'
getAddress See merge request !4
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 @
d908828
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