Skip to content

Commit

Permalink
역 연결 시도중
Browse files Browse the repository at this point in the history
  • Loading branch information
kkyh12180 committed Nov 12, 2023
1 parent d8c9367 commit 33460fc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions api/findroad/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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}`;
Expand All @@ -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;
}
Expand Down

0 comments on commit 33460fc

Please sign in to comment.