Skip to content

Commit

Permalink
Add Toei Arakawa line
Browse files Browse the repository at this point in the history
  • Loading branch information
nagix committed Oct 6, 2021
1 parent 8f87632 commit 3623162
Show file tree
Hide file tree
Showing 10 changed files with 884 additions and 9 deletions.
561 changes: 561 additions & 0 deletions data/coordinates.json

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions data/railways.json
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,15 @@
},
"color": "#227324",
"carComposition": 5
}, {
"id": "Toei.Arakawa",
"title": {
"ko": "도쿄 사쿠라 트램 (아라카와 선)",
"zh-Hans": "东京樱电 (荒川线)",
"zh-Hant": "東京櫻花 (荒川線)"
},
"color": "#EE86A7",
"carComposition": 1
}, {
"id": "YokohamaMunicipal.Blue",
"title": {
Expand Down
30 changes: 29 additions & 1 deletion data/station-groups.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@
], [
"TokyoMetro.Fukutoshin.Ikebukuro",
"Seibu.S-Fukutoshin.Ikebukuro"
]], [[
"JR-East.Yamanote.Otsuka"
], [
"Toei.Arakawa.OtsukaEkimae"
]], [[
"JR-East.Yamanote.Sugamo"
], [
Expand Down Expand Up @@ -482,6 +486,8 @@
"JR-East.Musashino.MinamiUrawa"
]], [[
"JR-East.KeihinTohokuNegishi.Oji"
], [
"Toei.Arakawa.OjiEkimae"
], [
"TokyoMetro.Namboku.Oji"
]], [[
Expand Down Expand Up @@ -983,6 +989,10 @@
"TokyoMetro.Hibiya.Ningyocho"
], [
"Toei.Asakusa.Ningyocho"
]], [[
"TokyoMetro.Hibiya.Minowa"
], [
"Toei.Arakawa.Minowabashi"
]], [[
"TokyoMetro.Hanzomon.Kudanshita"
], [
Expand All @@ -999,6 +1009,8 @@
"TokyoMetro.Fukutoshin.MeijiJingumae"
]], [[
"TokyoMetro.Chiyoda.Machiya"
], [
"Toei.Arakawa.MachiyaEkimae"
], [
"Keisei.Main.Machiya"
]], [[
Expand Down Expand Up @@ -1027,6 +1039,10 @@
]], [[
"TokyoMetro.Yurakucho.Kanamecho",
"TokyoMetro.Fukutoshin.Kanamecho"
]], [[
"TokyoMetro.Yurakucho.HigashiIkebukuro"
], [
"Toei.Arakawa.HigashiIkebukuroYonchome"
]], [[
"TokyoMetro.Yurakucho.Tsukishima"
], [
Expand Down Expand Up @@ -1071,9 +1087,13 @@
"TokyoMetro.Namboku.AkabaneIwabuchi",
"SaitamaRailway.SaitamaRailway.AkabaneIwabuchi"
]], [[
"Toei.Oedo.HigashiShinjuku"
"TokyoMetro.Fukutoshin.Zoshigaya"
], [
"Toei.Arakawa.Kishibojimmae"
]], [[
"TokyoMetro.Fukutoshin.HigashiShinjuku"
], [
"Toei.Oedo.HigashiShinjuku"
]], [[
"Toei.Asakusa.Sengakuji",
"Keikyu.Main.Sengakuji"
Expand All @@ -1093,6 +1113,10 @@
"Toei.Asakusa.Kuramae"
], [
"Toei.Oedo.Kuramae"
]], [[
"Toei.Mita.NishiSugamo"
], [
"Toei.Arakawa.ShinKoshinzuka"
]], [[
"Toei.Shinjuku.Morishita"
], [
Expand All @@ -1119,6 +1143,10 @@
"Seibu.SeibuYurakucho.Nerima",
"Seibu.S-Yurakucho.Nerima",
"Seibu.Toshima.Nerima"
]], [[
"Toei.NipporiToneri.Kumanomae"
], [
"Toei.Arakawa.Kumanomae"
]], [[
"YokohamaMunicipal.Blue.Kamiooka"
], [
Expand Down
240 changes: 240 additions & 0 deletions data/stations.json
Original file line number Diff line number Diff line change
Expand Up @@ -8854,6 +8854,246 @@
"zh-Hans": "见沼代亲水公园",
"zh-Hant": "見沼代親水公園"
}
}, {
"id": "Toei.Arakawa.Minowabashi",
"title": {
"ko": "미노와바시",
"zh-Hans": "三之轮桥",
"zh-Hant": "三之輪橋",
"ja-Wiki": "三ノ輪橋停留場"
}
}, {
"id": "Toei.Arakawa.ArakawaItchumae",
"title": {
"ko": "아라카와 제일 중학교 앞",
"zh-Hans": "荒川一中前",
"zh-Hant": "荒川一中前",
"ja-Wiki": "荒川一中前停留場"
}
}, {
"id": "Toei.Arakawa.Arakawakuyakushomae",
"title": {
"ko": "아라카와 구청 앞",
"zh-Hans": "荒川区役所前",
"zh-Hant": "荒川區役所前",
"ja-Wiki": "荒川区役所前停留場"
}
}, {
"id": "Toei.Arakawa.ArakawaNichome",
"title": {
"ko": "아라카와 2초메",
"zh-Hans": "荒川二丁目",
"zh-Hant": "荒川二丁目",
"ja-Wiki": "荒川二丁目停留場"
}
}, {
"id": "Toei.Arakawa.ArakawaNanachome",
"title": {
"ko": "아라카와 7초메",
"zh-Hans": "荒川七丁目",
"zh-Hant": "荒川七丁目",
"ja-Wiki": "荒川七丁目停留場"
}
}, {
"id": "Toei.Arakawa.MachiyaEkimae",
"title": {
"ko": "마치야 역 앞",
"zh-Hans": "町屋站前",
"zh-Hant": "町屋站前",
"ja-Wiki": "町屋駅"
}
}, {
"id": "Toei.Arakawa.MachiyaNichome",
"title": {
"ko": "마치야 2초메",
"zh-Hans": "町屋二丁目",
"zh-Hant": "町屋二丁目",
"ja-Wiki": "町屋二丁目停留場"
}
}, {
"id": "Toei.Arakawa.HigashiOguSanchome",
"title": {
"ko": "히가시오구 3초메",
"zh-Hans": "东尾久三丁目",
"zh-Hant": "東尾久三丁目",
"ja-Wiki": "東尾久三丁目停留場"
}
}, {
"id": "Toei.Arakawa.Kumanomae",
"title": {
"ko": "구마노 앞",
"zh-Hans": "熊野前",
"zh-Hant": "熊野前",
"ja-Wiki": "熊野前駅"
}
}, {
"id": "Toei.Arakawa.Miyanomae",
"title": {
"ko": "미야노마에",
"zh-Hans": "宫之前",
"zh-Hant": "宮之前",
"ja-Wiki": "宮ノ前停留場"
}
}, {
"id": "Toei.Arakawa.Odai",
"title": {
"ko": "오다이",
"zh-Hans": "小台",
"zh-Hant": "小台",
"ja-Wiki": "小台停留場"
}
}, {
"id": "Toei.Arakawa.ArakawaYuenchimae",
"title": {
"ko": "아라카와 유원지 앞",
"zh-Hans": "荒川游园地前",
"zh-Hant": "荒川遊園地前",
"ja-Wiki": "荒川遊園地前停留場"
}
}, {
"id": "Toei.Arakawa.ArakawaShakomae",
"title": {
"ko": "아라카와 차고 앞",
"zh-Hans": "荒川车库前",
"zh-Hant": "荒川車庫前",
"ja-Wiki": "荒川車庫前停留場"
}
}, {
"id": "Toei.Arakawa.Kajiwara",
"title": {
"ko": "가지와라",
"zh-Hans": "梶原",
"zh-Hant": "梶原",
"ja-Wiki": "梶原停留場"
}
}, {
"id": "Toei.Arakawa.Sakaecho",
"title": {
"ko": "사카에초",
"zh-Hans": "荣町",
"zh-Hant": "榮町",
"ja-Wiki": "栄町停留場 (東京都)"
}
}, {
"id": "Toei.Arakawa.OjiEkimae",
"title": {
"ko": "오지 역 앞",
"zh-Hans": "王子站前",
"zh-Hant": "王子站前",
"ja-Wiki": "王子駅"
}
}, {
"id": "Toei.Arakawa.Asukayama",
"title": {
"ko": "아스카야마",
"zh-Hans": "飞鸟山",
"zh-Hant": "飛鳥山",
"ja-Wiki": "飛鳥山停留場"
}
}, {
"id": "Toei.Arakawa.TakinogawaItchome",
"title": {
"ko": "다키노가와 1초메",
"zh-Hans": "泷野川一丁目",
"zh-Hant": "瀧野川一丁目",
"ja-Wiki": "滝野川一丁目停留場"
}
}, {
"id": "Toei.Arakawa.NishigaharaYonchome",
"title": {
"ko": "니시가하라 4초메",
"zh-Hans": "西原四丁目",
"zh-Hant": "西原四丁目",
"ja-Wiki": "西ヶ原四丁目停留場"
}
}, {
"id": "Toei.Arakawa.ShinKoshinzuka",
"title": {
"ko": "신코신즈카",
"zh-Hans": "新庚申冢",
"zh-Hant": "新庚申塚",
"ja-Wiki": "新庚申塚停留場"
}
}, {
"id": "Toei.Arakawa.Koshinzuka",
"title": {
"ko": "고신즈카",
"zh-Hans": "庚申冢",
"zh-Hant": "庚申塚",
"ja-Wiki": "庚申塚停留場"
}
}, {
"id": "Toei.Arakawa.Sugamoshinden",
"title": {
"ko": "스가모신덴",
"zh-Hans": "巢鸭新田",
"zh-Hant": "巢鴨新田",
"ja-Wiki": "巣鴨新田停留場"
}
}, {
"id": "Toei.Arakawa.OtsukaEkimae",
"title": {
"ko": "오쓰카 역 앞",
"zh-Hans": "大冢站前",
"zh-Hant": "大塚站前",
"ja-Wiki": "大塚駅 (東京都)"
}
}, {
"id": "Toei.Arakawa.Mukohara",
"title": {
"ko": "무코하라",
"zh-Hans": "向原",
"zh-Hant": "向原",
"ja-Wiki": "向原停留場"
}
}, {
"id": "Toei.Arakawa.HigashiIkebukuroYonchome",
"title": {
"ko": "히가시이케부쿠로 4초메",
"zh-Hans": "东池袋四丁目",
"zh-Hant": "東池袋四丁目",
"ja-Wiki": "東池袋四丁目停留場"
}
}, {
"id": "Toei.Arakawa.TodenZoshigaya",
"title": {
"ko": "도덴 조시가야",
"zh-Hans": "都电杂司谷",
"zh-Hant": "都電雜司谷",
"ja-Wiki": "都電雑司ヶ谷停留場"
}
}, {
"id": "Toei.Arakawa.Kishibojimmae",
"title": {
"ko": "기시보진 앞",
"zh-Hans": "鬼子母神前",
"zh-Hant": "鬼子母神前",
"ja-Wiki": "鬼子母神前停留場"
}
}, {
"id": "Toei.Arakawa.Gakushuinshita",
"title": {
"ko": "가쿠슈인시타",
"zh-Hans": "学习院下",
"zh-Hant": "學習院下",
"ja-Wiki": "学習院下停留場"
}
}, {
"id": "Toei.Arakawa.Omokagebashi",
"title": {
"ko": "오모카게바시",
"zh-Hans": "面影桥",
"zh-Hant": "面影橋",
"ja-Wiki": "面影橋停留場"
}
}, {
"id": "Toei.Arakawa.Waseda",
"title": {
"ko": "와세다",
"zh-Hans": "早稻田",
"zh-Hant": "早稻田",
"ja-Wiki": "早稲田停留場"
}
}, {
"id": "YokohamaMunicipal.Blue.Shonandai",
"title": {
Expand Down
1 change: 1 addition & 0 deletions data/timetable-saturday.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
1 change: 1 addition & 0 deletions data/timetable-sunday-holiday.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
13 changes: 9 additions & 4 deletions src/clock.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,15 @@ export default class {
date.setHours(hours - 24);
}

return JapaneseHolidays.isHoliday(date) ||
(date.getFullYear() === 2019 && date.getMonth() === 11 && date.getDate() >= 28) ||
(date.getFullYear() === 2020 && date.getMonth() === 0 && date.getDate() <= 5) ||
date.getDay() === 6 || date.getDay() === 0 ? 'SaturdayHoliday' : 'Weekday';
if (date.getDay() === 0 || JapaneseHolidays.isHoliday(date) ||
(date.getFullYear() === 2020 && date.getMonth() === 11 && date.getDate() >= 30) ||
(date.getFullYear() === 2021 && date.getMonth() === 0 && date.getDate() <= 3)) {
return 'Holiday';
}
if (date.getDay() === 6) {
return 'Saturday';
}
return 'Weekday';
}

}
Loading

0 comments on commit 3623162

Please sign in to comment.