路線表示に駅名標を追加

This commit is contained in:
harukin-DeskMini
2022-11-05 19:11:14 +09:00
parent 673f7d94cf
commit 8d5ad6e50e
10 changed files with 211 additions and 103 deletions

View File

@@ -48,6 +48,10 @@ export const getStationList = async (props) => {
"https://train.jr-shikoku.co.jp/g?arg1=station&arg2=naruto",
HeaderConfig
).then((response) => response.json()),
fetch(
"https://train.jr-shikoku.co.jp/g?arg1=station&arg2=seto",
HeaderConfig
).then((response) => response.json()),
fetch(
"https://train.jr-shikoku.co.jp/g?arg1=station&arg2=between",
HeaderConfig
@@ -67,6 +71,7 @@ export const getStationList = async (props) => {
stationList.高徳線,
stationList.徳島線,
stationList.鳴門線,
stationList.瀬戸大橋線,
stationList.駅間リスト,
stationList.日英対応表,
] = values;
@@ -120,7 +125,6 @@ export const getStationList = async (props) => {
return data;
});
};
console.log(stationList.予讃線);
stationList.予讃線 = addStationPosition(
concatBetweenStations(stationList.予讃線),
予讃線,
@@ -160,7 +164,22 @@ export const getStationList = async (props) => {
concatBetweenStations(stationList.鳴門線),
鳴門線,
stationList.日英対応表
);
); /*
stationList.瀬戸大橋線 = [
{
Station_JP: "児島",
Station_EN: "Kojima",
MyStation: "0",
StationNumber: "M12",
DispNum: "3",
StationTimeTable:
"http://www.jr-odekake.net/eki/timetable.php?id=0651304",
StationMap: "https://www.google.co.jp/maps/place/34.462562,133.807809",
JrHpUrl: "http://www.jr-odekake.net/eki/top.php?id=0651304",
lat: 34.462562,
lng: 133.807809,
},
]; */
status = stationList;
return stationList;
});