Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -59,7 +59,7 @@ function getXY(hospitals, addNum) { | ... | @@ -59,7 +59,7 @@ function getXY(hospitals, addNum) { |
59 | for (let i = 0; i < hospitals.length; i++) { // iterate through available hospitals... | 59 | for (let i = 0; i < hospitals.length; i++) { // iterate through available hospitals... |
60 | 60 | ||
61 | fetch('https://dapi.kakao.com/v2/local/search/keyword.json?' + new URLSearchParams({ | 61 | fetch('https://dapi.kakao.com/v2/local/search/keyword.json?' + new URLSearchParams({ |
62 | - query: hospitals.name, | 62 | + query: hospitals[i].name, |
63 | category_group_code: "HP8" | 63 | category_group_code: "HP8" |
64 | }), { | 64 | }), { |
65 | method: "GET", | 65 | method: "GET", | ... | ... |
-
Please register or login to post a comment