let response = await axios
.get(
`https://dapi.kakao.com/v2/local/geo/coord2address.json?input_coord=WGS84&x=${latitude}&y=${longitude}`,
{
headers: {
Authorization: 'KakaoAK {rest key}',
},
},
)
.then(response => {
console.log(response);
const location = response.data.documents[0];
console.log({
si: location.address.region_1depth_name,
gu: location.address.region_2depth_name,
dong: location.address.region_3depth_name,
// locationX: location.address.x,
// locationY: location.address.y,
});
});
이렇게 코드를 입력해서 현재 위치 기준으로 주소를 받으려고 하는데 권한이 없다고 나와서 앱 키에서 rest api 키를 썼어요 시놀 앱 보시고 권한이 왜 없는지 알려주실 수 있나요?