駅すぱあとの山手線ゲーム
- 91. 結局、同名駅除去プログラムとか作った
getResponse(url).then(function (resultSet) {
let max = parseInt(resultSet.ResultSet.max, 10);
for (var i = 0; i < resultSet.ResultSet.Point.length; i++) {
let shortName = getShotName(resultSet.ResultSet.Point[i].Station.Name);
if (stationIndexOf(shortName, resultSet.ResultSet.Point[i].Station.Yomi, result) == -1) {
result.stations.push(resultSet.ResultSet.Point[i].Station.Name);
}
}
if (offset + 100 > max) {
console.log(result);
} else {
getStationList(offset + 100);
}
});