Skip to content

Commit

Permalink
에러 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hdddhdd committed Nov 12, 2023
1 parent 23f1698 commit 8df3474
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ h11==0.14.0
h5py==3.9.0
httplib2==0.22.0
huggingface-hub==0.16.4
idna==3.4
idna==2.10
imageio==2.31.1
importlib-metadata==6.5.1
importlib-resources==5.12.0
Expand Down
30 changes: 15 additions & 15 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -239,21 +239,21 @@ <h1>Vanilla JavaScript App</h1>
const resultEndElement = document.getElementById('resultEnd');
resultEndElement.innerHTML = `도착지 (위도: ${resultEnd.latitude}, 경도: ${resultEnd.longitude})`;

// 변환된 좌표로 Tmap API 호출 및 결과 표시
const { text } = await (
await fetch(`/api/findroad`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
startX: resultStart.longitude,
startY: resultStart.latitude,
endX: resultEnd.longitude,
endY: resultEnd.latitude,
}),
})
).json();
// // 변환된 좌표로 Tmap API 호출 및 결과 표시
// const { text } = await (
// await fetch(`/api/findroad`, {
// method: 'POST',
// headers: {
// 'Content-Type': 'application/json',
// },
// body: JSON.stringify({
// startX: resultStart.longitude,
// startY: resultStart.latitude,
// endX: resultEnd.longitude,
// endY: resultEnd.latitude,
// }),
// })
// ).json();

try {
const response = await fetch(`/api/findroad`, {
Expand Down

0 comments on commit 8df3474

Please sign in to comment.