Im reading data from google spreadsheets using this code
let url = "https://docs.google.com/spreadsheets/d/1a9X6Xb1IqHCWpBN6x0_BuQlYQevumfcSA6WASaisW-g/edit#gid=1626313095";
let request = new XMLHttpRequest();
request.open("GET", url, false);
request.send(null);
let csvData = new Array();
let jsonObject = request.responseText.split(/\r?\n|\r/);
for (var i = 0; i < jsonObject.length; i++) {
csvData.push(jsonObject[i].split(','));
}
these are the sheet cities im reading data from:

the problem is it always read data from the first sheet which is baffalo , how can I make it loop through and read from another sheet which in this case would be Cape Town