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 00e34b1 commit 1f4c7c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/findroad/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = async function (context, req) {
const headers = {
"accept": "application/json",
"content-type": "application/json",
"appKey": "e8wHh2tya84M88aReEpXCa5XTQf3xgo01aZG39k5"
"appKey": "hTKivjDzuF5NFMpbPLckQa8cv8ZJyHxi6D7KSHcL"
};

const response = await fetch(url, {
Expand Down
5 changes: 3 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,9 @@ <h1>Vanilla JavaScript App</h1>

<script>
async function callTMapAPI(address) {
const url = `https://apis.openapi.sk.com/tmap/geo/convertAddress?version=1&searchTypCd=NtoO&reqAdd=${address}&reqMulti=S&resCoordType=WGS84GEO&appKey=e8wHh2tya84M88aReEpXCa5XTQf3xgo01aZG39k5`;

const url = `https://apis.openapi.sk.com/tmap/geo/convertAddress?version=1&searchTypCd=NtoO&reqAdd=${address}&reqMulti=S&resCoordType=WGS84GEO&appKey=hTKivjDzuF5NFMpbPLckQa8cv8ZJyHxi6D7KSHcL`;
//원래: e8wHh2tya84M88aReEpXCa5XTQf3xgo01aZG39k5
//hTKivjDzuF5NFMpbPLckQa8cv8ZJyHxi6D7KSHcL
const response = await fetch(url);

if (!response.ok) {
Expand Down

0 comments on commit 1f4c7c3

Please sign in to comment.