From 33460fce8c90145fed142c6b3e06c60e6c46e752 Mon Sep 17 00:00:00 2001 From: Hyo Date: Sun, 12 Nov 2023 19:50:58 +0900 Subject: [PATCH] =?UTF-8?q?=EC=97=AD=20=EC=97=B0=EA=B2=B0=20=EC=8B=9C?= =?UTF-8?q?=EB=8F=84=EC=A4=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/findroad/index.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/api/findroad/index.js b/api/findroad/index.js index c0bdedf..7cba959 100644 --- a/api/findroad/index.js +++ b/api/findroad/index.js @@ -29,7 +29,7 @@ module.exports = async function (context, req) { if (response.ok) { const json_response = await response.json(); - console.log(JSON.stringify(json_response, null, 2)); + // console.log(JSON.stringify(json_response, null, 2)); let itineraryText = ''; var text_counter = 0; @@ -41,7 +41,7 @@ module.exports = async function (context, req) { if ("Lane" in leg) { const lanes = leg["Lane"]; - console.log("Lanes:", lanes); + // console.log("Lanes:", lanes); for (let i = 0; i < lanes.length; i++) { const route = lanes[i].route || `No route information for Lane ${i}`; @@ -51,11 +51,11 @@ module.exports = async function (context, req) { console.log(`야삐 Departure Station: ${departure_station}`); console.log(`야삐 Arrival Station: ${arrival_station}`); - console.log(`야삐 Route: ${route}`); + // console.log(`야삐 Route: ${route}`); if (text_counter == 0) { - itineraryText += `{"dep": "${departure_station}",`; - itineraryText += `"arr": "${arrival_station}",`; - itineraryText += `"Route": "${route}",}`; + itineraryText += `{"dep": ${departure_station},`; + itineraryText += `"arr": ${arrival_station},}`; + // itineraryText += `"Route": '${route}',}`; text_counter += 1; }