Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
ColstonBod-oy authored Jul 5, 2024
1 parent d4ac69e commit bd220c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@
// Format the coordinates
const coords = coordinates.split(';').map(pair => {
const [lng, lat] = pair.split(',').map(Number);
return ` [${lng}, ${lat}]`;
}).join(',\n');
const formattedCoords = `[\n${coords}\n]`;
return `  [${lng}, ${lat}]`;
}).join(',<br>');
const formattedCoords = `[<br>${coords}<br>]`;
let tripDirections = '';
// Output the instructions for each step of each leg in the response object
for (const leg of data.legs) {
Expand Down

0 comments on commit bd220c9

Please sign in to comment.