221 Commits

Author SHA1 Message Date
harukin-OneMix4
8a94b81052 カスタムデータ入れる枠作成 2024-01-27 01:35:52 +09:00
harukin-OneMix4
431c4c9c0b 4.6.4 2024-01-27 00:54:18 +09:00
harukin-OneMix4
19e9fd8fd8 臨時列車表示を追加(仮) 2024-01-27 00:52:52 +09:00
harukin-OneMix4
ebdec28693 提供表示を追加 2024-01-27 00:52:21 +09:00
harukin-OneMix4
485102b591 逃げの修正 2024-01-12 14:02:17 +09:00
harukin-OneMix4
65080e68f2 また最適化 2024-01-09 18:31:24 +09:00
harukin-OneMix4
87129c6815 再修正 2024-01-09 18:21:35 +09:00
harukin-OneMix4
26d9037963 アクションシートの下部はみ出し問題修正 2024-01-09 18:08:37 +09:00
harukin-OneMix4
263cb750ce SafeAreaContextを適用 2024-01-09 17:16:20 +09:00
harukin-OneMix4
b54f2f6f7e patch 2024-01-04 02:38:17 +09:00
harukin-OneMix4
0e06b66368 4.6.3 2024-01-04 00:47:41 +09:00
harukin-OneMix4
0753bf7023 Androidでメニューの看板一覧表示されないバグ修正試行 2024-01-04 00:47:33 +09:00
harukin-OneMix4
16f7d1f7ad iOSでフリーズするバグを修正試行 2024-01-04 00:46:57 +09:00
harukin-OneMix4
0f0d69b22d fix iOS font bug 2024-01-03 01:35:22 +09:00
harukin-OneMix4
29c84bcc1c 4.6.2 2024-01-03 01:06:11 +09:00
harukin-OneMix4
9e7931926f デザイン小調整 2024-01-03 01:01:54 +09:00
harukin-OneMix4
60d8caaefa 駅名標のスタイル変更 2024-01-03 00:01:20 +09:00
harukin-OneMix4
f72ac1d97b 駅名標読み込みにタイミングがずれていたバグ、ボタンが一部表示されない問題を修正 2024-01-02 00:37:52 +09:00
harukin-OneMix4
3ca91f402e 現在地表示をリアルタイム更新するように変更 2024-01-02 00:18:54 +09:00
harukin-OneMix4
a4e85ff2e6 全列番検索システムにフィルタリング入力欄を追加 2023-12-29 03:46:48 +09:00
harukin-OneMix4
57459d975b バージョン更新 2023-12-29 02:08:29 +09:00
harukin-OneMix4
23402aef79 ScrollViewからFlatListに変更 2023-12-29 02:08:24 +09:00
harukin-OneMix4
e4ce671e67 細かいデザイン崩れや機能消滅バグを修正 2023-12-29 01:36:56 +09:00
harukin-OneMix4
789af1aa37 ActionSheetのScrollViewの不具合を修正、同時にデザイン調整 2023-12-29 01:36:37 +09:00
harukin-OneMix4
b23b59eab3 プライバシーポリシー追加 2023-12-25 17:09:23 +09:00
harukin-OneMix4
e38f550b94 クラッシュバグを修正 2023-12-25 15:13:56 +09:00
harukin-OneMix4
9b70843e9c アップデートの値設定 2023-12-25 05:46:20 +09:00
harukin-OneMix4
f1e98344ca レイアウト調整 2023-12-25 05:43:21 +09:00
harukin-OneMix4
2debff6051 有効化忘れを修正、TraInfoをProviderに移動 2023-12-25 05:04:54 +09:00
harukin-OneMix4
b7c56f4b90 全列番検索機能の実装 2023-12-25 04:40:38 +09:00
harukin-OneMix4
761543af90 駅名標が正常に動作していなかったバグを修正 2023-12-25 04:34:32 +09:00
harukin-OneMix4
36b199ef98 アクションシートの依存更新 2023-12-25 03:37:15 +09:00
harukin-OneMix4
049b138ca5 特定条件でクラッシュするバグを修正 2023-12-23 12:30:23 +09:00
harukin-OneMix4
6c3b186c9b 念のためtrycatch設定 2023-12-23 04:43:45 +09:00
harukin-OneMix4
5678ad5b35 駅メニューの全駅解放 2023-12-23 04:38:08 +09:00
harukin-OneMix4
6233c94a80 PDF表示切替機能実装 2023-12-23 03:43:32 +09:00
harukin-OneMix4
305d386fcc 運行情報を定時更新化、LEDでポップアップを出せるように変更 2023-12-23 03:12:02 +09:00
harukin-OneMix4
f62fadffb7 webviewの再読み込み強化 2023-12-18 17:07:30 +09:00
harukin-OneMix4
8f23faacd7 にゃーんをエラー文にし、再読み込みボタンの色が変化するように 2023-12-15 02:16:29 +09:00
harukin-OneMix4
91fb41dab0 列車が駅間以外の場所に居る時に位置アイコン表示でクラッシュするバグを修正 2023-12-15 01:11:14 +09:00
harukin-OneMix4
ac1c4f3902 areaInfoのデフォルト値が間違っていたのを修正 2023-12-15 00:40:37 +09:00
harukin-OneMix4
9306a9cb25 一部stateのコンテキストへの移動、不要な要素の一斉消去、コンポーネントのファイル分離 2023-12-15 00:32:58 +09:00
harukin-OneMix4
d6f727710f LEDに運行情報を表示するように変更 2023-12-14 21:05:51 +09:00
harukin-OneMix4
171df01a0d pdfをGoogleからmozillaに移動 2023-12-13 22:39:38 +09:00
harukin-OneMix4
d5fab2f49b 現在情報取得APIをGaSに移行 2023-12-13 22:39:26 +09:00
harukin-OneMix4
94558b784a 列車遅延速報EXをTwitterからMastodonに差し替え 2023-12-13 20:37:14 +09:00
harukin-OneMix4
644f066c96 httpで表示しているページがあったのをhttpsに変換するように変更 2023-12-13 20:13:01 +09:00
harukin-OneMix4
fc091a2ae6 遅延情報がある時だけ欄が出現するように変更 2023-12-13 19:01:46 +09:00
harukin-OneMix4
47bba10c04 Androidで画像ファイルがhttps必須になってしまったので自鯖に移動 2023-12-13 19:00:37 +09:00
harukin-OneMix4
b98f61a802 依存関係解消 2023-12-13 18:59:24 +09:00
harukin-OneMix4
ccf764005c 一旦無効化 2023-12-13 16:08:32 +09:00
harukin-OneMix4
a6a2a6dfbb テキスト表示を特定タイミングに修正 2023-12-13 04:55:32 +09:00
harukin-OneMix4
2199e9cc57 依存関係修正 2023-12-13 04:55:19 +09:00
harukin-OneMix4
e11d8f534e 依存関係更新 2023-11-20 22:42:28 +09:00
harukin-OneMix4
831b632e7d 広域列車運行情報を試験実装 2023-11-18 22:44:40 +09:00
harukin-OneMix4
d47191761a expoコアのアップグレード 2023-07-25 00:31:34 +09:00
harukin-OneMix4
5e3ef414f6 通知関連とdayjsの追加 2023-07-25 00:25:52 +09:00
harukin-OneMix4
0e11f63bc3 Merge commit '84d36b88cc71ed591c9a50f086ab38cd08177758' into develop 2023-07-16 22:59:56 +09:00
harukin-OneMix4
84d36b88cc 文字がはみ出ている問題を修正 2023-07-16 22:59:38 +09:00
harukin-OneMix4
711f0bbe9f Merge commit 'dbae477beaee4cd4fdd09b343962d235ff47ac70' into patch/4.5.x-master-dev 2023-07-16 19:34:35 +09:00
harukin-OneMix4
dbae477bea update news 2023-07-16 19:34:28 +09:00
harukin-OneMix4
0de3d73ced Merge commit '49098308db4c80624889bb1b3fe84239c3a79e3e' into patch/4.5.x-master-dev 2023-07-16 19:34:03 +09:00
harukin-OneMix4
49098308db Merge commit 'bfec537f5675307ed609bdf47c9aca36997ebe31' into develop 2023-07-16 19:27:54 +09:00
harukin-OneMix4
bfec537f56 各駅停車型は行先を、貨物等は文字非表示に分岐 2023-07-16 17:58:29 +09:00
harukin-OneMix4
bf78287563 state指定をミスってた問題を修正 2023-07-16 17:22:16 +09:00
harukin-OneMix4
d511b80437 設定機能を実装 2023-07-16 17:00:24 +09:00
harukin-OneMix4
e90ffd8926 絵文字に変更 2023-07-16 14:10:40 +09:00
harukin-OneMix4
4446019ab2 各駅停車と駅に止まっている列車の現在地を表示可能に 2023-07-16 13:57:23 +09:00
harukin-OneMix4
92b9a4a044 文字表示スタイル変更 2023-07-16 11:07:34 +09:00
harukin-OneMix4
f504497bdf 遅れ時分考慮機能を仮実装 2023-07-07 22:58:52 +09:00
harukin-OneMix4
dfdd9a7f37 横方向メニュー追加(現時点では採用しない) 2023-07-07 22:29:31 +09:00
harukin-OneMix4
b0b15f726c 列車の現在地マークを表示(未完成) 2023-07-07 12:28:09 +09:00
harukin-OneMix4
e8906495c2 現在地アイコン表示機能設置準備 2023-07-07 02:03:00 +09:00
harukin-OneMix4
d3c9bca4d3 土讃線問題の対策 2023-07-07 00:07:32 +09:00
harukin-OneMix4
eb806e3f8a スクロール範囲外にステータスを移動し、高さと文字サイズ等の調整 2023-07-07 00:07:21 +09:00
harukin-OneMix4
dfe3c831bc 列車運行情報のstateを最高位に移動 2023-07-06 22:23:47 +09:00
harukin-OneMix4
946f669eb0 delayをトップに配置 2023-07-06 16:47:08 +09:00
harukin-OneMix4
b1ecbb1cfe 遅延情報付与機能を実装 2023-07-06 16:05:12 +09:00
harukin-OneMix4
480bcbfcd3 リファクタリング 2023-07-06 04:18:07 +09:00
harukin-OneMix4
420a805f3c useEffectの並び替えとコードのバグを修正 2023-07-06 03:56:41 +09:00
harukin-OneMix4
7e092671a2 引数の短縮と関数の移動 2023-07-06 03:26:33 +09:00
harukin-OneMix4
1b16e09633 trainDiagramをmenuトップに移動、HeaderConfigを分離統合、バグ修正 2023-07-06 02:38:42 +09:00
harukin-OneMix4
52b15288b9 引数の調整とgetTrainTypeの分離 2023-07-06 02:16:48 +09:00
harukin-OneMix4
b2ee75205b 一部ロジックの短縮化 2023-07-06 02:09:44 +09:00
harukin-OneMix4
5115656050 parseAllTrainDiagramを分割 2023-07-06 01:53:45 +09:00
harukin-OneMix4
f5491200eb props宣言の変更 2023-07-06 01:50:57 +09:00
harukin-OneMix4
26111e7ce8 レイアウトの微修正 2023-07-01 15:04:59 +09:00
harukin-OneMix4
b2624d319b Androidでスクロールしなかった問題を解消 2023-07-01 14:49:55 +09:00
harukin-OneMix4
0618ff0180 Android向け裏処理完成 2023-07-01 14:26:30 +09:00
harukin-OneMix4
b4c306bce3 列番表示のクエリ強化 2023-07-01 13:36:43 +09:00
harukin-OneMix4
cdea9a1e05 observerの設置変更 2023-07-01 13:36:12 +09:00
harukin-OneMix4
0ff05f911c 駅名標をAndroidで表示できなくなっていた問題を修正 2023-07-01 11:59:53 +09:00
harukin-OneMix4
84efa42e57 Merge commit '610f9c21ce7d8bb65c1871c98963fcd2f68fffb0' into feature/refactoring-inject-javascript 2023-06-27 22:37:09 +09:00
harukin-OneMix4
610f9c21ce Merge commit 'f815b317203b33c719e053857c8df6bfbe6e82fd' into develop 2023-06-27 22:37:02 +09:00
harukin-OneMix4
9fee43d6ff メニュー画面でのtrainInfo画面の動作要件準備 2023-06-27 22:18:52 +09:00
harukin-OneMix4
ce9dccc158 待機秒数調整 2023-06-27 21:34:29 +09:00
harukin-OneMix4
7f67fc6cc8 menu側にも列車表示を追加 2023-06-27 21:34:20 +09:00
harukin-OneMix4
ed76462436 不要なコメントの削除 2023-06-27 21:33:46 +09:00
harukin-OneMix4
a643ab5c56 列車情報表示機能の詳細デザイン作成 2023-06-27 21:09:23 +09:00
harukin-OneMix4
ea1c505453 列車名修正 2023-06-27 16:24:45 +09:00
harukin-OneMix4
35907df3c4 仮表示機能実装 2023-06-27 12:58:00 +09:00
harukin-OneMix4
180bc95a80 TKTも移動 2023-06-27 01:19:20 +09:00
harukin-OneMix4
6f7f02e4fa 貨物の項目リファクタリング 2023-06-27 01:02:48 +09:00
harukin-OneMix4
df7608acaf EachTrainInfo表面を仮作成 2023-06-27 00:57:14 +09:00
harukin-OneMix4
34413f522f 列車情報ボタンのバック側用意完了 2023-06-27 00:24:56 +09:00
harukin-OneMix4
07adaf2ef5 駅メニュー表示機能のスクリプト側の抜本的改造 2023-06-26 22:41:00 +09:00
harukin-OneMix4
34f907ef9b Merge commit '06b1933d1c44cdc73a26bc00e6010366d5dad1cb' into feature/refactoring-inject-javascript 2023-06-26 00:36:35 +09:00
harukin-OneMix4
f815b31720 pdfをiOSとAndroidでアドレス変換するように変更 2023-06-26 00:34:51 +09:00
harukin-OneMix4
06b1933d1c update build number 28 2023-06-19 14:04:07 +09:00
harukin-OneMix4
1aac1e40df 小整理 2023-06-19 13:58:54 +09:00
harukin-OneMix4
4ef5a13dc3 querySelectorへ一部書き換え 2023-06-18 22:35:25 +09:00
harukin-OneMix4
0f56a7ceea Merge commit 'a3e8e3cbbe13e4fc137937493a91708b1dff7cae' into develop 2023-06-18 21:04:30 +09:00
harukin-OneMix4
1622cd2ab8 Merge commit 'a83bb27f60029c7cc14977a4088e251f1c9a7659' into develop 2023-06-18 20:52:21 +09:00
harukin-OneMix4
a3e8e3cbbe コロナウイルスの告知を削除 2023-06-18 03:27:37 +09:00
harukin-OneMix4
a83bb27f60 ほぼすべての駅名標機能で内部ブラウザを利用できるように変更 2023-06-18 03:08:13 +09:00
harukin-OneMix4
320a94565d PDF表示機能を部分実験実装 2023-06-17 23:40:11 +09:00
harukin-OneMix4
fd7fd7f623 図追加 2023-05-19 00:48:40 +09:00
harukin-OneMix4
cfbd126fe3 5/11時点の更新データを適用 2023-05-11 17:32:00 +09:00
harukin-OneMix4
bfd6decfcc Merge commit '81f394d6ca2ae418c89452acabe11196e4b7e940' into develop 2023-05-10 17:21:57 +09:00
harukin-OneMix4
81f394d6ca custom-train-data側に反映してなかった 2023-05-10 17:19:03 +09:00
harukin-OneMix4
357490314a Merge commit 'bb115afe358eb7f2fb724beb1da13b2be24780b4' into develop 2023-05-10 17:04:35 +09:00
harukin-OneMix4
bb115afe35 宇和海の情報ミスを修正 2023-05-10 17:00:17 +09:00
harukin-DeskMini
c00073bb32 Merge commit '47d84777e2a26235d5442a68ae3b6bcb07f580cb' into patch/4.5.x-master|dev 2023-03-30 03:29:06 +09:00
harukin-DeskMini
47d84777e2 Merge commit '65dd6dd0fdd41f06cfb686d578f9d604185510d3' into develop 2023-03-27 07:04:29 +09:00
harukin-DeskMini
65dd6dd0fd typoとアイコンへの反映忘れを修正 2023-03-27 07:01:00 +09:00
harukin-DeskMini
054dab518f アプリの起動時にお気に入りの一件目にジャンプするように変更 2023-03-27 06:15:07 +09:00
harukin-DeskMini
3d09b93df5 暫定的ブラウザジャンプ化 2023-03-27 05:37:20 +09:00
harukin-DeskMini
ffe18b8398 構内図対応 2023-03-27 05:32:49 +09:00
harukin-DeskMini
9381e0ee15 Merge commit '9eca67901906b8852f1f1f2dfa814ed658514b4b' into develop 2023-03-27 01:06:09 +09:00
harukin-DeskMini
9eca679019 アプリバージョン4.5リリース用ナンバー変更 2023-03-27 01:05:57 +09:00
harukin-DeskMini
dc4f1d7454 Merge commit '98b22db4dbea611907c4d7a6a60b7323dbec7a76' into develop 2023-03-27 01:03:04 +09:00
harukin-DeskMini
98b22db4db 2023年ダイヤ改正情報を書き換え 2023-03-27 01:02:33 +09:00
harukin-DeskMini
59df072e45 最新の公式データに追従 2023-03-26 22:16:57 +09:00
harukin-DeskMini
816d96d37b データが無い時にクラッシュする問題を修正 2023-03-26 21:00:21 +09:00
harukin-DeskMini
e9fd753a8f 小整理 2023-03-26 19:29:57 +09:00
harukin-DeskMini
d627617ca0 崩れの修正 2023-03-03 21:37:34 +09:00
harukin-DeskMini
f6a88f09e4 4.5-beta-2 2023-03-02 21:11:57 +09:00
harukin-DeskMini
12934f0963 Merge commit '3f8a753abbd5fdde1cc4988d1e763b4dd11d12e8' into develop 2023-03-02 21:10:27 +09:00
harukin-DeskMini
3f8a753abb インデックスがズレて表示が崩れていたので修正 2023-03-02 21:03:35 +09:00
harukin-DeskMini
28c58ce83f 固定コンテンツの移動 2023-03-02 20:38:19 +09:00
harukin-OneMix4
d45b6aee0e fixed yarn.lock 2023-03-02 17:43:29 +09:00
harukin-OneMix4
abe8334b26 Merge commit '64538e33f317c6fe395859673922f63c2e3b0514' into develop 2023-03-02 17:42:01 +09:00
harukin-OneMix4
64538e33f3 coreシステムのアップグレード 2023-03-02 17:36:21 +09:00
harukin-OneMix4
942b90e6d2 Merge commit '9d751866913f6fb743ae3e43a580d7624b333864' into develop 2023-02-22 20:29:40 +09:00
harukin-OneMix4
9d75186691 iOSのLEDボトム文字列が変な場所にある問題を修正 2023-02-22 20:29:28 +09:00
harukin-OneMix4
9959fbe5c9 LEDの文字サイズ調整 2023-02-22 20:27:30 +09:00
harukin-OneMix4
0230f5409a iOSで→が真ん中に来なかった問題を修正 2023-02-22 20:13:16 +09:00
harukin-OneMix4
1c67d1d486 iosでもlottieアニメが動作するように修正 2023-02-22 20:03:39 +09:00
harukin-DeskMini
97d05571e5 Merge commit '655f174321ccfe35b1631adf568f590dc6286b03' into develop 2023-02-06 12:06:30 +09:00
harukin-DeskMini
655f174321 ふぁぼが空の時にクラッシュしていた問題を修正 2023-02-06 12:06:21 +09:00
harukin-DeskMini
3137d50e24 Merge commit 'a7347a18163dfd8c29f99d1583e5429f9625423a' into develop 2023-02-06 11:25:30 +09:00
harukin-DeskMini
74864da293 Merge commit '815734eb07186bf15c58a3befd9b190fd2839170' into develop 2023-02-06 11:24:48 +09:00
harukin-DeskMini
4e90ecf132 ios beta publish 2023-02-06 11:20:43 +09:00
harukin-DeskMini
a7347a1816 バスのある駅でデータを出すボタンを設置 2023-02-06 03:22:02 +09:00
harukin-DeskMini
815734eb07 路線色の定義 2023-02-06 03:14:08 +09:00
harukin-DeskMini
369ae557c7 駅リストの管理に情報を追加/DetailView側に路線概要表示機能を追加 2023-02-05 17:07:57 +09:00
harukin-DeskMini
4c47a1684c Merge commit 'c2ca832b804afb3b5817afece0c98b4e9e504020' into develop 2023-02-05 05:03:31 +09:00
harukin-DeskMini
c2ca832b80 駅名標に不要な要素が残るバグを修正 2023-02-05 04:56:24 +09:00
harukin-DeskMini
5867ad3aa8 不要なタイミングで駅情報が消去されるバグを修正 2023-02-01 21:49:57 +09:00
harukin-DeskMini
ece076ad48 Merge commit '58340bb608aca83f50ea018fcbdd4f7e4043952c' into develop 2023-02-01 20:46:14 +09:00
harukin-DeskMini
58340bb608 最右端のデータを消去した場合にクラッシュするバグの修正 2023-02-01 20:46:03 +09:00
harukin-DeskMini
32fb402126 Merge commit 'bb89149876e720f8d3152e8d2e2116a942436e4a' into develop 2023-02-01 17:17:25 +09:00
harukin-DeskMini
44b6a113ff Merge commit 'e93fe7095ef717bd0ddebeb18f28038a374d83f6' into develop 2023-02-01 17:15:55 +09:00
harukin-DeskMini
e93fe7095e 高知運転所と高知駅が誤認してクラッシュしていた問題 2023-02-01 17:15:17 +09:00
harukin-DeskMini
bb89149876 選択された駅名板を利用したLED表示と選択画面の整備 2023-02-01 16:57:49 +09:00
harukin-DeskMini
12f23bef16 ふぁぼ駅を表示するように変更(現在地が表示されない) 2023-02-01 15:25:33 +09:00
harukin-DeskMini
f580e319cf Merge commit '7dc72ef433745388e6a31b06b1811e972896ae27' into develop 2023-01-30 03:32:51 +09:00
harukin-DeskMini
7dc72ef433 ふぁぼstateをトップ階層に移動し各コンポーネントで共有化 2023-01-30 03:32:30 +09:00
harukin-DeskMini
746c996cba 全コンポーネントをcomponentからchildへ移動 2023-01-30 03:02:00 +09:00
harukin-DeskMini
556b04e3b0 アイコン処理用function分離 2023-01-30 02:51:57 +09:00
harukin-DeskMini
67f9b8b698 Merge commit '3ff585a577d45227ec7bfa473eb658fea0853f9c' into develop 2023-01-30 01:19:06 +09:00
harukin-DeskMini
3ff585a577 タブバーのロング押し実装に伴うnavigation手法の変更とふぁぼ画面へのクイックアクセス機能整備 2023-01-30 01:18:53 +09:00
harukin-DeskMini
f5e4947c3b navigationの制御方式多少変更 2023-01-30 00:04:18 +09:00
harukin-DeskMini
fae18a6a47 Merge commit '40fb55c8cf5462a40a499ddcc69cb5313e559f84' into develop 2023-01-29 22:10:18 +09:00
harukin-DeskMini
40fb55c8cf いしづちと南風のjson解析に不完全があったのを修正 2023-01-29 22:08:56 +09:00
harukin-DeskMini
1fd2be5ddf Merge commit 'e35ab09002641b3813d2055ff8107bd8088c4629' into develop 2023-01-29 09:11:37 +09:00
harukin-DeskMini
e35ab09002 アイコンがリンク切れしていたので一部差し替え 2023-01-29 09:10:41 +09:00
harukin-DeskMini
f993577e34 検知日本語条件を修正 2023-01-29 08:57:59 +09:00
harukin-DeskMini
7f8a77d9fa 検知日本語条件を修正 2023-01-29 08:57:31 +09:00
harukin-DeskMini
50973db9ce Merge commit '7595dd845a73ae10dbeef8ae5324fba00c6b7beb' into develop 2023-01-29 08:39:37 +09:00
harukin-DeskMini
2fbd54eb7f 4.4.2.9 2023-01-29 08:39:18 +09:00
harukin-DeskMini
7595dd845a LEDの動作条件修正 2023-01-29 08:38:40 +09:00
harukin-DeskMini
d475b5c8a4 beta向けにeasの設定書き込み/4.5 beta-1 2023-01-29 07:59:06 +09:00
harukin-DeskMini
3a45288eee Merge commit 'c996b31dad836bed1994d4f25997f75b61cb661c' into develop 2023-01-29 07:57:32 +09:00
harukin-DeskMini
c996b31dad ふぁぼりすとを作成 2023-01-29 06:37:52 +09:00
harukin-DeskMini
2040d829fe お気に入り機能を実装 2023-01-29 04:07:41 +09:00
harukin-DeskMini
9eaa32a0f2 Merge commit 'a17626042a557594f5db9d200d1c53b95bb14356' 2023-01-28 23:56:46 +09:00
harukin-DeskMini
a17626042a 4.4.2.8 2023-01-28 23:56:40 +09:00
harukin-DeskMini
1dc1b9a636 エラー発生時の再試行用ボタンの設置 2023-01-28 23:56:10 +09:00
harukin-DeskMini
a56dfc7618 keyの修正と位置情報の取得タイミングの調整 2023-01-28 20:10:43 +09:00
harukin-DeskMini
178fda07af Merge commit 'bf016b1c8b2e84a38c675124888fe338c05d582c' 2023-01-28 08:53:37 +09:00
harukin-DeskMini
bf016b1c8b 4.4.2.7 2023-01-28 08:53:23 +09:00
harukin-DeskMini
1a1227dfeb AsyncStorage→ReactNativeStorageへの変更 2023-01-28 08:49:19 +09:00
harukin-DeskMini
29963ab876 LEDから列車視点版への移動が可能に 2023-01-28 08:31:39 +09:00
harukin-DeskMini
a5523d61c3 menuのanimation変更 2023-01-28 07:18:19 +09:00
harukin-DeskMini
337179b4c4 各種挙動が不完全な部分を修正 2023-01-28 07:16:50 +09:00
harukin-DeskMini
052c121179 LED表示機能第二弾リファクタリング 2023-01-28 06:51:52 +09:00
harukin-DeskMini
7321f6d514 LED表示機能第一段リファクタリング 2023-01-28 03:27:41 +09:00
harukin-DeskMini
ff48198c87 delayDataをkey管理化 2023-01-27 23:00:00 +09:00
harukin-DeskMini
690df1d2bc Signの動作変更 2023-01-27 22:59:29 +09:00
harukin-DeskMini
0251b9fc2f Merge commit '67eed85c225f2b935e2a8f377fb46614fa9cf390' 2023-01-26 06:37:52 +09:00
harukin-DeskMini
67eed85c22 4.4.2.6 2023-01-26 06:37:40 +09:00
harukin-DeskMini
cb94b545dc LEDVisionのエラーfallback対策&始発駅表記の対応 2023-01-26 06:36:52 +09:00
harukin-DeskMini
1ef8870153 Merge commit '18e046dc33da0b27fdfae244e390e0b7ddeffabf' into develop 2023-01-26 06:36:00 +09:00
harukin-DeskMini
18e046dc33 framework0への改修途中 2023-01-26 06:35:47 +09:00
harukin-OneMix4
f64ccfa271 Merge commit '5406d981957000a09610912aeb6e5d684f3c202e' 2022-12-08 01:08:20 +09:00
harukin-OneMix4
5406d98195 4.4.2.5 2022-12-08 01:07:58 +09:00
harukin-OneMix4
a923ac8b20 Merge commit '1ecb9ec0463b3c2c3ebf9da3b78015e9724632f4' into develop 2022-12-08 01:06:41 +09:00
harukin-OneMix4
03d6f02de5 Merge commit 'a5b5d8f1b41c88e0b71593f7eaa9e65ab3ee662f' into develop 2022-12-08 01:06:34 +09:00
harukin-OneMix4
1ecb9ec046 不要なデータの消去 2022-12-08 01:06:14 +09:00
harukin-OneMix4
796464c03a Merge commit '3723b01401e4868ec5f1c4ea5f1f57cd970500f0' 2022-12-07 23:31:17 +09:00
harukin-OneMix4
3723b01401 4.4.2.4 2022-12-07 23:31:06 +09:00
harukin-OneMix4
59c60d7791 Merge commit '10ea09cb00a5fdaf79798350ee30211d4d3ec41f' 2022-12-07 23:28:58 +09:00
harukin-OneMix4
10ea09cb00 Merge commit '13c1ab6e170f4f8757239dcf2f9e51bfc6c48b9f' into develop 2022-12-07 23:28:37 +09:00
harukin-DeskMini
7810b770cc Merge commit '1430c31140b00da4c971a9b518c2fe01c6d1b4bf' 2022-11-29 21:25:06 +09:00
harukin-DeskMini
00e0dbab9d Merge branch 'master' of https://gitlab.haruk.in/harukin/jrshikoku 2022-11-22 14:42:50 +09:00
harukin-OneMix4
923a28e1a5 Merge branch 'develop' 2022-11-22 14:41:47 +09:00
harukin-DeskMini
151edd5fff Merge commit 'cf57f29e62ceff066426e04ae1ca79d2b65b1cf2' 2022-11-21 00:06:58 +09:00
harukin-DeskMini
f7965be3ef Merge commit 'cbce84a9ab1a79f4302c1b7c65a23a0263e78905' 2022-11-19 15:34:28 +09:00
harukin-DeskMini
32f6fa3b60 Merge commit '7a33ee409581dffccb189887cffbb8419bb881de' 2022-10-01 02:09:31 +09:00
harukin-DeskMini
5474b3eab2 Merge commit '15bb692676e546e59ce418c8b7e2847ca7345ceb' 2022-09-30 00:15:36 +09:00
67 changed files with 10879 additions and 19472 deletions

1
.gitignore vendored
View File

@@ -5,3 +5,4 @@ npm-debug.*
*.p12
*.key
*.mobileprovision
dist/

196
App.js
View File

@@ -1,126 +1,138 @@
import React, { useEffect, useRef } from "react";
import React, { useEffect } from "react";
import { NavigationContainer } from "@react-navigation/native";
import {
createStackNavigator,
TransitionPresets,
} from "@react-navigation/stack";
import { createStackNavigator } from "@react-navigation/stack";
import { createBottomTabNavigator } from "@react-navigation/bottom-tabs";
import { AntDesign, Ionicons } from "@expo/vector-icons";
import { Platform, UIManager } from "react-native";
import { UpdateAsync } from "./UpdateAsync.js";
import Apps from "./Apps";
import tndView from "./ndView";
import trainbase from "./trainbaseview";
import howto from "./howto";
import menu from "./menu";
import News from "./components/news.js";
import Setting from "./components/settings.js";
import trainMenu from "./components/trainMenu.js";
const Stack = createStackNavigator();
import { AS } from "./storageControl";
import TNDView from "./ndView";
import { LogBox } from "react-native";
import useInterval from "./lib/useInterval";
import { HeaderConfig } from "./lib/HeaderConfig";
import { initIcon } from "./lib/initIcon";
import {
useFavoriteStation,
FavoriteStationProvider,
} from "./stateBox/useFavoriteStation";
import { Top } from "./Top.js";
import { MenuPage } from "./MenuPage.js";
import {
useCurrentTrain,
CurrentTrainProvider,
} from "./stateBox/useCurrentTrain.js";
import { useAreaInfo, AreaInfoProvider } from "./stateBox/useAreaInfo.js";
import {
useBusAndTrainData,
BusAndTrainDataProvider,
} from "./stateBox/useBusAndTrainData.js";
import { AllTrainDiagramProvider } from "./stateBox/useAllTrainDiagram.js";
import { SheetProvider } from "react-native-actions-sheet";
import "./components/ActionSheetComponents/sheets.js";
import { TrainDelayDataProvider } from "./stateBox/useTrainDelayData.js";
import { SafeAreaProvider } from "react-native-safe-area-context";
LogBox.ignoreLogs([
"ViewPropTypes will be removed",
"ColorPropType will be removed",
]);
const Tab = createBottomTabNavigator();
if (Platform.OS === "android") {
if (UIManager.setLayoutAnimationEnabledExperimental) {
UIManager.setLayoutAnimationEnabledExperimental(true);
}
}
export default function App() {
const navigationRef = useRef();
useEffect(UpdateAsync, []);
useEffect(() => UpdateAsync(), []);
return (
<NavigationContainer name="Root" ref={navigationRef} style={{ flex: 1 }}>
<Tab.Navigator>
<Stack.Screen
<SafeAreaProvider>
<FavoriteStationProvider>
<TrainDelayDataProvider>
<CurrentTrainProvider>
<AreaInfoProvider>
<AllTrainDiagramProvider>
<BusAndTrainDataProvider>
<SheetProvider>
<AppContainer />
</SheetProvider>
</BusAndTrainDataProvider>
</AllTrainDiagramProvider>
</AreaInfoProvider>
</CurrentTrainProvider>
</TrainDelayDataProvider>
</FavoriteStationProvider>
</SafeAreaProvider>
);
}
export function AppContainer() {
const { setBusAndTrainData } = useBusAndTrainData();
useEffect(() => {
AS.getItem("busAndTrain")
.then((d) => {
const returnData = JSON.parse(d);
setBusAndTrainData(returnData);
})
.catch(() => {
fetch(
"https://script.google.com/macros/s/AKfycbw0UW6ZeCDgUYFRP0zxpc_Oqfy-91dBdbWv-cM8n3narKp14IyCd2wy5HW7taXcW7E/exec"
)
.then((d) => d.json())
.then((d) => {
setBusAndTrainData(d);
AS.setItem("busAndTrain", JSON.stringify(d));
});
});
}, []);
const { areaInfo, setAreaInfo } = useAreaInfo();
const getAreaData = () =>
fetch(
"https://script.google.com/macros/s/AKfycbz80LcaEUrhnlEsLkJy0LG2IRO3DBVQhfNmN1d_0f_HvtsujNQpxM90SrV9yKWH_JG1Ww/exec"
)
.then((d) => d.text())
.then((d) => setAreaInfo(d));
useEffect(getAreaData, []);
useInterval(getAreaData, 60000); //60秒毎に全在線列車取得
return (
<NavigationContainer name="Root" style={{ flex: 1 }}>
<Tab.Navigator
tabBarOptions={{ keyboardHidesTabBar: Platform.OS === "android" }}
>
<Tab.Screen
name="login"
component={top}
options={{
tabBarLabel: "位置情報",
headerTransparent: true,
gestureEnabled: true,
tabBarIcon: () => <AntDesign name="barchart" size={32} />,
tabBarIcon: initIcon("barchart", "AntDesign"),
}}
/>
<Stack.Screen
>
{(props) => <Top {...props} />}
</Tab.Screen>
<Tab.Screen
name="menuPage"
component={menuPage}
options={{
tabBarLabel: "リンク",
headerTransparent: true,
gestureEnabled: true,
tabBarIcon: () => <Ionicons name="ios-radio" size={32} />,
tabBarIcon: initIcon("ios-radio", "Ionicons"),
}}
/>
<Stack.Screen
>
{(props) => <MenuPage {...props} />}
</Tab.Screen>
<Tab.Screen
name="home"
component={tndView}
options={{
tabBarLabel: "運行情報",
headerTransparent: true,
gestureEnabled: true,
tabBarIcon: () => <Ionicons name="md-train" size={32} />,
tabBarIcon: initIcon("md-train", "Ionicons"),
tabBarBadge: areaInfo ? "!" : undefined,
}}
/>
>
{(props) => <TNDView {...props} />}
</Tab.Screen>
</Tab.Navigator>
</NavigationContainer>
);
}
function top() {
return (
<Stack.Navigator>
<Stack.Screen
name="Apps"
component={Apps}
options={{
headerShown: false,
gestureEnabled: true,
headerTransparent: true,
}}
/>
<Stack.Screen
name="trainbase"
component={trainbase}
options={{
title: "トレインビジョン",
gestureEnabled: true,
...TransitionPresets.SlideFromRightIOS,
}}
/>
<Stack.Screen
name="howto"
component={howto}
options={{
title: "使い方",
...optionData,
}}
/>
<Stack.Screen name="news" component={News} options={optionData} />
<Stack.Screen
name="trainMenu"
component={trainMenu}
options={optionData}
/>
</Stack.Navigator>
);
}
function menuPage() {
return (
<Stack.Navigator>
<Stack.Screen
name="menu"
component={menu}
options={{
headerShown: false,
gestureEnabled: true,
headerTransparent: true,
}}
/>
<Stack.Screen name="setting" component={Setting} options={optionData} />
</Stack.Navigator>
);
}
const optionData = {
gestureEnabled: true,
...TransitionPresets.ModalPresentationIOS,
cardOverlayEnabled: true,
headerTransparent: true,
headerShown: false,
};

493
Apps.js
View File

@@ -1,116 +1,271 @@
import React, { useEffect, useRef, useState } from "react";
import {
View,
Platform,
ToastAndroid,
Text,
TouchableOpacity,
} from "react-native";
import { View, Platform, Text, TouchableOpacity } from "react-native";
import { WebView } from "react-native-webview";
import Constants from "expo-constants";
import AsyncStorage from "@react-native-async-storage/async-storage";
import { Ionicons } from "@expo/vector-icons";
import { AS } from "./storageControl";
import { news } from "./config/newsUpdate";
import { getStationList } from "./lib/getStationList";
import { StationDeteilView } from "./components/ActionSheetComponents/StationDeteilView";
import { getStationList, lineList } from "./lib/getStationList";
import { injectJavascriptData } from "./lib/webViewInjectjavascript";
import { getStationList2 } from "./lib/getStationList2";
import { checkDuplicateTrainData } from "./lib/checkDuplicateTrainData";
import { useFavoriteStation } from "./stateBox/useFavoriteStation";
import { useCurrentTrain } from "./stateBox/useCurrentTrain";
import { SheetManager } from "react-native-actions-sheet";
/*
import StatusbarDetect from './StatusbarDetect';
var Status = StatusbarDetect(); */
export default function Apps(props) {
const {
navigation: { navigate },
} = props;
export default function Apps({ navigation, webview, stationData }) {
const { currentTrain } = useCurrentTrain();
const { navigate } = navigation;
var urlcache = "";
const webview = useRef();
const { favoriteStation } = useFavoriteStation();
//画面表示関連
const [iconSetting, setIconSetting] = useState(undefined);
const [mapSwitch, setMapSwitch] = useState(undefined);
const [stationMenu, setStationMenu] = useState(undefined);
const [LoadError, setLoadError] = useState(false);
//地図用
const [mapsStationData, setMapsStationData] = useState(undefined);
useEffect(() => {
getStationList2().then((data) => {
console.log(data);
setMapsStationData(data);
});
}, []);
//列車情報表示関連
const [trainInfo, setTrainInfo] = useState({
trainNum: undefined,
limited: undefined,
trainData: undefined,
});
//駅情報画面用
const StationBoardAcSR = useRef(null);
const [stationBoardData, setStationBoardData] = useState(undefined);
const [originalStationList, setOriginalStationList] = useState();
const [selectedStation, setSelectedStation] = useState(undefined);
useEffect(() => getStationList().then(setOriginalStationList), []);
const [trainMenu, setTrainMenu] = useState("true");
let once = false;
useEffect(() => {
getStationList().then(setOriginalStationList);
}, []);
//地図表示テキスト
const injectJavascript = injectJavascriptData(
mapSwitch,
iconSetting,
stationMenu
stationMenu,
trainMenu
);
useEffect(() => {
//ニュース表示
AsyncStorage.getItem("status")
AS.getItem("status")
.then((d) => {
if (d != news) navigate("news");
})
.catch((e) => navigate("news"));
.catch(() => navigate("news"));
}, []);
useEffect(() => {
//列車アイコンスイッチ
AsyncStorage.getItem("iconSwitch")
AS.getItem("iconSwitch")
.then((d) => {
if (d) {
setIconSetting(d);
} else {
AsyncStorage.setItem("iconSwitch", "true").then(() =>
Updates.reloadAsync()
);
AS.setItem("iconSwitch", "true").then(Updates.reloadAsync);
}
})
.catch((d) =>
AsyncStorage.setItem("iconSwitch", "true").then(() =>
Updates.reloadAsync()
)
);
.catch(() => AS.setItem("iconSwitch", "true").then(Updates.reloadAsync));
}, []);
useEffect(() => {
//地図スイッチ
AsyncStorage.getItem("mapSwitch")
AS.getItem("mapSwitch")
.then((d) => {
if (d) {
setMapSwitch(d);
} else {
AsyncStorage.setItem("mapSwitch", "false").then(() =>
Updates.reloadAsync()
);
AS.setItem("mapSwitch", "false").then(Updates.reloadAsync);
}
})
.catch((d) =>
AsyncStorage.setItem("mapSwitch", "false").then(() =>
Updates.reloadAsync()
)
);
.catch(() => AS.setItem("mapSwitch", "false").then(Updates.reloadAsync));
}, []);
useEffect(() => {
//駅メニュースイッチ
AsyncStorage.getItem("stationSwitch")
AS.getItem("stationSwitch")
.then((d) => {
if (d) {
setStationMenu(d);
} else {
AsyncStorage.setItem("stationSwitch", "true").then(() =>
Updates.reloadAsync()
);
AS.setItem("stationSwitch", "true").then(Updates.reloadAsync);
}
})
.catch((d) =>
AsyncStorage.setItem("stationSwitch", "true").then(() =>
Updates.reloadAsync()
)
.catch(() =>
AS.setItem("stationSwitch", "true").then(Updates.reloadAsync)
);
}, []);
useEffect(() => {
//列車メニュースイッチ
AS.getItem("trainSwitch")
.then((d) => {
if (d) {
setTrainMenu(d);
} else {
AS.setItem("trainSwitch", "true").then(Updates.reloadAsync);
}
})
.catch(() => AS.setItem("trainSwitch", "true").then(Updates.reloadAsync));
}, []);
const onMessage = (event) => {
if (event.nativeEvent.data.includes("train.html")) {
navigate("trainbase", { info: event.nativeEvent.data, from: "Train" });
return;
}
if (!originalStationList) {
alert("駅名標データを取得中...");
return;
}
const dataSet = JSON.parse(event.nativeEvent.data);
switch (dataSet.type) {
case "LoadError": {
setLoadError(true);
return;
}
case "PopUpMenu":
{
const selectedStationPDFAddress = dataSet.pdf;
const findStationEachLine = (selectLine) => {
let NearStation = selectLine.filter(
(d) => d.StationTimeTable == selectedStationPDFAddress
);
return NearStation;
};
let returnDataBase = lineList
.map((d) => findStationEachLine(originalStationList[d]))
.filter((d) => d.length > 0)
.reduce((pre, current) => {
pre.push(...current);
return pre;
}, []);
if (returnDataBase.length) {
const payload = {
currentStation: returnDataBase,
originalStationList: originalStationList,
navigate: navigate,
goTo: "Apps",
useShow: () =>
SheetManager.show("StationDetailView", {
payload,
}),
onExit: () => {
SheetManager.hide("StationDetailView");
},
};
SheetManager.show("StationDetailView", {
payload,
});
}
}
return;
case "ShowTrainTimeInfo": {
const { trainNum, limited } = dataSet;
//alert(trainNum, limited);
setTrainInfo({
trainNum,
limited,
trainData: checkDuplicateTrainData(
currentTrain.filter((a) => a.num == trainNum)
),
}); //遅延情報は未実装
const payload = {
data: {
trainNum,
limited,
},
navigate,
originalStationList,
openStationACFromEachTrainInfo,
};
SheetManager.show("EachTrainInfo", {
payload,
});
return;
}
default: {
return;
}
}
};
const onNavigationStateChange = (event) => {
if (event.url != urlcache) {
//URL二重判定回避
urlcache = event.url;
if (event.url.includes("https://train.jr-shikoku.co.jp/usage.htm")) {
if (Platform.OS === "android") navigate("howto", { info: event.url });
webview?.current.goBack();
//Actions.howto();
} else if (
event.url.includes("https://train.jr-shikoku.co.jp/train.html")
) {
//Actions.trainbase({info: event.url});
if (Platform.OS === "android")
navigate("trainbase", { info: event.url });
webview?.current.goBack();
}
}
};
function sleep(waitSec, callbackFunc) {
// 経過時間(秒)
var spanedSec = 0;
// 1秒間隔で無名関数を実行
var id = setInterval(function () {
spanedSec++;
// 経過時間 >= 待機時間の場合、待機終了。
if (spanedSec >= waitSec) {
// タイマー停止
clearInterval(id);
// 完了時、コールバック関数を実行
if (callbackFunc) callbackFunc();
}
}, 1);
}
const openStationACFromEachTrainInfo = async (stationName) => {
await SheetManager.hide("EachTrainInfo");
const findStationEachLine = (selectLine) => {
let NearStation = selectLine.filter((d) => d.Station_JP == stationName);
return NearStation;
};
let returnDataBase = lineList
.map((d) => findStationEachLine(originalStationList[d]))
.filter((d) => d.length > 0)
.reduce((pre, current) => {
pre.push(...current);
return pre;
}, []);
if (returnDataBase.length) {
const payload = {
currentStation: returnDataBase,
originalStationList: originalStationList,
navigate: navigate,
goTo: "Apps",
useShow: () =>
SheetManager.show("StationDetailView", {
payload,
}),
onExit: () => {
SheetManager.hide("StationDetailView");
},
};
SheetManager.show("StationDetailView", {
payload,
});
} else {
SheetManager.hide("StationDetailView");
}
};
return (
<View
style={{
@@ -120,7 +275,7 @@ export default function Apps(props) {
>
{/* {Status} */}
<WebView
useWebKit={true}
useWebKit
ref={webview}
source={{ uri: "https://train.jr-shikoku.co.jp/sp.html" }}
originWhitelist={[
@@ -128,125 +283,115 @@ export default function Apps(props) {
"https://train.jr-shikoku.co.jp/sp.html",
]}
mixedContentMode={"compatibility"}
javaScriptEnabled={true}
allowsBackForwardNavigationGestures={true}
setSupportMultipleWindows={true}
onNavigationStateChange={(event) => {
if (event.url != urlcache) {
//URL二重判定回避
urlcache = event.url;
if (
event.url.includes("https://train.jr-shikoku.co.jp/usage.htm")
) {
if (Platform.OS === "android") navigate("howto");
webview?.current.goBack();
//Actions.howto();
} else if (
event.url.includes("https://train.jr-shikoku.co.jp/train.html")
) {
//Actions.trainbase({info: event.url});
if (Platform.OS === "android")
navigate("trainbase", { info: event.url });
webview?.current.goBack();
}
}
}}
onMessage={(event) => {
if (!originalStationList) {
alert("駅名標データを取得中...");
return;
}
if (event.nativeEvent.data.includes("PopUpMenu")) {
const selectedStationPDFAddress = event.nativeEvent.data
.split(",")[3]
.replace("'", "")
.replace("'", "");
const findStationEachLine = (selectLine) => {
let NearStation = selectLine.filter(
(d) => d.StationTimeTable == selectedStationPDFAddress
);
return NearStation;
};
const lineList = [
"予讃線",
"松宇線",
"伊予灘線",
"土讃線",
"窪川線",
"高徳線",
"徳島線",
"鳴門線",
"瀬戸大橋線",
];
let returnDataBase = lineList
.map((d) => findStationEachLine(originalStationList[d]))
.filter((d) => d.length > 0)
.reduce((pre, current) => {
pre.push(...current);
return pre;
}, []);
if (returnDataBase.length) {
let currentStation =
currentStation == undefined ? [] : currentStation;
setStationBoardData(returnDataBase);
StationBoardAcSR.current?.setModalVisible();
} else {
setStationBoardData(undefined);
StationBoardAcSR.current?.hide();
}
return;
}
navigate("trainbase", { info: event.nativeEvent.data });
}}
javaScriptEnabled
allowsBackForwardNavigationGestures
setSupportMultipleWindows
onNavigationStateChange={onNavigationStateChange}
onMessage={onMessage}
injectedJavaScript={injectJavascript}
onTouchMove={() => StationBoardAcSR.current?.hide()}
/>
<TouchableOpacity
onPress={() =>
navigate("trainMenu", { webview, stationData: mapsStationData })
}
style={{
position: "absolute",
top: Platform.OS == "ios" ? Constants.statusBarHeight : 0,
left: 10,
width: 50,
height: 50,
backgroundColor: "#0099CC",
borderColor: "white",
borderStyle: "solid",
borderWidth: 1,
borderRadius: 50,
alignContent: "center",
alignSelf: "center",
alignItems: "center",
display: mapSwitch == "true" ? "flex" : "none",
onLoadEnd={() => {
if (once) return () => {};
if (!stationData) return () => {};
if (favoriteStation.length > 0) {
const getStationLine = (now) => {
const returnData = Object.keys(stationData).filter((d) => {
const cache = stationData[d].findIndex(
(data) => data.Station_JP == now.Station_JP
);
return cache != -1;
});
return returnData[0];
};
const lineName = getStationLine(favoriteStation[0][0]);
webview.current?.injectJavaScript(
`MoveDisplayStation('${lineName}_${favoriteStation[0][0].MyStation}_${favoriteStation[0][0].Station_JP}')`
);
once = true;
}
}}
>
<View style={{ flex: 1 }} />
<Text
style={{
textAlign: "center",
width: "auto",
height: "auto",
textAlignVertical: "center",
fontWeight: "bold",
color: "white",
}}
>
</Text>
<View style={{ flex: 1 }} />
</TouchableOpacity>
<StationDeteilView
StationBoardAcSR={StationBoardAcSR}
currentStation={stationBoardData}
originalStationList={originalStationList}
/>
<MapsButton
onPress={() => navigate("trainMenu", { webview })}
top={Platform.OS == "ios" ? Constants.statusBarHeight : 0}
mapSwitch={mapSwitch == "true" ? "flex" : "none"}
/>
<ReloadButton
onPress={() => webview.current.reload()}
top={Platform.OS == "ios" ? Constants.statusBarHeight : 0}
LoadError={LoadError}
/>
</View>
);
}
const MapsButton = ({ onPress, top, mapSwitch }) => {
const styles = {
touch: {
position: "absolute",
top,
left: 10,
width: 50,
height: 50,
backgroundColor: "#0099CC",
borderColor: "white",
borderStyle: "solid",
borderWidth: 1,
borderRadius: 50,
alignContent: "center",
alignSelf: "center",
alignItems: "center",
display: mapSwitch,
},
text: {
textAlign: "center",
width: "auto",
height: "auto",
textAlignVertical: "center",
fontWeight: "bold",
color: "white",
},
};
return (
<TouchableOpacity onPress={onPress} style={styles.touch}>
<View style={{ flex: 1 }} />
<Text style={styles.text}></Text>
<View style={{ flex: 1 }} />
</TouchableOpacity>
);
};
const ReloadButton = ({ onPress, top, mapSwitch, LoadError = false }) => {
const styles = {
touch: {
position: "absolute",
top,
right: 10,
width: 50,
height: 50,
backgroundColor: LoadError ? "red" : "#0099CC",
borderColor: "white",
borderStyle: "solid",
borderWidth: 1,
borderRadius: 50,
alignContent: "center",
alignSelf: "center",
alignItems: "center",
display: mapSwitch,
},
text: {
textAlign: "center",
width: "auto",
height: "auto",
textAlignVertical: "center",
fontWeight: "bold",
color: "white",
},
};
return (
<TouchableOpacity onPress={onPress} style={styles.touch}>
<View style={{ flex: 1 }} />
<Ionicons name="reload" color="white" size={30} />
<View style={{ flex: 1 }} />
</TouchableOpacity>
);
};

97
MenuPage.js Normal file
View File

@@ -0,0 +1,97 @@
import React, { useEffect } from "react";
import {
createStackNavigator,
TransitionPresets,
} from "@react-navigation/stack";
import { AS } from "./storageControl";
import TrainBase from "./trainbaseview";
import HowTo from "./howto";
import Menu from "./menu";
import Setting from "./components/settings.js";
import { useFavoriteStation } from "./stateBox/useFavoriteStation";
import { optionData } from "./lib/stackOption.js";
import CurrentTrainListView from "./components/CurrentTrainListView.js";
import AllTrainDiagramView from "./components/AllTrainDiagramView.js";
import { useCurrentTrain } from "./stateBox/useCurrentTrain.js";
const Stack = createStackNavigator();
export function MenuPage({ navigation }) {
const { favoriteStation, setFavoriteStation } = useFavoriteStation();
const { getCurrentTrain } = useCurrentTrain();
useEffect(() => {
const unsubscribe = navigation.addListener("tabPress", (e) => {
AS.getItem("favoriteStation")
.then((d) => {
const returnData = JSON.parse(d);
if (favoriteStation.toString() != d) {
setFavoriteStation(returnData);
}
})
.catch((d) => console.log(d));
});
return unsubscribe;
}, [navigation]);
return (
<Stack.Navigator>
<Stack.Screen
name="menu"
options={{
headerShown: false,
gestureEnabled: true,
headerTransparent: true,
}}
>
{(props) => <Menu {...props} getCurrentTrain={getCurrentTrain} />}
</Stack.Screen>
<Stack.Screen name="setting" options={optionData}>
{(props) => <Setting {...props} />}
</Stack.Screen>
<Stack.Screen
name="trainbase"
options={{
...TransitionPresets.ModalPresentationIOS,
cardOverlayEnabled: true,
headerShown: false,
gestureEnabled: true,
headerTransparent: true,
gestureResponseDistance: { vertical: 300 },
}}
>
{(props) => <TrainBase {...props} />}
</Stack.Screen>
<Stack.Screen
name="currentTrainIDList"
options={{
...TransitionPresets.ModalPresentationIOS,
cardOverlayEnabled: true,
headerShown: false,
gestureEnabled: true,
headerTransparent: true,
gestureResponseDistance: { vertical: 300 },
}}
>
{(props) => <CurrentTrainListView {...props} />}
</Stack.Screen>
<Stack.Screen
name="AllTrainIDList"
options={{
...TransitionPresets.ModalPresentationIOS,
cardOverlayEnabled: true,
headerShown: false,
headerTransparent: true,
}}
>
{(props) => <AllTrainDiagramView {...props} />}
</Stack.Screen>
<Stack.Screen
name="howto"
options={{
...optionData,
}}
>
{(props) => <HowTo {...props} />}
</Stack.Screen>
</Stack.Navigator>
);
}

100
Top.js Normal file
View File

@@ -0,0 +1,100 @@
import React, { useEffect, useRef, useState } from "react";
import {
createStackNavigator,
TransitionPresets,
} from "@react-navigation/stack";
import { getStationList2 } from "./lib/getStationList2";
import Apps from "./Apps";
import TrainBase from "./trainbaseview";
import HowTo from "./howto";
import News from "./components/news.js";
import TrainMenu from "./components/trainMenu.js";
import FavoriteList from "./components/FavoriteList.js";
import { useFavoriteStation } from "./stateBox/useFavoriteStation";
import { optionData } from "./lib/stackOption.js";
import { useCurrentTrain } from "./stateBox/useCurrentTrain.js";
const Stack = createStackNavigator();
export const Top = ({ navigation }) => {
const webview = useRef();
const { favoriteStation, setFavoriteStation } = useFavoriteStation();
const { getCurrentTrain } = useCurrentTrain();
//地図用
const [mapsStationData, setMapsStationData] = useState(undefined);
useEffect(() => {
getStationList2().then(setMapsStationData);
}, []);
useEffect(() => {
const unsubscribe = navigation.addListener("tabLongPress", (e) => {
navigation.navigate("favoriteList");
});
return unsubscribe;
}, [navigation]);
return (
<Stack.Navigator>
<Stack.Screen
name="Apps"
options={{
headerShown: false,
gestureEnabled: true,
headerTransparent: true,
}}
>
{(props) => (
<Apps
{...props}
webview={webview}
stationData={mapsStationData}
getCurrentTrain={getCurrentTrain}
/>
)}
</Stack.Screen>
<Stack.Screen
name="trainbase"
options={{
title: "トレインビジョン",
gestureEnabled: true,
...TransitionPresets.SlideFromRightIOS,
}}
>
{(props) => <TrainBase {...props} />}
</Stack.Screen>
<Stack.Screen
name="howto"
options={{
...optionData,
}}
>
{(props) => <HowTo {...props} />}
</Stack.Screen>
<Stack.Screen name="news" options={optionData}>
{(props) => <News {...props} />}
</Stack.Screen>
<Stack.Screen name="trainMenu" options={optionData}>
{(props) => (
<TrainMenu
{...props}
webview={webview}
stationData={mapsStationData}
/>
)}
</Stack.Screen>
<Stack.Screen
name="favoriteList"
options={{ ...optionData, gestureEnabled: false }}
>
{(props) => (
<FavoriteList
{...props}
webview={webview}
stationData={mapsStationData}
/>
)}
</Stack.Screen>
</Stack.Navigator>
);
};

View File

@@ -1,7 +1,7 @@
import { ToastAndroid } from "react-native";
import * as Updates from "expo-updates";
export const UpdateAsync = () =>
export const UpdateAsync = () => {
Updates.checkForUpdateAsync()
.then((update) => {
if (!update.isAvailable) return;
@@ -34,3 +34,4 @@ export const UpdateAsync = () =>
.finally(() => {
return;
});
};

View File

@@ -3,8 +3,11 @@
"name": "JR四国運行状況",
"slug": "jrshikoku",
"privacy": "public",
"platforms": ["ios", "android"],
"version": "4.4",
"platforms": [
"ios",
"android"
],
"version": "4.6",
"orientation": "portrait",
"icon": "./assets/icon.png",
"splash": {
@@ -13,11 +16,14 @@
"backgroundColor": "#00b8ff"
},
"updates": {
"fallbackToCacheTimeout": 0
"fallbackToCacheTimeout": 0,
"url": "https://u.expo.dev/398abf60-57a7-11e9-970c-8f04356d08bf"
},
"assetBundlePatterns": ["**/*"],
"assetBundlePatterns": [
"**/*"
],
"ios": {
"buildNumber": "22",
"buildNumber": "31",
"supportsTablet": true,
"bundleIdentifier": "jrshikokuinfo.xprocess.hrkn",
"config": {
@@ -26,14 +32,24 @@
},
"android": {
"package": "jrshikokuinfo.xprocess.hrkn",
"versionCode": 16,
"permissions": ["ACCESS_FINE_LOCATION"],
"versionCode": 20,
"permissions": [
"ACCESS_FINE_LOCATION"
],
"googleServicesFile": "./google-services.json",
"config": {
"googleMaps": {
"apiKey": "AIzaSyAmFb-Yj033bXZWlSzNrfq_0jc1PgRrWcE"
}
}
},
"extra": {
"eas": {
"projectId": "398abf60-57a7-11e9-970c-8f04356d08bf"
}
},
"runtimeVersion": {
"policy": "sdkVersion"
}
}
}

1
assets/939-star.json Normal file

File diff suppressed because one or more lines are too long

BIN
assets/A.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 439 KiB

BIN
assets/B.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 405 KiB

View File

@@ -1,53 +1,53 @@
export default [
{"BetweenStation" : "高松~鬼無" , "Datas":[{"StationName":"香西" , "StationNumber":"Y01", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kozai.pdf" }]},
{"BetweenStation" : "端岡~鴨川" , "Datas":[{"StationName":"国分" , "StationNumber":"Y04", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kokubu.pdf" },{"StationName":"讃岐府中" , "StationNumber":"Y05", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/sanuki-fuchu.pdf"}]},
{"BetweenStation" : "鴨川~坂出" , "Datas":[{"StationName":"八十場" , "StationNumber":"Y07", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/yasoba.pdf" }]},
{"BetweenStation" : "丸亀~多度津" , "Datas":[{"StationName":"讃岐塩屋" , "StationNumber":"Y11", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/sanuki-shioya.pdf" }]},
{"BetweenStation" : "詫間~高瀬" , "Datas":[{"StationName":"みの" , "StationNumber":"Y15", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/mino.pdf" }]},
{"BetweenStation" : "高瀬~本山" , "Datas":[{"StationName":"比地大" , "StationNumber":"Y17", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/hijidai.pdf" }]},
{"BetweenStation" : "伊予寒川~伊予土居" , "Datas":[{"StationName":"赤星" , "StationNumber":"Y25", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/akaboshi.pdf" }]},
{"BetweenStation" : "石鎚山~伊予小松" , "Datas":[{"StationName":"伊予氷見" , "StationNumber":"Y33", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-himi.pdf" }]},
{"BetweenStation" : "伊予小松~壬生川" , "Datas":[{"StationName":"玉之江" , "StationNumber":"Y35", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tamanoe.pdf" }]},
{"BetweenStation" : "伊予北条~粟井" , "Datas":[{"StationName":"柳原" , "StationNumber":"Y49", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/yanagihara.pdf" }]},
{"BetweenStation" : "粟井~堀江" , "Datas":[{"StationName":"光洋台" , "StationNumber":"Y51", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/koyodai.pdf" }]},
{"BetweenStation" : "高松~栗林" , "Datas":[{"StationName":"昭和町" , "StationNumber":"T27", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/showacho.pdf" },{"StationName":"栗林公園北口" , "StationNumber":"T26", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/ritsurinkoen-kitaguchi.pdf"}]},
{"BetweenStation" : "栗林~屋島" , "Datas":[{"StationName":"木太町" , "StationNumber":"T24", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kitacho.pdf" }]},
{"BetweenStation" : "屋島~八栗口" , "Datas":[{"StationName":"古高松南" , "StationNumber":"T22", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/furutakamatsu-minami.pdf"}]},
{"BetweenStation" : "八栗口~志度" , "Datas":[{"StationName":"讃岐牟礼" , "StationNumber":"T20", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/sanuki-mure.pdf" }]},
{"BetweenStation" : "造田~讃岐津田" , "Datas":[{"StationName":"神前" , "StationNumber":"T16", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kanzaki.pdf" }]},
{"BetweenStation" : "板野~板東" , "Datas":[{"StationName":"阿波川端" , "StationNumber":"T06", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/awa-kawabata.pdf" }]},
{"BetweenStation" : "北伊予~伊予市" , "Datas":[{"StationName":"南伊予" , "StationNumber":"U02-1", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/minami-iyo.pdf" },{"StationName":"伊予横田" , "StationNumber":"U03", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-yokota.pdf" },{"StationName":"鳥ノ木" , "StationNumber":"U04", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/torinoki.pdf"}]},
{"BetweenStation" : "向井原~伊予中山" , "Datas":[{"StationName":"伊予大平" , "StationNumber":"U07", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-ohira.pdf" }]},
{"BetweenStation" : "内子~新谷" , "Datas":[{"StationName":"五十崎" , "StationNumber":"U11", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/ikazaki.pdf" },{"StationName":"喜多山" , "StationNumber":"U12", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kitayama.pdf"}]},
{"BetweenStation" : "伊予大洲~伊予平野" , "Datas":[{"StationName":"西大洲" , "StationNumber":"U15", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/nishi-ozu.pdf" }]},
{"BetweenStation" : "伊予石城~卯之町" , "Datas":[{"StationName":"上宇和" , "StationNumber":"U21", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kami-uwa.pdf" }]},
{"BetweenStation" : "伊予吉田~北宇和島" , "Datas":[{"StationName":"高光" , "StationNumber":"U26", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/takamitsu.pdf" }]},
{"BetweenStation" : "向井原~伊予上灘" , "Datas":[{"StationName":"高野川" , "StationNumber":"S07", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/konokawa.pdf" }]},
{"BetweenStation" : "伊予上灘~伊予長浜" , "Datas":[{"StationName":"下灘" , "StationNumber":"S09", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/shimonada.pdf" },{"StationName":"串" , "StationNumber":"S10", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kushi.pdf"},{"StationName":"喜多灘" , "StationNumber":"S11", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kitanada.pdf"}]},
{"BetweenStation" : "伊予長浜~伊予白滝" , "Datas":[{"StationName":"伊予出石" , "StationNumber":"S13", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-izushi.pdf" }]},
{"BetweenStation" : "伊予白滝~伊予大洲" , "Datas":[{"StationName":"八多喜" , "StationNumber":"S15", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/hataki.pdf" },{"StationName":"春賀" , "StationNumber":"S16", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/haruka.pdf"},{"StationName":"五郎" , "StationNumber":"S17", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/goro.pdf"}]},
{"BetweenStation" : "塩入~讃岐財田" , "Datas":[{"StationName":"黒川" , "StationNumber":"D17", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kurokawa.pdf" }]},
{"BetweenStation" : "三縄~阿波川口" , "Datas":[{"StationName":"祖谷口" , "StationNumber":"D24", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyaguchi.pdf" }]},
{"BetweenStation" : "大田口~大杉" , "Datas":[{"StationName":"土佐穴内" , "StationNumber":"D31", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tosa-ananai.pdf" }]},
{"BetweenStation" : "土佐北川~繁藤" , "Datas":[{"StationName":"角茂谷" , "StationNumber":"D34", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kakumodani.pdf" }]},
{"BetweenStation" : "土佐山田~後免" , "Datas":[{"StationName":"山田西町" , "StationNumber":"D38", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/yamadanishimachi.pdf" },{"StationName":"土佐長岡" , "StationNumber":"D39", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tosa-nagaoka.pdf"}]},
{"BetweenStation" : "土佐大津~土佐一宮" , "Datas":[{"StationName":"布師田" , "StationNumber":"D42", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/nunoshida.pdf" }]},
{"BetweenStation" : "高知~旭" , "Datas":[{"StationName":"入明" , "StationNumber":"K01", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iriake.pdf" },{"StationName":"円行寺口" , "StationNumber":"K02", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/engyojiguchi.pdf"}]},
{"BetweenStation" : "旭~朝倉" , "Datas":[{"StationName":"高知商業前" , "StationNumber":"K04", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kochi-shogyomae.pdf" }]},
{"BetweenStation" : "朝倉~伊野" , "Datas":[{"StationName":"枝川" , "StationNumber":"K06", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/edagawa.pdf" }]},
{"BetweenStation" : "伊野~日下" , "Datas":[{"StationName":"波川" , "StationNumber":"K08", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/hakawa.pdf" },{"StationName":"小村神社前" , "StationNumber":"K08-1", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/omurajinjamae.pdf"}]},
{"BetweenStation" : "日下~土佐加茂" , "Datas":[{"StationName":"岡花" , "StationNumber":"K10", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/okabana.pdf" }]},
{"BetweenStation" : "佐川~斗賀野" , "Datas":[{"StationName":"襟野々" , "StationNumber":"K14", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/erinono.pdf" }]},
{"BetweenStation" : "多ノ郷~須崎" , "Datas":[{"StationName":"大間" , "StationNumber":"K18", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/oma.pdf" }]},
{"BetweenStation" : "須崎~土佐久礼" , "Datas":[{"StationName":"土佐新荘" , "StationNumber":"K20", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tosa-shinjo.pdf" },{"StationName":"安和" , "StationNumber":"K21", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/awa.pdf"}]},
{"BetweenStation" : "影野~窪川" , "Datas":[{"StationName":"六反地" , "StationNumber":"K24", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/rokutanji.pdf" },{"StationName":"仁井田" , "StationNumber":"K25", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/niida.pdf"}]},
{"BetweenStation" : "蔵本~府中" , "Datas":[{"StationName":"鮎喰" , "StationNumber":"B03", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/akui.pdf" }]},
{"BetweenStation" : "石井~牛島" , "Datas":[{"StationName":"下浦" , "StationNumber":"B06", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/shimoura.pdf" }]},
{"BetweenStation" : "牛島~鴨島" , "Datas":[{"StationName":"麻植塚" , "StationNumber":"B08", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/oezuka.pdf" }]},
{"BetweenStation" : "鴨島~阿波川島" , "Datas":[{"StationName":"西麻植" , "StationNumber":"B10", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/nishi-oe.pdf" }]},
{"BetweenStation" : "山瀬~川田" , "Datas":[{"StationName":"阿波山川" , "StationNumber":"B14", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/awa-yamakawa.pdf" }]},
{"BetweenStation" : "貞光~江口" , "Datas":[{"StationName":"阿波半田" , "StationNumber":"B19", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/awa-handa.pdf" }]},
{"BetweenStation" : "江口~阿波加茂" , "Datas":[{"StationName":"三加茂" , "StationNumber":"B21", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/mikamo.pdf" }]},
{"BetweenStation" : "鳴門~池谷" , "Datas":[{"StationName":"撫養" , "StationNumber":"N09", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/muya.pdf"},{"StationName":"金比羅前" , "StationNumber":"N08", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kompiramae.pdf"},{"StationName":"教会前" , "StationNumber":"N07", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kyokaimae.pdf"},{"StationName":"立道" , "StationNumber":"N06", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tatsumichi.pdf"},{"StationName":"阿波大谷" , "StationNumber":"N05", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/awa-otani.pdf"}]}
export default [
{"BetweenStation" : "高松~鬼無" , "Datas":[{"StationName":"香西" , "StationNumber":"Y01", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kozai.pdf" }]},
{"BetweenStation" : "端岡~鴨川" , "Datas":[{"StationName":"国分" , "StationNumber":"Y04", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kokubu.pdf" },{"StationName":"讃岐府中" , "StationNumber":"Y05", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/sanuki-fuchu.pdf"}]},
{"BetweenStation" : "鴨川~坂出" , "Datas":[{"StationName":"八十場" , "StationNumber":"Y07", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/yasoba.pdf" }]},
{"BetweenStation" : "丸亀~多度津" , "Datas":[{"StationName":"讃岐塩屋" , "StationNumber":"Y11", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/sanuki-shioya.pdf" }]},
{"BetweenStation" : "詫間~高瀬" , "Datas":[{"StationName":"みの" , "StationNumber":"Y15", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/mino.pdf" }]},
{"BetweenStation" : "高瀬~本山" , "Datas":[{"StationName":"比地大" , "StationNumber":"Y17", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/hijidai.pdf" }]},
{"BetweenStation" : "伊予寒川~伊予土居" , "Datas":[{"StationName":"赤星" , "StationNumber":"Y25", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/akaboshi.pdf" }]},
{"BetweenStation" : "石鎚山~伊予小松" , "Datas":[{"StationName":"伊予氷見" , "StationNumber":"Y33", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-himi.pdf" }]},
{"BetweenStation" : "伊予小松~壬生川" , "Datas":[{"StationName":"玉之江" , "StationNumber":"Y35", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tamanoe.pdf" }]},
{"BetweenStation" : "伊予北条~粟井" , "Datas":[{"StationName":"柳原" , "StationNumber":"Y49", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/yanagihara.pdf" }]},
{"BetweenStation" : "粟井~堀江" , "Datas":[{"StationName":"光洋台" , "StationNumber":"Y51", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/koyodai.pdf" }]},
{"BetweenStation" : "高松~栗林" , "Datas":[{"StationName":"昭和町" , "StationNumber":"T27", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/showacho.pdf" },{"StationName":"栗林公園北口" , "StationNumber":"T26", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/ritsurinkoen-kitaguchi.pdf"}]},
{"BetweenStation" : "栗林~屋島" , "Datas":[{"StationName":"木太町" , "StationNumber":"T24", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kitacho.pdf" }]},
{"BetweenStation" : "屋島~八栗口" , "Datas":[{"StationName":"古高松南" , "StationNumber":"T22", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/furutakamatsu-minami.pdf"}]},
{"BetweenStation" : "八栗口~志度" , "Datas":[{"StationName":"讃岐牟礼" , "StationNumber":"T20", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/sanuki-mure.pdf" }]},
{"BetweenStation" : "造田~讃岐津田" , "Datas":[{"StationName":"神前" , "StationNumber":"T16", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kanzaki.pdf" }]},
{"BetweenStation" : "板野~板東" , "Datas":[{"StationName":"阿波川端" , "StationNumber":"T06", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/awa-kawabata.pdf" }]},
{"BetweenStation" : "北伊予~伊予市" , "Datas":[{"StationName":"南伊予" , "StationNumber":"U02-1", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/minami-iyo.pdf" },{"StationName":"伊予横田" , "StationNumber":"U03", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-yokota.pdf" },{"StationName":"鳥ノ木" , "StationNumber":"U04", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/torinoki.pdf"}]},
{"BetweenStation" : "向井原~伊予中山" , "Datas":[{"StationName":"伊予大平" , "StationNumber":"U07", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-ohira.pdf" }]},
{"BetweenStation" : "内子~新谷" , "Datas":[{"StationName":"五十崎" , "StationNumber":"U11", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/ikazaki.pdf" },{"StationName":"喜多山" , "StationNumber":"U12", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kitayama.pdf"}]},
{"BetweenStation" : "伊予大洲~伊予平野" , "Datas":[{"StationName":"西大洲" , "StationNumber":"U15", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/nishi-ozu.pdf" }]},
{"BetweenStation" : "伊予石城~卯之町" , "Datas":[{"StationName":"上宇和" , "StationNumber":"U21", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kami-uwa.pdf" }]},
{"BetweenStation" : "伊予吉田~北宇和島" , "Datas":[{"StationName":"高光" , "StationNumber":"U26", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/takamitsu.pdf" }]},
{"BetweenStation" : "向井原~伊予上灘" , "Datas":[{"StationName":"高野川" , "StationNumber":"S07", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/konokawa.pdf" }]},
{"BetweenStation" : "伊予上灘~伊予長浜" , "Datas":[{"StationName":"下灘" , "StationNumber":"S09", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/shimonada.pdf" },{"StationName":"串" , "StationNumber":"S10", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kushi.pdf"},{"StationName":"喜多灘" , "StationNumber":"S11", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kitanada.pdf"}]},
{"BetweenStation" : "伊予長浜~伊予白滝" , "Datas":[{"StationName":"伊予出石" , "StationNumber":"S13", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-izushi.pdf" }]},
{"BetweenStation" : "伊予白滝~伊予大洲" , "Datas":[{"StationName":"八多喜" , "StationNumber":"S15", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/hataki.pdf" },{"StationName":"春賀" , "StationNumber":"S16", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/haruka.pdf"},{"StationName":"五郎" , "StationNumber":"S17", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/goro.pdf"}]},
{"BetweenStation" : "塩入~讃岐財田" , "Datas":[{"StationName":"黒川" , "StationNumber":"D17", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kurokawa.pdf" }]},
{"BetweenStation" : "三縄~阿波川口" , "Datas":[{"StationName":"祖谷口" , "StationNumber":"D24", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyaguchi.pdf" }]},
{"BetweenStation" : "大田口~大杉" , "Datas":[{"StationName":"土佐穴内" , "StationNumber":"D31", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tosa-ananai.pdf" }]},
{"BetweenStation" : "土佐北川~繁藤" , "Datas":[{"StationName":"角茂谷" , "StationNumber":"D34", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kakumodani.pdf" }]},
{"BetweenStation" : "土佐山田~後免" , "Datas":[{"StationName":"山田西町" , "StationNumber":"D38", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/yamadanishimachi.pdf" },{"StationName":"土佐長岡" , "StationNumber":"D39", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tosa-nagaoka.pdf"}]},
{"BetweenStation" : "土佐大津~土佐一宮" , "Datas":[{"StationName":"布師田" , "StationNumber":"D42", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/nunoshida.pdf" }]},
{"BetweenStation" : "高知~旭" , "Datas":[{"StationName":"入明" , "StationNumber":"K01", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iriake.pdf" },{"StationName":"円行寺口" , "StationNumber":"K02", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/engyojiguchi.pdf"}]},
{"BetweenStation" : "旭~朝倉" , "Datas":[{"StationName":"高知商業前" , "StationNumber":"K04", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kochi-shogyomae.pdf" }]},
{"BetweenStation" : "朝倉~伊野" , "Datas":[{"StationName":"枝川" , "StationNumber":"K06", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/edagawa.pdf" }]},
{"BetweenStation" : "伊野~日下" , "Datas":[{"StationName":"波川" , "StationNumber":"K08", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/hakawa.pdf" },{"StationName":"小村神社前" , "StationNumber":"K08-1", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/omurajinjamae.pdf"}]},
{"BetweenStation" : "日下~土佐加茂" , "Datas":[{"StationName":"岡花" , "StationNumber":"K10", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/okabana.pdf" }]},
{"BetweenStation" : "佐川~斗賀野" , "Datas":[{"StationName":"襟野々" , "StationNumber":"K14", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/erinono.pdf" }]},
{"BetweenStation" : "多ノ郷~須崎" , "Datas":[{"StationName":"大間" , "StationNumber":"K18", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/oma.pdf" }]},
{"BetweenStation" : "須崎~土佐久礼" , "Datas":[{"StationName":"土佐新荘" , "StationNumber":"K20", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tosa-shinjo.pdf" },{"StationName":"安和" , "StationNumber":"K21", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/awa.pdf"}]},
{"BetweenStation" : "影野~窪川" , "Datas":[{"StationName":"六反地" , "StationNumber":"K24", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/rokutanji.pdf" },{"StationName":"仁井田" , "StationNumber":"K25", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/niida.pdf"}]},
{"BetweenStation" : "蔵本~府中" , "Datas":[{"StationName":"鮎喰" , "StationNumber":"B03", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/akui.pdf" }]},
{"BetweenStation" : "石井~牛島" , "Datas":[{"StationName":"下浦" , "StationNumber":"B06", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/shimoura.pdf" }]},
{"BetweenStation" : "牛島~鴨島" , "Datas":[{"StationName":"麻植塚" , "StationNumber":"B08", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/oezuka.pdf" }]},
{"BetweenStation" : "鴨島~阿波川島" , "Datas":[{"StationName":"西麻植" , "StationNumber":"B10", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/nishi-oe.pdf" }]},
{"BetweenStation" : "山瀬~川田" , "Datas":[{"StationName":"阿波山川" , "StationNumber":"B14", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/awa-yamakawa.pdf" }]},
{"BetweenStation" : "貞光~江口" , "Datas":[{"StationName":"阿波半田" , "StationNumber":"B19", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/awa-handa.pdf" }]},
{"BetweenStation" : "江口~阿波加茂" , "Datas":[{"StationName":"三加茂" , "StationNumber":"B21", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/mikamo.pdf" }]},
{"BetweenStation" : "鳴門~池谷" , "Datas":[{"StationName":"撫養" , "StationNumber":"N09", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/muya.pdf"},{"StationName":"金比羅前" , "StationNumber":"N08", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kompiramae.pdf"},{"StationName":"教会前" , "StationNumber":"N07", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kyokaimae.pdf"},{"StationName":"立道" , "StationNumber":"N06", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tatsumichi.pdf"},{"StationName":"阿波大谷" , "StationNumber":"N05", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/awa-otani.pdf"}]}
]

View File

@@ -1,29 +1,29 @@
export default [
{"Station_JP" : "多度津", "Station_EN" : "Tadotsu", "MyStation" : "0", "StationNumber" : "D12", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tadotsu.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.271088,133.756735", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/tadotsu/"},
{"Station_JP" : "金蔵寺", "Station_EN" : "Konzōji", "MyStation" : "0", "StationNumber" : "D13", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/konzoji.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.247861,133.777594", "JrHpUrl" : ""},
{"Station_JP" : "善通寺", "Station_EN" : "Zentsūji", "MyStation" : "1", "StationNumber" : "D14", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/zentsuji.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.229958,133.789141", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/zentsuji/"},
{"Station_JP" : "琴平", "Station_EN" : "Kotohira", "MyStation" : "2", "StationNumber" : "D15", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kotohira.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.191903,133.821295", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/kotohira/"},
{"Station_JP" : "塩入", "Station_EN" : "Shioiri", "MyStation" : "3", "StationNumber" : "D16", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/shioiri.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.156034,133.849974", "JrHpUrl" : ""},
{"Station_JP" : "讃岐財田", "Station_EN" : "Sanuki-Saida", "MyStation" : "4", "StationNumber" : "D18", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/sanuki-saida.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.117586,133.814181", "JrHpUrl" : ""},
{"Station_JP" : "坪尻", "Station_EN" : "Tsubojiri", "MyStation" : "5", "StationNumber" : "D19", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tsubojiri.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.054035,133.823675", "JrHpUrl" : ""},
{"Station_JP" : "箸蔵", "Station_EN" : "Hashikura", "MyStation" : "6", "StationNumber" : "D20", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/hashikura.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.040343,133.848761", "JrHpUrl" : ""},
{"Station_JP" : "佃", "Station_EN" : "Tsukuda", "MyStation" : "7", "StationNumber" : "D21", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tsukuda.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.032458,133.857363", "JrHpUrl" : ""},
{"Station_JP" : "阿波池田", "Station_EN" : "Awa-Ikeda", "MyStation" : "8", "StationNumber" : "D22", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/awa-ikeda.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.027177,133.804619", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/awaikeda/"},
{"Station_JP" : "三縄", "Station_EN" : "Minawa", "MyStation" : "9", "StationNumber" : "D23", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/minawa.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.006837,133.787427", "JrHpUrl" : ""},
{"Station_JP" : "阿波川口", "Station_EN" : "Awa-Kawaguchi", "MyStation" : "10", "StationNumber" : "D25", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/awa-kawaguchi.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.963705,133.754617", "JrHpUrl" : ""},
{"Station_JP" : "小歩危", "Station_EN" : "Koboke", "MyStation" : "11", "StationNumber" : "D26", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/koboke.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.923338,133.758747", "JrHpUrl" : ""},
{"Station_JP" : "大歩危", "Station_EN" : "Ōboke", "MyStation" : "12", "StationNumber" : "D27", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/oboke.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.876483,133.767298", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/oboke/"},
{"Station_JP" : "土佐岩原", "Station_EN" : "Tosa-Iwahara", "MyStation" : "13", "StationNumber" : "D28", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tosa-iwahara.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.822635,133.788204", "JrHpUrl" : ""},
{"Station_JP" : "豊永", "Station_EN" : "Toyonaga", "MyStation" : "14", "StationNumber" : "D29", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/toyonaga.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.796841,133.759716", "JrHpUrl" : ""},
{"Station_JP" : "大田口", "Station_EN" : "Ōtaguchi", "MyStation" : "15", "StationNumber" : "D30", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/otaguchi.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.785517,133.726602", "JrHpUrl" : ""},
{"Station_JP" : "大杉", "Station_EN" : "Ōsugi", "MyStation" : "16", "StationNumber" : "D32", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/osugi.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.760938,133.664483", "JrHpUrl" : ""},
{"Station_JP" : "土佐北川", "Station_EN" : "Tosa-Kitagawa", "MyStation" : "17", "StationNumber" : "D33", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tosa-kitagawa.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.714781,133.686312", "JrHpUrl" : ""},
{"Station_JP" : "繁藤", "Station_EN" : "Shigetō", "MyStation" : "18", "StationNumber" : "D35", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/shigeto.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.680386,133.6902" , "JrHpUrl" : ""},
{"Station_JP" : "新改", "Station_EN" : "Shingai", "MyStation" : "19", "StationNumber" : "D36", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/shingai.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.649629,133.695788", "JrHpUrl" : ""},
{"Station_JP" : "土佐山田", "Station_EN" : "Tosa-Yamada", "MyStation" : "20", "StationNumber" : "D37", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tosa-yamada.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.607099,133.684992", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/tosayamada/"},
{"Station_JP" : "後免", "Station_EN" : "Gomen", "MyStation" : "21", "StationNumber" : "D40", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/gomen.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.579234,133.645357", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/gomen/"},
{"Station_JP" : "土佐大津", "Station_EN" : "Tosa-Ōtsu", "MyStation" : "22", "StationNumber" : "D41", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tosa-otsu.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.576384,133.611446", "JrHpUrl" : ""},
{"Station_JP" : "土佐一宮", "Station_EN" : "Tosa-Ikku", "MyStation" : "23", "StationNumber" : "D43", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tosa-ikku.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.579247,133.576891", "JrHpUrl" : ""},
{"Station_JP" : "薊野", "Station_EN" : "Azōno", "MyStation" : "24", "StationNumber" : "D44", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/azono.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.578616,133.560692", "JrHpUrl" : ""},
{"Station_JP" : "高知", "Station_EN" : "Kōchi", "MyStation" : "25", "StationNumber" : "D45", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kochi.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.566525,133.543638", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/kochi/"}
export default [
{"Station_JP" : "多度津", "Station_EN" : "Tadotsu", "MyStation" : "0", "StationNumber" : "D12", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tadotsu.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.271088,133.756735", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/tadotsu/"},
{"Station_JP" : "金蔵寺", "Station_EN" : "Konzōji", "MyStation" : "0", "StationNumber" : "D13", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/konzoji.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.247861,133.777594", "JrHpUrl" : ""},
{"Station_JP" : "善通寺", "Station_EN" : "Zentsūji", "MyStation" : "1", "StationNumber" : "D14", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/zentsuji.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.229958,133.789141", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/zentsuji/"},
{"Station_JP" : "琴平", "Station_EN" : "Kotohira", "MyStation" : "2", "StationNumber" : "D15", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kotohira.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.191903,133.821295", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/kotohira/"},
{"Station_JP" : "塩入", "Station_EN" : "Shioiri", "MyStation" : "3", "StationNumber" : "D16", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/shioiri.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.156034,133.849974", "JrHpUrl" : ""},
{"Station_JP" : "讃岐財田", "Station_EN" : "Sanuki-Saida", "MyStation" : "4", "StationNumber" : "D18", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/sanuki-saida.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.117586,133.814181", "JrHpUrl" : ""},
{"Station_JP" : "坪尻", "Station_EN" : "Tsubojiri", "MyStation" : "5", "StationNumber" : "D19", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tsubojiri.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.054035,133.823675", "JrHpUrl" : ""},
{"Station_JP" : "箸蔵", "Station_EN" : "Hashikura", "MyStation" : "6", "StationNumber" : "D20", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/hashikura.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.040343,133.848761", "JrHpUrl" : ""},
{"Station_JP" : "佃", "Station_EN" : "Tsukuda", "MyStation" : "7", "StationNumber" : "D21", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tsukuda.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.032458,133.857363", "JrHpUrl" : ""},
{"Station_JP" : "阿波池田", "Station_EN" : "Awa-Ikeda", "MyStation" : "8", "StationNumber" : "D22", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/awa-ikeda.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.027177,133.804619", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/awaikeda/"},
{"Station_JP" : "三縄", "Station_EN" : "Minawa", "MyStation" : "9", "StationNumber" : "D23", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/minawa.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.006837,133.787427", "JrHpUrl" : ""},
{"Station_JP" : "阿波川口", "Station_EN" : "Awa-Kawaguchi", "MyStation" : "10", "StationNumber" : "D25", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/awa-kawaguchi.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.963705,133.754617", "JrHpUrl" : ""},
{"Station_JP" : "小歩危", "Station_EN" : "Koboke", "MyStation" : "11", "StationNumber" : "D26", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/koboke.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.923338,133.758747", "JrHpUrl" : ""},
{"Station_JP" : "大歩危", "Station_EN" : "Ōboke", "MyStation" : "12", "StationNumber" : "D27", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/oboke.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.876483,133.767298", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/oboke/"},
{"Station_JP" : "土佐岩原", "Station_EN" : "Tosa-Iwahara", "MyStation" : "13", "StationNumber" : "D28", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tosa-iwahara.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.822635,133.788204", "JrHpUrl" : ""},
{"Station_JP" : "豊永", "Station_EN" : "Toyonaga", "MyStation" : "14", "StationNumber" : "D29", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/toyonaga.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.796841,133.759716", "JrHpUrl" : ""},
{"Station_JP" : "大田口", "Station_EN" : "Ōtaguchi", "MyStation" : "15", "StationNumber" : "D30", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/otaguchi.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.785517,133.726602", "JrHpUrl" : ""},
{"Station_JP" : "大杉", "Station_EN" : "Ōsugi", "MyStation" : "16", "StationNumber" : "D32", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/osugi.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.760938,133.664483", "JrHpUrl" : ""},
{"Station_JP" : "土佐北川", "Station_EN" : "Tosa-Kitagawa", "MyStation" : "17", "StationNumber" : "D33", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tosa-kitagawa.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.714781,133.686312", "JrHpUrl" : ""},
{"Station_JP" : "繁藤", "Station_EN" : "Shigetō", "MyStation" : "18", "StationNumber" : "D35", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/shigeto.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.680386,133.6902" , "JrHpUrl" : ""},
{"Station_JP" : "新改", "Station_EN" : "Shingai", "MyStation" : "19", "StationNumber" : "D36", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/shingai.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.649629,133.695788", "JrHpUrl" : ""},
{"Station_JP" : "土佐山田", "Station_EN" : "Tosa-Yamada", "MyStation" : "20", "StationNumber" : "D37", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tosa-yamada.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.607099,133.684992", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/tosayamada/"},
{"Station_JP" : "後免", "Station_EN" : "Gomen", "MyStation" : "21", "StationNumber" : "D40", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/gomen.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.579234,133.645357", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/gomen/"},
{"Station_JP" : "土佐大津", "Station_EN" : "Tosa-Ōtsu", "MyStation" : "22", "StationNumber" : "D41", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tosa-otsu.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.576384,133.611446", "JrHpUrl" : ""},
{"Station_JP" : "土佐一宮", "Station_EN" : "Tosa-Ikku", "MyStation" : "23", "StationNumber" : "D43", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tosa-ikku.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.579247,133.576891", "JrHpUrl" : ""},
{"Station_JP" : "薊野", "Station_EN" : "Azōno", "MyStation" : "24", "StationNumber" : "D44", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/azono.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.578616,133.560692", "JrHpUrl" : ""},
{"Station_JP" : "高知", "Station_EN" : "Kōchi", "MyStation" : "25", "StationNumber" : "D45", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kochi.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.566525,133.543638", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/kochi/"}
]

View File

@@ -1,17 +1,17 @@
export default [
{"Station_JP" : "高知", "Station_EN" : "Kōchi", "MyStation" : "0", "StationNumber" : "K00", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kochi.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.566525,133.543638", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/kochi/"},
{"Station_JP" : "旭", "Station_EN" : "Asahi", "MyStation" : "0", "StationNumber" : "K03", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/asahi.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.558853,133.508817", "JrHpUrl" : ""},
{"Station_JP" : "朝倉", "Station_EN" : "Asakura", "MyStation" : "1", "StationNumber" : "K05", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/asakura.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.551389,133.485354", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/asakura/"},
{"Station_JP" : "伊野", "Station_EN" : "Ino", "MyStation" : "2", "StationNumber" : "K07", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/ino.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.547505,133.430131", "JrHpUrl" : ""},
{"Station_JP" : "日下", "Station_EN" : "Kusaka", "MyStation" : "3", "StationNumber" : "K09", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kusaka.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.53338,133.371236" , "JrHpUrl" : ""},
{"Station_JP" : "土佐加茂", "Station_EN" : "Tosa-Kamo", "MyStation" : "4", "StationNumber" : "K11", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tosa-kamo.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.523569,133.321135", "JrHpUrl" : ""},
{"Station_JP" : "西佐川", "Station_EN" : "Nishi-Sakawa", "MyStation" : "5", "StationNumber" : "K12", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/nishi-sakawa.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.512623,133.286508", "JrHpUrl" : ""},
{"Station_JP" : "佐川", "Station_EN" : "Sakawa", "MyStation" : "6", "StationNumber" : "K13", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/sakawa.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.500105,133.292438", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/sakawa/"},
{"Station_JP" : "斗賀野", "Station_EN" : "Togano", "MyStation" : "7", "StationNumber" : "K15", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/togano.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.475415,133.286372", "JrHpUrl" : ""},
{"Station_JP" : "吾桑", "Station_EN" : "Asō", "MyStation" : "8", "StationNumber" : "K16", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/aso.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.430181,133.295638", "JrHpUrl" : ""},
{"Station_JP" : "多ノ郷", "Station_EN" : "Ōnogō", "MyStation" : "9", "StationNumber" : "K17", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/onogo.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.410727,133.294630", "JrHpUrl" : ""},
{"Station_JP" : "須崎", "Station_EN" : "Susaki", "MyStation" : "10", "StationNumber" : "K19", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/susaki.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.392624,133.293189", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/susaki/"},
{"Station_JP" : "土佐久礼", "Station_EN" : "Tosa-Kure", "MyStation" : "11", "StationNumber" : "K22", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tosa-kure.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.329028,133.226483", "JrHpUrl" : ""},
{"Station_JP" : "影野", "Station_EN" : "Kageno", "MyStation" : "12", "StationNumber" : "K23", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kageno.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.275882,133.17358" , "JrHpUrl" : ""},
{"Station_JP" : "窪川", "Station_EN" : "Kubokawa", "MyStation" : "13", "StationNumber" : "K26", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kubokawa.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.212436,133.13716" , "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/kubokawa/"}
export default [
{"Station_JP" : "高知", "Station_EN" : "Kōchi", "MyStation" : "0", "StationNumber" : "K00", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kochi.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.566525,133.543638", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/kochi/"},
{"Station_JP" : "旭", "Station_EN" : "Asahi", "MyStation" : "0", "StationNumber" : "K03", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/asahi.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.558853,133.508817", "JrHpUrl" : ""},
{"Station_JP" : "朝倉", "Station_EN" : "Asakura", "MyStation" : "1", "StationNumber" : "K05", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/asakura.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.551389,133.485354", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/asakura/"},
{"Station_JP" : "伊野", "Station_EN" : "Ino", "MyStation" : "2", "StationNumber" : "K07", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/ino.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.547505,133.430131", "JrHpUrl" : ""},
{"Station_JP" : "日下", "Station_EN" : "Kusaka", "MyStation" : "3", "StationNumber" : "K09", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kusaka.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.53338,133.371236" , "JrHpUrl" : ""},
{"Station_JP" : "土佐加茂", "Station_EN" : "Tosa-Kamo", "MyStation" : "4", "StationNumber" : "K11", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tosa-kamo.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.523569,133.321135", "JrHpUrl" : ""},
{"Station_JP" : "西佐川", "Station_EN" : "Nishi-Sakawa", "MyStation" : "5", "StationNumber" : "K12", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/nishi-sakawa.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.512623,133.286508", "JrHpUrl" : ""},
{"Station_JP" : "佐川", "Station_EN" : "Sakawa", "MyStation" : "6", "StationNumber" : "K13", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/sakawa.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.500105,133.292438", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/sakawa/"},
{"Station_JP" : "斗賀野", "Station_EN" : "Togano", "MyStation" : "7", "StationNumber" : "K15", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/togano.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.475415,133.286372", "JrHpUrl" : ""},
{"Station_JP" : "吾桑", "Station_EN" : "Asō", "MyStation" : "8", "StationNumber" : "K16", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/aso.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.430181,133.295638", "JrHpUrl" : ""},
{"Station_JP" : "多ノ郷", "Station_EN" : "Ōnogō", "MyStation" : "9", "StationNumber" : "K17", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/onogo.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.410727,133.294630", "JrHpUrl" : ""},
{"Station_JP" : "須崎", "Station_EN" : "Susaki", "MyStation" : "10", "StationNumber" : "K19", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/susaki.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.392624,133.293189", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/susaki/"},
{"Station_JP" : "土佐久礼", "Station_EN" : "Tosa-Kure", "MyStation" : "11", "StationNumber" : "K22", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tosa-kure.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.329028,133.226483", "JrHpUrl" : ""},
{"Station_JP" : "影野", "Station_EN" : "Kageno", "MyStation" : "12", "StationNumber" : "K23", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kageno.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.275882,133.17358" , "JrHpUrl" : ""},
{"Station_JP" : "窪川", "Station_EN" : "Kubokawa", "MyStation" : "13", "StationNumber" : "K26", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kubokawa.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.212436,133.13716" , "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/kubokawa/"}
]

View File

@@ -1,24 +1,24 @@
export default [
{"Station_JP" : "高松", "Station_EN" : "Takamatsu", "MyStation" : "0", "StationNumber" : "T28", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/takamatsu.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.350682,134.046938", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/takamatsu/"},
{"Station_JP" : "栗林", "Station_EN" : "Ritsurin", "MyStation" : "0", "StationNumber" : "T25", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/ritsurin.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.332203,134.053588", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/ritsurin/"},
{"Station_JP" : "屋島", "Station_EN" : "Yashima", "MyStation" : "1", "StationNumber" : "T23", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/yashima.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.336655,134.109102", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/yashima/"},
{"Station_JP" : "八栗口", "Station_EN" : "Yakuriguchi", "MyStation" : "2", "StationNumber" : "T21", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/yakuriguchi.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.339097,134.136488", "JrHpUrl" : ""},
{"Station_JP" : "志度", "Station_EN" : "Shido", "MyStation" : "3", "StationNumber" : "T19", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/shido.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.321624,134.1728" , "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/shido/"},
{"Station_JP" : "オレンジタウン", "Station_EN" : "Orange-Town", "MyStation" : "4", "StationNumber" : "T18", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/orange-town.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.301827,134.180946", "JrHpUrl" : ""},
{"Station_JP" : "造田", "Station_EN" : "Zōda", "MyStation" : "5", "StationNumber" : "T17", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/zoda.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.282822,134.185946", "JrHpUrl" : ""},
{"Station_JP" : "讃岐津田", "Station_EN" : "Sanuki-Tsuda", "MyStation" : "6", "StationNumber" : "T15", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/sanuki-tsuda.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.288442,134.248154", "JrHpUrl" : ""},
{"Station_JP" : "鶴羽", "Station_EN" : "Tsuruwa", "MyStation" : "7", "StationNumber" : "T14", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tsuruwa.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.280008,134.273842", "JrHpUrl" : ""},
{"Station_JP" : "丹生", "Station_EN" : "Nibu", "MyStation" : "8", "StationNumber" : "T13", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/nibu.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.254508,134.301487", "JrHpUrl" : ""},
{"Station_JP" : "三本松", "Station_EN" : "Sambommatsu", "MyStation" : "9", "StationNumber" : "T12", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/sambommatsu.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.251538,134.334473", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/sanbonmatsu/"},
{"Station_JP" : "讃岐白鳥", "Station_EN" : "Sanuki-Shirotori", "MyStation" : "10", "StationNumber" : "T11", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/sanuki-shirotori.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.243642,134.366203", "JrHpUrl" : ""},
{"Station_JP" : "引田", "Station_EN" : "Hiketa", "MyStation" : "11", "StationNumber" : "T10", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/hiketa.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.224467,134.402083", "JrHpUrl" : ""},
{"Station_JP" : "讃岐相生", "Station_EN" : "Sanuki-Aioi", "MyStation" : "12", "StationNumber" : "T09", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/sanuki-aioi.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.211994,134.424534", "JrHpUrl" : ""},
{"Station_JP" : "阿波大宮", "Station_EN" : "Awa-Ōmiya", "MyStation" : "13", "StationNumber" : "T08", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/awa-omiya.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.17859,134.448947" , "JrHpUrl" : ""},
{"Station_JP" : "板野", "Station_EN" : "Itano", "MyStation" : "14", "StationNumber" : "T07", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/itano.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.142193,134.46597" , "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/itano/"},
{"Station_JP" : "板東", "Station_EN" : "Bandō", "MyStation" : "15", "StationNumber" : "T05", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/bando.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.155432,134.506866", "JrHpUrl" : ""},
{"Station_JP" : "池谷", "Station_EN" : "Ikenotani", "MyStation" : "16", "StationNumber" : "T04", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/ikenotani.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.15293,134.528905" , "JrHpUrl" : ""},
{"Station_JP" : "勝瑞", "Station_EN" : "Shōzui", "MyStation" : "17", "StationNumber" : "T03", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/shozui.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.128644,134.528267", "JrHpUrl" : ""},
{"Station_JP" : "吉成", "Station_EN" : "Yoshinari", "MyStation" : "18", "StationNumber" : "T02", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/yoshinari.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.118511,134.530745", "JrHpUrl" : ""},
{"Station_JP" : "佐古", "Station_EN" : "Sako", "MyStation" : "19", "StationNumber" : "T01", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/sako.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.080616,134.538576", "JrHpUrl" : ""},
{"Station_JP" : "徳島", "Station_EN" : "Tokushima", "MyStation" : "20", "StationNumber" : "T00", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tokushima.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.074642,134.550764", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/tokushima/"}
]
export default [
{"Station_JP" : "高松", "Station_EN" : "Takamatsu", "MyStation" : "0", "StationNumber" : "T28", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/takamatsu.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.350682,134.046938", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/takamatsu/"},
{"Station_JP" : "栗林", "Station_EN" : "Ritsurin", "MyStation" : "0", "StationNumber" : "T25", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/ritsurin.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.332203,134.053588", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/ritsurin/"},
{"Station_JP" : "屋島", "Station_EN" : "Yashima", "MyStation" : "1", "StationNumber" : "T23", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/yashima.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.336655,134.109102", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/yashima/"},
{"Station_JP" : "八栗口", "Station_EN" : "Yakuriguchi", "MyStation" : "2", "StationNumber" : "T21", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/yakuriguchi.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.339097,134.136488", "JrHpUrl" : ""},
{"Station_JP" : "志度", "Station_EN" : "Shido", "MyStation" : "3", "StationNumber" : "T19", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/shido.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.321624,134.1728" , "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/shido/"},
{"Station_JP" : "オレンジタウン", "Station_EN" : "Orange-Town", "MyStation" : "4", "StationNumber" : "T18", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/orange-town.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.301827,134.180946", "JrHpUrl" : ""},
{"Station_JP" : "造田", "Station_EN" : "Zōda", "MyStation" : "5", "StationNumber" : "T17", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/zoda.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.282822,134.185946", "JrHpUrl" : ""},
{"Station_JP" : "讃岐津田", "Station_EN" : "Sanuki-Tsuda", "MyStation" : "6", "StationNumber" : "T15", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/sanuki-tsuda.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.288442,134.248154", "JrHpUrl" : ""},
{"Station_JP" : "鶴羽", "Station_EN" : "Tsuruwa", "MyStation" : "7", "StationNumber" : "T14", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tsuruwa.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.280008,134.273842", "JrHpUrl" : ""},
{"Station_JP" : "丹生", "Station_EN" : "Nibu", "MyStation" : "8", "StationNumber" : "T13", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/nibu.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.254508,134.301487", "JrHpUrl" : ""},
{"Station_JP" : "三本松", "Station_EN" : "Sambommatsu", "MyStation" : "9", "StationNumber" : "T12", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/sambommatsu.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.251538,134.334473", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/sanbonmatsu/"},
{"Station_JP" : "讃岐白鳥", "Station_EN" : "Sanuki-Shirotori", "MyStation" : "10", "StationNumber" : "T11", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/sanuki-shirotori.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.243642,134.366203", "JrHpUrl" : ""},
{"Station_JP" : "引田", "Station_EN" : "Hiketa", "MyStation" : "11", "StationNumber" : "T10", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/hiketa.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.224467,134.402083", "JrHpUrl" : ""},
{"Station_JP" : "讃岐相生", "Station_EN" : "Sanuki-Aioi", "MyStation" : "12", "StationNumber" : "T09", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/sanuki-aioi.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.211994,134.424534", "JrHpUrl" : ""},
{"Station_JP" : "阿波大宮", "Station_EN" : "Awa-Ōmiya", "MyStation" : "13", "StationNumber" : "T08", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/awa-omiya.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.17859,134.448947" , "JrHpUrl" : ""},
{"Station_JP" : "板野", "Station_EN" : "Itano", "MyStation" : "14", "StationNumber" : "T07", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/itano.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.142193,134.46597" , "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/itano/"},
{"Station_JP" : "板東", "Station_EN" : "Bandō", "MyStation" : "15", "StationNumber" : "T05", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/bando.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.155432,134.506866", "JrHpUrl" : ""},
{"Station_JP" : "池谷", "Station_EN" : "Ikenotani", "MyStation" : "16", "StationNumber" : "T04", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/ikenotani.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.15293,134.528905" , "JrHpUrl" : ""},
{"Station_JP" : "勝瑞", "Station_EN" : "Shōzui", "MyStation" : "17", "StationNumber" : "T03", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/shozui.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.128644,134.528267", "JrHpUrl" : ""},
{"Station_JP" : "吉成", "Station_EN" : "Yoshinari", "MyStation" : "18", "StationNumber" : "T02", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/yoshinari.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.118511,134.530745", "JrHpUrl" : ""},
{"Station_JP" : "佐古", "Station_EN" : "Sako", "MyStation" : "19", "StationNumber" : "T01", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/sako.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.080616,134.538576", "JrHpUrl" : ""},
{"Station_JP" : "徳島", "Station_EN" : "Tokushima", "MyStation" : "20", "StationNumber" : "T00", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tokushima.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.074642,134.550764", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/tokushima/"}
]

View File

@@ -0,0 +1,11 @@
export default {
Y: "#F5AC13",
U: "#F5AC13",
S: "#9AA7D7",
D: "#DC4586",
K: "#DC4586",
B: "#366481",
N: "#881F61",
T: "#87CA3B",
M: "#0071be",
};

View File

@@ -1,5 +1,5 @@
export default [
{"Station_JP" : "鳴門", "Station_EN" : "Naruto" , "MyStation" : "0", "StationNumber" : "N10", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/naruto.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.17925,134.608536", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/naruto/"},
{"Station_JP" : "池谷", "Station_EN" : "Ikenotani", "MyStation" : "0", "StationNumber" : "N04", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/ikenotani.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.15293,134.528905" , "JrHpUrl" : ""}
]
export default [
{"Station_JP" : "鳴門", "Station_EN" : "Naruto" , "MyStation" : "0", "StationNumber" : "N10", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/naruto.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.17925,134.608536", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/naruto/"},
{"Station_JP" : "池谷", "Station_EN" : "Ikenotani", "MyStation" : "0", "StationNumber" : "N04", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/ikenotani.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.15293,134.528905" , "JrHpUrl" : ""}
]

View File

@@ -1,4 +1,4 @@
export default [
{"Station_JP" : "児島", "Station_EN" : "Kojima", "MyStation" : "0", "StationNumber" : " ", "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"},
{"Station_JP" : "宇多津", "Station_EN" : "Utazu", "MyStation" : "0", "StationNumber" : "Y09", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/utazu.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.306379,133.813784", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/utazu/"}
export default [
{"Station_JP" : "児島", "Station_EN" : "Kojima", "MyStation" : "0", "StationNumber" : " ", "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"},
{"Station_JP" : "宇多津", "Station_EN" : "Utazu", "MyStation" : "0", "StationNumber" : "Y09", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/utazu.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.306379,133.813784", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/utazu/"}
]

View File

@@ -1,21 +1,21 @@
export default [
{"Station_JP" : "徳島", "Station_EN" : "Tokushima", "MyStation" : "0", "StationNumber" : "T00", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tokushima.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.074642,134.550764", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/tokushima/"},
{"Station_JP" : "佐古", "Station_EN" : "Sako", "MyStation" : "0", "StationNumber" : "B01", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/sako.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.080616,134.538576", "JrHpUrl" : ""},
{"Station_JP" : "蔵本", "Station_EN" : "Kuramoto", "MyStation" : "1", "StationNumber" : "B02", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kuramoto.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.079332,134.518705", "JrHpUrl" : ""},
{"Station_JP" : "府中", "Station_EN" : "Kō", "MyStation" : "2", "StationNumber" : "B04", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/ko.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.074134,134.482939", "JrHpUrl" : ""},
{"Station_JP" : "石井", "Station_EN" : "Ishii", "MyStation" : "3", "StationNumber" : "B05", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/ishii.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.070188,134.444343", "JrHpUrl" : ""},
{"Station_JP" : "牛島", "Station_EN" : "Ushinoshima", "MyStation" : "4", "StationNumber" : "B07", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/ushinoshima.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.076709,134.397553", "JrHpUrl" : ""},
{"Station_JP" : "鴨島", "Station_EN" : "Kamojima", "MyStation" : "5", "StationNumber" : "B09", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kamojima.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.073615,134.356559", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/kamojima/"},
{"Station_JP" : "阿波川島", "Station_EN" : "Awa-Kawashima", "MyStation" : "6", "StationNumber" : "B11", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/awa-kawashima.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.061857,134.320768", "JrHpUrl" : ""},
{"Station_JP" : "学", "Station_EN" : "Gaku", "MyStation" : "7", "StationNumber" : "B12", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/gaku.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.057766,134.286411", "JrHpUrl" : ""},
{"Station_JP" : "山瀬", "Station_EN" : "Yamase", "MyStation" : "8", "StationNumber" : "B13", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/yamase.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.060226,134.256297", "JrHpUrl" : ""},
{"Station_JP" : "川田", "Station_EN" : "Kawata", "MyStation" : "9", "StationNumber" : "B15", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kawata.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.061533,134.204329", "JrHpUrl" : ""},
{"Station_JP" : "穴吹", "Station_EN" : "Anabuki", "MyStation" : "10", "StationNumber" : "B16", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/anabuki.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.05615,134.163064" , "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/anabuki/"},
{"Station_JP" : "小島", "Station_EN" : "Oshima", "MyStation" : "11", "StationNumber" : "B17", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/oshima.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.050665,134.106521", "JrHpUrl" : ""},
{"Station_JP" : "貞光", "Station_EN" : "Sadamitsu", "MyStation" : "12", "StationNumber" : "B18", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/sadamitsu.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.039354,134.058774", "JrHpUrl" : ""},
{"Station_JP" : "江口", "Station_EN" : "Eguchi", "MyStation" : "13", "StationNumber" : "B20", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/eguchi.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.037364,133.973229", "JrHpUrl" : ""},
{"Station_JP" : "阿波加茂", "Station_EN" : "Awa-Kamo", "MyStation" : "14", "StationNumber" : "B22", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/awa-kamo.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.037063,133.926505", "JrHpUrl" : ""},
{"Station_JP" : "辻", "Station_EN" : "Tsuji", "MyStation" : "15", "StationNumber" : "B23", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tsuji.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.028992,133.873234", "JrHpUrl" : ""},
{"Station_JP" : "佃", "Station_EN" : "Tsukuda", "MyStation" : "16", "StationNumber" : "B24", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tsukuda.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.032458,133.857363", "JrHpUrl" : ""},
{"Station_JP" : "阿波池田", "Station_EN" : "Awa-Ikeda", "MyStation" : "17", "StationNumber" : "B25", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/awa-ikeda.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.027177,133.804619", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/awaikeda/"}
]
export default [
{"Station_JP" : "徳島", "Station_EN" : "Tokushima", "MyStation" : "0", "StationNumber" : "T00", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tokushima.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.074642,134.550764", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/tokushima/"},
{"Station_JP" : "佐古", "Station_EN" : "Sako", "MyStation" : "0", "StationNumber" : "B01", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/sako.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.080616,134.538576", "JrHpUrl" : ""},
{"Station_JP" : "蔵本", "Station_EN" : "Kuramoto", "MyStation" : "1", "StationNumber" : "B02", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kuramoto.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.079332,134.518705", "JrHpUrl" : ""},
{"Station_JP" : "府中", "Station_EN" : "Kō", "MyStation" : "2", "StationNumber" : "B04", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/ko.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.074134,134.482939", "JrHpUrl" : ""},
{"Station_JP" : "石井", "Station_EN" : "Ishii", "MyStation" : "3", "StationNumber" : "B05", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/ishii.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.070188,134.444343", "JrHpUrl" : ""},
{"Station_JP" : "牛島", "Station_EN" : "Ushinoshima", "MyStation" : "4", "StationNumber" : "B07", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/ushinoshima.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.076709,134.397553", "JrHpUrl" : ""},
{"Station_JP" : "鴨島", "Station_EN" : "Kamojima", "MyStation" : "5", "StationNumber" : "B09", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kamojima.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.073615,134.356559", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/kamojima/"},
{"Station_JP" : "阿波川島", "Station_EN" : "Awa-Kawashima", "MyStation" : "6", "StationNumber" : "B11", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/awa-kawashima.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.061857,134.320768", "JrHpUrl" : ""},
{"Station_JP" : "学", "Station_EN" : "Gaku", "MyStation" : "7", "StationNumber" : "B12", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/gaku.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.057766,134.286411", "JrHpUrl" : ""},
{"Station_JP" : "山瀬", "Station_EN" : "Yamase", "MyStation" : "8", "StationNumber" : "B13", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/yamase.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.060226,134.256297", "JrHpUrl" : ""},
{"Station_JP" : "川田", "Station_EN" : "Kawata", "MyStation" : "9", "StationNumber" : "B15", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kawata.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.061533,134.204329", "JrHpUrl" : ""},
{"Station_JP" : "穴吹", "Station_EN" : "Anabuki", "MyStation" : "10", "StationNumber" : "B16", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/anabuki.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.05615,134.163064" , "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/anabuki/"},
{"Station_JP" : "小島", "Station_EN" : "Oshima", "MyStation" : "11", "StationNumber" : "B17", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/oshima.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.050665,134.106521", "JrHpUrl" : ""},
{"Station_JP" : "貞光", "Station_EN" : "Sadamitsu", "MyStation" : "12", "StationNumber" : "B18", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/sadamitsu.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.039354,134.058774", "JrHpUrl" : ""},
{"Station_JP" : "江口", "Station_EN" : "Eguchi", "MyStation" : "13", "StationNumber" : "B20", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/eguchi.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.037364,133.973229", "JrHpUrl" : ""},
{"Station_JP" : "阿波加茂", "Station_EN" : "Awa-Kamo", "MyStation" : "14", "StationNumber" : "B22", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/awa-kamo.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.037063,133.926505", "JrHpUrl" : ""},
{"Station_JP" : "辻", "Station_EN" : "Tsuji", "MyStation" : "15", "StationNumber" : "B23", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tsuji.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.028992,133.873234", "JrHpUrl" : ""},
{"Station_JP" : "佃", "Station_EN" : "Tsukuda", "MyStation" : "16", "StationNumber" : "B24", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tsukuda.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.032458,133.857363", "JrHpUrl" : ""},
{"Station_JP" : "阿波池田", "Station_EN" : "Awa-Ikeda", "MyStation" : "17", "StationNumber" : "B25", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/awa-ikeda.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.027177,133.804619", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/awaikeda/"}
]

File diff suppressed because it is too large Load Diff

View File

@@ -1,238 +1,238 @@
export default [
{"Station_JP" : "高知商業前", "Station_EN" : "Kōchi-Shōgyōmae" },
{"Station_JP" : "古高松南", "Station_EN" : "Furutakamatsu-Minami" },
{"Station_JP" : "高松", "Station_EN" : "Takamatsu" },
{"Station_JP" : "香西", "Station_EN" : "Kōzai" },
{"Station_JP" : "鬼無", "Station_EN" : "Kinashi" },
{"Station_JP" : "端岡", "Station_EN" : "Hashioka" },
{"Station_JP" : "国分", "Station_EN" : "Kokubu" },
{"Station_JP" : "讃岐府中", "Station_EN" : "Sanuki-Fuchū" },
{"Station_JP" : "鴨川", "Station_EN" : "Kamogawa" },
{"Station_JP" : "八十場", "Station_EN" : "Yasoba" },
{"Station_JP" : "坂出", "Station_EN" : "Sakaide" },
{"Station_JP" : "宇多津", "Station_EN" : "Utazu" },
{"Station_JP" : "丸亀", "Station_EN" : "Marugame" },
{"Station_JP" : "讃岐塩屋", "Station_EN" : "Sanuki-Shioya" },
{"Station_JP" : "多度津", "Station_EN" : "Tadotsu" },
{"Station_JP" : "海岸寺", "Station_EN" : "Kaiganji" },
{"Station_JP" : "詫間", "Station_EN" : "Takuma" },
{"Station_JP" : "みの", "Station_EN" : "Mino" },
{"Station_JP" : "高瀬", "Station_EN" : "Takase" },
{"Station_JP" : "比地大", "Station_EN" : "Hijidai" },
{"Station_JP" : "本山", "Station_EN" : "Motoyama" },
{"Station_JP" : "観音寺", "Station_EN" : "Kan-onji" },
{"Station_JP" : "豊浜", "Station_EN" : "Toyohama" },
{"Station_JP" : "箕浦", "Station_EN" : "Minoura" },
{"Station_JP" : "川之江", "Station_EN" : "Kawanoe" },
{"Station_JP" : "伊予三島", "Station_EN" : "Iyo-Mishima" },
{"Station_JP" : "伊予寒川", "Station_EN" : "Iyo-Sangawa" },
{"Station_JP" : "赤星", "Station_EN" : "Akaboshi" },
{"Station_JP" : "伊予土居", "Station_EN" : "Iyo-Doi" },
{"Station_JP" : "関川", "Station_EN" : "Sekigawa" },
{"Station_JP" : "多喜浜", "Station_EN" : "Takihama" },
{"Station_JP" : "新居浜", "Station_EN" : "Niihama" },
{"Station_JP" : "中萩", "Station_EN" : "Nakahagi" },
{"Station_JP" : "伊予西条", "Station_EN" : "Iyo-Saijo" },
{"Station_JP" : "石鎚山", "Station_EN" : "Ishizuchiyama" },
{"Station_JP" : "伊予氷見", "Station_EN" : "Iyo-Himi" },
{"Station_JP" : "伊予小松", "Station_EN" : "Iyo-Komatsu" },
{"Station_JP" : "玉之江", "Station_EN" : "Tamanoe" },
{"Station_JP" : "壬生川", "Station_EN" : "Nyūgawa" },
{"Station_JP" : "伊予三芳", "Station_EN" : "Iyo-Miyoshi" },
{"Station_JP" : "伊予桜井", "Station_EN" : "Iyo-Sakurai" },
{"Station_JP" : "伊予富田", "Station_EN" : "Iyo-Tomita" },
{"Station_JP" : "今治", "Station_EN" : "Imabari" },
{"Station_JP" : "波止浜", "Station_EN" : "Hashihama" },
{"Station_JP" : "波方", "Station_EN" : "Namikata" },
{"Station_JP" : "大西", "Station_EN" : "Ōnishi" },
{"Station_JP" : "伊予亀岡", "Station_EN" : "Iyo-kameoka" },
{"Station_JP" : "菊間", "Station_EN" : "Kikuma" },
{"Station_JP" : "浅海", "Station_EN" : "Asanami" },
{"Station_JP" : "大浦", "Station_EN" : "Ōura" },
{"Station_JP" : "伊予北条", "Station_EN" : "Iyo-Hōjō" },
{"Station_JP" : "柳原", "Station_EN" : "Yanagihara" },
{"Station_JP" : "粟井", "Station_EN" : "Awai" },
{"Station_JP" : "光洋台", "Station_EN" : "Kōyōdai" },
{"Station_JP" : "堀江", "Station_EN" : "Horie" },
{"Station_JP" : "伊予和気", "Station_EN" : "Iyo-Wake" },
{"Station_JP" : "三津浜", "Station_EN" : "Mitsuhama" },
{"Station_JP" : "松山", "Station_EN" : "Matsuyama" },
{"Station_JP" : "松山", "Station_EN" : "Matsuyama" },
{"Station_JP" : "市坪", "Station_EN" : "Ichitsubo" },
{"Station_JP" : "北伊予", "Station_EN" : "Kita-Iyo" },
{"Station_JP" : "南伊予", "Station_EN" : "Minami-Iyo" },
{"Station_JP" : "伊予横田", "Station_EN" : "Iyo-Yokota" },
{"Station_JP" : "鳥ノ木", "Station_EN" : "Torinoki" },
{"Station_JP" : "伊予市", "Station_EN" : "Iyoshi" },
{"Station_JP" : "向井原", "Station_EN" : "Mukaibara" },
{"Station_JP" : "高野川", "Station_EN" : "Kōnokawa" },
{"Station_JP" : "伊予上灘", "Station_EN" : "Iyo-Kaminada" },
{"Station_JP" : "下灘", "Station_EN" : "Shimonada" },
{"Station_JP" : "串", "Station_EN" : "Kushi" },
{"Station_JP" : "喜多灘", "Station_EN" : "Kitanada" },
{"Station_JP" : "伊予長浜", "Station_EN" : "Iyo-Nagahama" },
{"Station_JP" : "伊予出石", "Station_EN" : "Iyo-Izushi" },
{"Station_JP" : "伊予白滝", "Station_EN" : "Iyo-Shirataki" },
{"Station_JP" : "八多喜", "Station_EN" : "Hataki" },
{"Station_JP" : "春賀", "Station_EN" : "Haruka" },
{"Station_JP" : "五郎", "Station_EN" : "Gorō" },
{"Station_JP" : "伊予大洲", "Station_EN" : "Iyo-Ōzu" },
{"Station_JP" : "西大洲", "Station_EN" : "Nishi-Ōzu" },
{"Station_JP" : "伊予平野", "Station_EN" : "Iyo-Hirano" },
{"Station_JP" : "千丈", "Station_EN" : "Senjō" },
{"Station_JP" : "八幡浜", "Station_EN" : "Yawatahama" },
{"Station_JP" : "双岩", "Station_EN" : "Futaiwa" },
{"Station_JP" : "伊予石城", "Station_EN" : "Iyo-Iwaki" },
{"Station_JP" : "上宇和", "Station_EN" : "Kami-Uwa" },
{"Station_JP" : "卯之町", "Station_EN" : "Unomachi" },
{"Station_JP" : "下宇和", "Station_EN" : "Shimo-Uwa" },
{"Station_JP" : "立間", "Station_EN" : "Tachima" },
{"Station_JP" : "伊予吉田", "Station_EN" : "Iyo-Yoshida" },
{"Station_JP" : "高光", "Station_EN" : "Takamitsu" },
{"Station_JP" : "北宇和島", "Station_EN" : "Kita-Uwajima" },
{"Station_JP" : "宇和島", "Station_EN" : "Uwajima" },
{"Station_JP" : "佐古", "Station_EN" : "Sako" },
{"Station_JP" : "蔵本", "Station_EN" : "Kuramoto" },
{"Station_JP" : "鮎喰", "Station_EN" : "Akui" },
{"Station_JP" : "府中", "Station_EN" : "Kō" },
{"Station_JP" : "石井", "Station_EN" : "Ishii" },
{"Station_JP" : "下浦", "Station_EN" : "Shimoura" },
{"Station_JP" : "牛島", "Station_EN" : "Ushinoshima" },
{"Station_JP" : "麻植塚", "Station_EN" : "Oezuka" },
{"Station_JP" : "鴨島", "Station_EN" : "Kamojima" },
{"Station_JP" : "西麻植", "Station_EN" : "Nishi-Oe" },
{"Station_JP" : "阿波川島", "Station_EN" : "Awa-Kawashima" },
{"Station_JP" : "学", "Station_EN" : "Gaku" },
{"Station_JP" : "山瀬", "Station_EN" : "Yamase" },
{"Station_JP" : "阿波山川", "Station_EN" : "Awa-Yamakawa" },
{"Station_JP" : "川田", "Station_EN" : "Kawata" },
{"Station_JP" : "穴吹", "Station_EN" : "Anabuki" },
{"Station_JP" : "小島", "Station_EN" : "Oshima" },
{"Station_JP" : "貞光", "Station_EN" : "Sadamitsu" },
{"Station_JP" : "阿波半田", "Station_EN" : "Awa-Handa" },
{"Station_JP" : "江口", "Station_EN" : "Eguchi" },
{"Station_JP" : "三加茂", "Station_EN" : "Mikamo" },
{"Station_JP" : "阿波加茂", "Station_EN" : "Awa-Kamo" },
{"Station_JP" : "辻", "Station_EN" : "Tsuji" },
{"Station_JP" : "高松", "Station_EN" : "Takamatsu" },
{"Station_JP" : "昭和町", "Station_EN" : "Shōwachō" },
{"Station_JP" : "栗林公園北口", "Station_EN" : "Ritsurinkōen-Kitaguchi" },
{"Station_JP" : "栗林", "Station_EN" : "Ritsurin" },
{"Station_JP" : "木太町", "Station_EN" : "Kitachō" },
{"Station_JP" : "屋島", "Station_EN" : "Yashima" },
{"Station_JP" : "八栗口", "Station_EN" : "Yakuriguchi" },
{"Station_JP" : "讃岐牟礼", "Station_EN" : "Sanuki-Mure" },
{"Station_JP" : "志度", "Station_EN" : "Shido" },
{"Station_JP" : "オレンジタウン", "Station_EN" : "Orange-Town" },
{"Station_JP" : "造田", "Station_EN" : "Zōda" },
{"Station_JP" : "神前", "Station_EN" : "Kanzaki" },
{"Station_JP" : "讃岐津田", "Station_EN" : "Sanuki-Tsuda" },
{"Station_JP" : "鶴羽", "Station_EN" : "Tsuruwa" },
{"Station_JP" : "丹生", "Station_EN" : "Nibu" },
{"Station_JP" : "三本松", "Station_EN" : "Sambommatsu" },
{"Station_JP" : "讃岐白鳥", "Station_EN" : "Sanuki-Shirotori" },
{"Station_JP" : "引田", "Station_EN" : "Hiketa" },
{"Station_JP" : "讃岐相生", "Station_EN" : "Sanuki-Aioi" },
{"Station_JP" : "阿波大宮", "Station_EN" : "Awa-Ōmiya" },
{"Station_JP" : "板野", "Station_EN" : "Itano" },
{"Station_JP" : "阿波川端", "Station_EN" : "Awa-Kawabata" },
{"Station_JP" : "板東", "Station_EN" : "Bandō" },
{"Station_JP" : "池谷", "Station_EN" : "Ikenotani" },
{"Station_JP" : "勝瑞", "Station_EN" : "Shōzui" },
{"Station_JP" : "吉成", "Station_EN" : "Yoshinari" },
{"Station_JP" : "佐古", "Station_EN" : "Sako" },
{"Station_JP" : "徳島", "Station_EN" : "Tokushima" },
{"Station_JP" : "多度津", "Station_EN" : "Tadotsu" },
{"Station_JP" : "金蔵寺", "Station_EN" : "Konzōji" },
{"Station_JP" : "善通寺", "Station_EN" : "Zentsūji" },
{"Station_JP" : "琴平", "Station_EN" : "Kotohira" },
{"Station_JP" : "塩入", "Station_EN" : "Shioiri" },
{"Station_JP" : "黒川", "Station_EN" : "Kurokawa" },
{"Station_JP" : "讃岐財田", "Station_EN" : "Sanuki-Saida" },
{"Station_JP" : "坪尻", "Station_EN" : "Tsubojiri" },
{"Station_JP" : "箸蔵", "Station_EN" : "Hashikura" },
{"Station_JP" : "佃", "Station_EN" : "Tsukuda" },
{"Station_JP" : "阿波池田", "Station_EN" : "Awa-Ikeda" },
{"Station_JP" : "三縄", "Station_EN" : "Minawa" },
{"Station_JP" : "祖谷口", "Station_EN" : "Iyaguchi" },
{"Station_JP" : "阿波川口", "Station_EN" : "Awa-Kawaguchi" },
{"Station_JP" : "小歩危", "Station_EN" : "Koboke" },
{"Station_JP" : "大歩危", "Station_EN" : "Ōboke" },
{"Station_JP" : "土佐岩原", "Station_EN" : "Tosa-Iwahara" },
{"Station_JP" : "豊永", "Station_EN" : "Toyonaga" },
{"Station_JP" : "大田口", "Station_EN" : "Ōtaguchi" },
{"Station_JP" : "土佐穴内", "Station_EN" : "Tosa-Ananai" },
{"Station_JP" : "大杉", "Station_EN" : "Ōsugi" },
{"Station_JP" : "土佐北川", "Station_EN" : "Tosa-Kitagawa" },
{"Station_JP" : "角茂谷", "Station_EN" : "Kakumodani" },
{"Station_JP" : "繁藤", "Station_EN" : "Shigetō" },
{"Station_JP" : "新改", "Station_EN" : "Shingai" },
{"Station_JP" : "土佐山田", "Station_EN" : "Tosa-Yamada" },
{"Station_JP" : "山田西町", "Station_EN" : "Yamadanishimachi" },
{"Station_JP" : "土佐長岡", "Station_EN" : "Tosa-Nagaoka" },
{"Station_JP" : "後免", "Station_EN" : "Gomen" },
{"Station_JP" : "土佐大津", "Station_EN" : "Tosa-Ōtsu" },
{"Station_JP" : "布師田", "Station_EN" : "Nunoshida" },
{"Station_JP" : "土佐一宮", "Station_EN" : "Tosa-Ikku" },
{"Station_JP" : "薊野", "Station_EN" : "Azōno" },
{"Station_JP" : "高知", "Station_EN" : "Kōchi" },
{"Station_JP" : "入明", "Station_EN" : "Iriake" },
{"Station_JP" : "円行寺口", "Station_EN" : "Engyōjiguchi" },
{"Station_JP" : "旭", "Station_EN" : "Asahi" },
{"Station_JP" : "朝倉", "Station_EN" : "Asakura" },
{"Station_JP" : "枝川", "Station_EN" : "Edagawa" },
{"Station_JP" : "伊野", "Station_EN" : "Ino" },
{"Station_JP" : "波川", "Station_EN" : "Hakawa" },
{"Station_JP" : "小村神社前", "Station_EN" : "Omurajinjamae" },
{"Station_JP" : "日下", "Station_EN" : "Kusaka" },
{"Station_JP" : "岡花", "Station_EN" : "Okabana" },
{"Station_JP" : "土佐加茂", "Station_EN" : "Tosa-Kamo" },
{"Station_JP" : "西佐川", "Station_EN" : "Nishi-Sakawa" },
{"Station_JP" : "佐川", "Station_EN" : "Sakawa" },
{"Station_JP" : "襟野々", "Station_EN" : "Erinono" },
{"Station_JP" : "斗賀野", "Station_EN" : "Togano" },
{"Station_JP" : "吾桑", "Station_EN" : "Asō" },
{"Station_JP" : "多ノ郷", "Station_EN" : "Ōnogō" },
{"Station_JP" : "大間", "Station_EN" : "Ōma" },
{"Station_JP" : "須崎", "Station_EN" : "Susaki" },
{"Station_JP" : "土佐新荘", "Station_EN" : "Tosa-Shinjō" },
{"Station_JP" : "安和", "Station_EN" : "Awa" },
{"Station_JP" : "土佐久礼", "Station_EN" : "Tosa-Kure" },
{"Station_JP" : "影野", "Station_EN" : "Kageno" },
{"Station_JP" : "六反地", "Station_EN" : "Rokutanji" },
{"Station_JP" : "仁井田", "Station_EN" : "Niida" },
{"Station_JP" : "窪川", "Station_EN" : "Kubokawa" },
{"Station_JP" : "児島", "Station_EN" : "Kojima" },
{"Station_JP" : "上の町", "Station_EN" : "KaminochŌ" },
{"Station_JP" : "木見", "Station_EN" : "Kimi" },
{"Station_JP" : "植松", "Station_EN" : "Uematsu" },
{"Station_JP" : "茶屋町", "Station_EN" : "Chayamachi" },
{"Station_JP" : "久々原", "Station_EN" : "Kuguhara" },
{"Station_JP" : "早島", "Station_EN" : "kojima" },
{"Station_JP" : "備中箕島", "Station_EN" : "Bitchū-Mishima" },
{"Station_JP" : "妹尾", "Station_EN" : "Senoo" },
{"Station_JP" : "備前西市", "Station_EN" : "Bizen-Nishiichi" },
{"Station_JP" : "大元", "Station_EN" : "Ōmoto" },
{"Station_JP" : "岡山", "Station_EN" : "Okayama" },
{"Station_JP" : "新谷", "Station_EN" : "Niiya" },
{"Station_JP" : "伊予大洲", "Station_EN" : "Iyo-Ōzu" },
{"Station_JP" : "伊予平野", "Station_EN" : "Iyo-Hirano" },
{"Station_JP" : "内子", "Station_EN" : "Uchiko" },
{"Station_JP" : "五十崎", "Station_EN" : "Ikazaki" },
{"Station_JP" : "喜多山", "Station_EN" : "Kitayama" },
{"Station_JP" : "伊予立川", "Station_EN" : "Iyo-Tachikawa" },
{"Station_JP" : "伊予大平", "Station_EN" : "Iyo-Ōhira" },
{"Station_JP" : "伊予中山", "Station_EN" : "Iyo-Nakayama" },
{"Station_JP" : "中村", "Station_EN" : "Nakamura" },
{"Station_JP" : "土佐入野", "Station_EN" : "Tosa-irino" },
{"Station_JP" : "土佐上川口", "Station_EN" : "Tosa-kamikawaguchi" },
{"Station_JP" : "土佐佐賀", "Station_EN" : "Tosasaga" },
{"Station_JP" : "浮鞭", "Station_EN" : "Ukibuchi" },
{"Station_JP" : "安芸", "Station_EN" : "Aki" },
{"Station_JP" : "阿波大谷", "Station_EN" : "Awa-Ōtani" },
{"Station_JP" : "立道", "Station_EN" : "Tatsumichi" },
{"Station_JP" : "教会前", "Station_EN" : "Kyōkaimae" },
{"Station_JP" : "金比羅前", "Station_EN" : "Kompiramae" },
{"Station_JP" : "撫養", "Station_EN" : "Muya" },
{"Station_JP" : "鳴門", "Station_EN" : "Naruto" }
export default [
{"Station_JP" : "高知商業前", "Station_EN" : "Kōchi-Shōgyōmae" },
{"Station_JP" : "古高松南", "Station_EN" : "Furutakamatsu-Minami" },
{"Station_JP" : "高松", "Station_EN" : "Takamatsu" },
{"Station_JP" : "香西", "Station_EN" : "Kōzai" },
{"Station_JP" : "鬼無", "Station_EN" : "Kinashi" },
{"Station_JP" : "端岡", "Station_EN" : "Hashioka" },
{"Station_JP" : "国分", "Station_EN" : "Kokubu" },
{"Station_JP" : "讃岐府中", "Station_EN" : "Sanuki-Fuchū" },
{"Station_JP" : "鴨川", "Station_EN" : "Kamogawa" },
{"Station_JP" : "八十場", "Station_EN" : "Yasoba" },
{"Station_JP" : "坂出", "Station_EN" : "Sakaide" },
{"Station_JP" : "宇多津", "Station_EN" : "Utazu" },
{"Station_JP" : "丸亀", "Station_EN" : "Marugame" },
{"Station_JP" : "讃岐塩屋", "Station_EN" : "Sanuki-Shioya" },
{"Station_JP" : "多度津", "Station_EN" : "Tadotsu" },
{"Station_JP" : "海岸寺", "Station_EN" : "Kaiganji" },
{"Station_JP" : "詫間", "Station_EN" : "Takuma" },
{"Station_JP" : "みの", "Station_EN" : "Mino" },
{"Station_JP" : "高瀬", "Station_EN" : "Takase" },
{"Station_JP" : "比地大", "Station_EN" : "Hijidai" },
{"Station_JP" : "本山", "Station_EN" : "Motoyama" },
{"Station_JP" : "観音寺", "Station_EN" : "Kan-onji" },
{"Station_JP" : "豊浜", "Station_EN" : "Toyohama" },
{"Station_JP" : "箕浦", "Station_EN" : "Minoura" },
{"Station_JP" : "川之江", "Station_EN" : "Kawanoe" },
{"Station_JP" : "伊予三島", "Station_EN" : "Iyo-Mishima" },
{"Station_JP" : "伊予寒川", "Station_EN" : "Iyo-Sangawa" },
{"Station_JP" : "赤星", "Station_EN" : "Akaboshi" },
{"Station_JP" : "伊予土居", "Station_EN" : "Iyo-Doi" },
{"Station_JP" : "関川", "Station_EN" : "Sekigawa" },
{"Station_JP" : "多喜浜", "Station_EN" : "Takihama" },
{"Station_JP" : "新居浜", "Station_EN" : "Niihama" },
{"Station_JP" : "中萩", "Station_EN" : "Nakahagi" },
{"Station_JP" : "伊予西条", "Station_EN" : "Iyo-Saijo" },
{"Station_JP" : "石鎚山", "Station_EN" : "Ishizuchiyama" },
{"Station_JP" : "伊予氷見", "Station_EN" : "Iyo-Himi" },
{"Station_JP" : "伊予小松", "Station_EN" : "Iyo-Komatsu" },
{"Station_JP" : "玉之江", "Station_EN" : "Tamanoe" },
{"Station_JP" : "壬生川", "Station_EN" : "Nyūgawa" },
{"Station_JP" : "伊予三芳", "Station_EN" : "Iyo-Miyoshi" },
{"Station_JP" : "伊予桜井", "Station_EN" : "Iyo-Sakurai" },
{"Station_JP" : "伊予富田", "Station_EN" : "Iyo-Tomita" },
{"Station_JP" : "今治", "Station_EN" : "Imabari" },
{"Station_JP" : "波止浜", "Station_EN" : "Hashihama" },
{"Station_JP" : "波方", "Station_EN" : "Namikata" },
{"Station_JP" : "大西", "Station_EN" : "Ōnishi" },
{"Station_JP" : "伊予亀岡", "Station_EN" : "Iyo-kameoka" },
{"Station_JP" : "菊間", "Station_EN" : "Kikuma" },
{"Station_JP" : "浅海", "Station_EN" : "Asanami" },
{"Station_JP" : "大浦", "Station_EN" : "Ōura" },
{"Station_JP" : "伊予北条", "Station_EN" : "Iyo-Hōjō" },
{"Station_JP" : "柳原", "Station_EN" : "Yanagihara" },
{"Station_JP" : "粟井", "Station_EN" : "Awai" },
{"Station_JP" : "光洋台", "Station_EN" : "Kōyōdai" },
{"Station_JP" : "堀江", "Station_EN" : "Horie" },
{"Station_JP" : "伊予和気", "Station_EN" : "Iyo-Wake" },
{"Station_JP" : "三津浜", "Station_EN" : "Mitsuhama" },
{"Station_JP" : "松山", "Station_EN" : "Matsuyama" },
{"Station_JP" : "松山", "Station_EN" : "Matsuyama" },
{"Station_JP" : "市坪", "Station_EN" : "Ichitsubo" },
{"Station_JP" : "北伊予", "Station_EN" : "Kita-Iyo" },
{"Station_JP" : "南伊予", "Station_EN" : "Minami-Iyo" },
{"Station_JP" : "伊予横田", "Station_EN" : "Iyo-Yokota" },
{"Station_JP" : "鳥ノ木", "Station_EN" : "Torinoki" },
{"Station_JP" : "伊予市", "Station_EN" : "Iyoshi" },
{"Station_JP" : "向井原", "Station_EN" : "Mukaibara" },
{"Station_JP" : "高野川", "Station_EN" : "Kōnokawa" },
{"Station_JP" : "伊予上灘", "Station_EN" : "Iyo-Kaminada" },
{"Station_JP" : "下灘", "Station_EN" : "Shimonada" },
{"Station_JP" : "串", "Station_EN" : "Kushi" },
{"Station_JP" : "喜多灘", "Station_EN" : "Kitanada" },
{"Station_JP" : "伊予長浜", "Station_EN" : "Iyo-Nagahama" },
{"Station_JP" : "伊予出石", "Station_EN" : "Iyo-Izushi" },
{"Station_JP" : "伊予白滝", "Station_EN" : "Iyo-Shirataki" },
{"Station_JP" : "八多喜", "Station_EN" : "Hataki" },
{"Station_JP" : "春賀", "Station_EN" : "Haruka" },
{"Station_JP" : "五郎", "Station_EN" : "Gorō" },
{"Station_JP" : "伊予大洲", "Station_EN" : "Iyo-Ōzu" },
{"Station_JP" : "西大洲", "Station_EN" : "Nishi-Ōzu" },
{"Station_JP" : "伊予平野", "Station_EN" : "Iyo-Hirano" },
{"Station_JP" : "千丈", "Station_EN" : "Senjō" },
{"Station_JP" : "八幡浜", "Station_EN" : "Yawatahama" },
{"Station_JP" : "双岩", "Station_EN" : "Futaiwa" },
{"Station_JP" : "伊予石城", "Station_EN" : "Iyo-Iwaki" },
{"Station_JP" : "上宇和", "Station_EN" : "Kami-Uwa" },
{"Station_JP" : "卯之町", "Station_EN" : "Unomachi" },
{"Station_JP" : "下宇和", "Station_EN" : "Shimo-Uwa" },
{"Station_JP" : "立間", "Station_EN" : "Tachima" },
{"Station_JP" : "伊予吉田", "Station_EN" : "Iyo-Yoshida" },
{"Station_JP" : "高光", "Station_EN" : "Takamitsu" },
{"Station_JP" : "北宇和島", "Station_EN" : "Kita-Uwajima" },
{"Station_JP" : "宇和島", "Station_EN" : "Uwajima" },
{"Station_JP" : "佐古", "Station_EN" : "Sako" },
{"Station_JP" : "蔵本", "Station_EN" : "Kuramoto" },
{"Station_JP" : "鮎喰", "Station_EN" : "Akui" },
{"Station_JP" : "府中", "Station_EN" : "Kō" },
{"Station_JP" : "石井", "Station_EN" : "Ishii" },
{"Station_JP" : "下浦", "Station_EN" : "Shimoura" },
{"Station_JP" : "牛島", "Station_EN" : "Ushinoshima" },
{"Station_JP" : "麻植塚", "Station_EN" : "Oezuka" },
{"Station_JP" : "鴨島", "Station_EN" : "Kamojima" },
{"Station_JP" : "西麻植", "Station_EN" : "Nishi-Oe" },
{"Station_JP" : "阿波川島", "Station_EN" : "Awa-Kawashima" },
{"Station_JP" : "学", "Station_EN" : "Gaku" },
{"Station_JP" : "山瀬", "Station_EN" : "Yamase" },
{"Station_JP" : "阿波山川", "Station_EN" : "Awa-Yamakawa" },
{"Station_JP" : "川田", "Station_EN" : "Kawata" },
{"Station_JP" : "穴吹", "Station_EN" : "Anabuki" },
{"Station_JP" : "小島", "Station_EN" : "Oshima" },
{"Station_JP" : "貞光", "Station_EN" : "Sadamitsu" },
{"Station_JP" : "阿波半田", "Station_EN" : "Awa-Handa" },
{"Station_JP" : "江口", "Station_EN" : "Eguchi" },
{"Station_JP" : "三加茂", "Station_EN" : "Mikamo" },
{"Station_JP" : "阿波加茂", "Station_EN" : "Awa-Kamo" },
{"Station_JP" : "辻", "Station_EN" : "Tsuji" },
{"Station_JP" : "高松", "Station_EN" : "Takamatsu" },
{"Station_JP" : "昭和町", "Station_EN" : "Shōwachō" },
{"Station_JP" : "栗林公園北口", "Station_EN" : "Ritsurinkōen-Kitaguchi" },
{"Station_JP" : "栗林", "Station_EN" : "Ritsurin" },
{"Station_JP" : "木太町", "Station_EN" : "Kitachō" },
{"Station_JP" : "屋島", "Station_EN" : "Yashima" },
{"Station_JP" : "八栗口", "Station_EN" : "Yakuriguchi" },
{"Station_JP" : "讃岐牟礼", "Station_EN" : "Sanuki-Mure" },
{"Station_JP" : "志度", "Station_EN" : "Shido" },
{"Station_JP" : "オレンジタウン", "Station_EN" : "Orange-Town" },
{"Station_JP" : "造田", "Station_EN" : "Zōda" },
{"Station_JP" : "神前", "Station_EN" : "Kanzaki" },
{"Station_JP" : "讃岐津田", "Station_EN" : "Sanuki-Tsuda" },
{"Station_JP" : "鶴羽", "Station_EN" : "Tsuruwa" },
{"Station_JP" : "丹生", "Station_EN" : "Nibu" },
{"Station_JP" : "三本松", "Station_EN" : "Sambommatsu" },
{"Station_JP" : "讃岐白鳥", "Station_EN" : "Sanuki-Shirotori" },
{"Station_JP" : "引田", "Station_EN" : "Hiketa" },
{"Station_JP" : "讃岐相生", "Station_EN" : "Sanuki-Aioi" },
{"Station_JP" : "阿波大宮", "Station_EN" : "Awa-Ōmiya" },
{"Station_JP" : "板野", "Station_EN" : "Itano" },
{"Station_JP" : "阿波川端", "Station_EN" : "Awa-Kawabata" },
{"Station_JP" : "板東", "Station_EN" : "Bandō" },
{"Station_JP" : "池谷", "Station_EN" : "Ikenotani" },
{"Station_JP" : "勝瑞", "Station_EN" : "Shōzui" },
{"Station_JP" : "吉成", "Station_EN" : "Yoshinari" },
{"Station_JP" : "佐古", "Station_EN" : "Sako" },
{"Station_JP" : "徳島", "Station_EN" : "Tokushima" },
{"Station_JP" : "多度津", "Station_EN" : "Tadotsu" },
{"Station_JP" : "金蔵寺", "Station_EN" : "Konzōji" },
{"Station_JP" : "善通寺", "Station_EN" : "Zentsūji" },
{"Station_JP" : "琴平", "Station_EN" : "Kotohira" },
{"Station_JP" : "塩入", "Station_EN" : "Shioiri" },
{"Station_JP" : "黒川", "Station_EN" : "Kurokawa" },
{"Station_JP" : "讃岐財田", "Station_EN" : "Sanuki-Saida" },
{"Station_JP" : "坪尻", "Station_EN" : "Tsubojiri" },
{"Station_JP" : "箸蔵", "Station_EN" : "Hashikura" },
{"Station_JP" : "佃", "Station_EN" : "Tsukuda" },
{"Station_JP" : "阿波池田", "Station_EN" : "Awa-Ikeda" },
{"Station_JP" : "三縄", "Station_EN" : "Minawa" },
{"Station_JP" : "祖谷口", "Station_EN" : "Iyaguchi" },
{"Station_JP" : "阿波川口", "Station_EN" : "Awa-Kawaguchi" },
{"Station_JP" : "小歩危", "Station_EN" : "Koboke" },
{"Station_JP" : "大歩危", "Station_EN" : "Ōboke" },
{"Station_JP" : "土佐岩原", "Station_EN" : "Tosa-Iwahara" },
{"Station_JP" : "豊永", "Station_EN" : "Toyonaga" },
{"Station_JP" : "大田口", "Station_EN" : "Ōtaguchi" },
{"Station_JP" : "土佐穴内", "Station_EN" : "Tosa-Ananai" },
{"Station_JP" : "大杉", "Station_EN" : "Ōsugi" },
{"Station_JP" : "土佐北川", "Station_EN" : "Tosa-Kitagawa" },
{"Station_JP" : "角茂谷", "Station_EN" : "Kakumodani" },
{"Station_JP" : "繁藤", "Station_EN" : "Shigetō" },
{"Station_JP" : "新改", "Station_EN" : "Shingai" },
{"Station_JP" : "土佐山田", "Station_EN" : "Tosa-Yamada" },
{"Station_JP" : "山田西町", "Station_EN" : "Yamadanishimachi" },
{"Station_JP" : "土佐長岡", "Station_EN" : "Tosa-Nagaoka" },
{"Station_JP" : "後免", "Station_EN" : "Gomen" },
{"Station_JP" : "土佐大津", "Station_EN" : "Tosa-Ōtsu" },
{"Station_JP" : "布師田", "Station_EN" : "Nunoshida" },
{"Station_JP" : "土佐一宮", "Station_EN" : "Tosa-Ikku" },
{"Station_JP" : "薊野", "Station_EN" : "Azōno" },
{"Station_JP" : "高知", "Station_EN" : "Kōchi" },
{"Station_JP" : "入明", "Station_EN" : "Iriake" },
{"Station_JP" : "円行寺口", "Station_EN" : "Engyōjiguchi" },
{"Station_JP" : "旭", "Station_EN" : "Asahi" },
{"Station_JP" : "朝倉", "Station_EN" : "Asakura" },
{"Station_JP" : "枝川", "Station_EN" : "Edagawa" },
{"Station_JP" : "伊野", "Station_EN" : "Ino" },
{"Station_JP" : "波川", "Station_EN" : "Hakawa" },
{"Station_JP" : "小村神社前", "Station_EN" : "Omurajinjamae" },
{"Station_JP" : "日下", "Station_EN" : "Kusaka" },
{"Station_JP" : "岡花", "Station_EN" : "Okabana" },
{"Station_JP" : "土佐加茂", "Station_EN" : "Tosa-Kamo" },
{"Station_JP" : "西佐川", "Station_EN" : "Nishi-Sakawa" },
{"Station_JP" : "佐川", "Station_EN" : "Sakawa" },
{"Station_JP" : "襟野々", "Station_EN" : "Erinono" },
{"Station_JP" : "斗賀野", "Station_EN" : "Togano" },
{"Station_JP" : "吾桑", "Station_EN" : "Asō" },
{"Station_JP" : "多ノ郷", "Station_EN" : "Ōnogō" },
{"Station_JP" : "大間", "Station_EN" : "Ōma" },
{"Station_JP" : "須崎", "Station_EN" : "Susaki" },
{"Station_JP" : "土佐新荘", "Station_EN" : "Tosa-Shinjō" },
{"Station_JP" : "安和", "Station_EN" : "Awa" },
{"Station_JP" : "土佐久礼", "Station_EN" : "Tosa-Kure" },
{"Station_JP" : "影野", "Station_EN" : "Kageno" },
{"Station_JP" : "六反地", "Station_EN" : "Rokutanji" },
{"Station_JP" : "仁井田", "Station_EN" : "Niida" },
{"Station_JP" : "窪川", "Station_EN" : "Kubokawa" },
{"Station_JP" : "児島", "Station_EN" : "Kojima" },
{"Station_JP" : "上の町", "Station_EN" : "KaminochŌ" },
{"Station_JP" : "木見", "Station_EN" : "Kimi" },
{"Station_JP" : "植松", "Station_EN" : "Uematsu" },
{"Station_JP" : "茶屋町", "Station_EN" : "Chayamachi" },
{"Station_JP" : "久々原", "Station_EN" : "Kuguhara" },
{"Station_JP" : "早島", "Station_EN" : "kojima" },
{"Station_JP" : "備中箕島", "Station_EN" : "Bitchū-Mishima" },
{"Station_JP" : "妹尾", "Station_EN" : "Senoo" },
{"Station_JP" : "備前西市", "Station_EN" : "Bizen-Nishiichi" },
{"Station_JP" : "大元", "Station_EN" : "Ōmoto" },
{"Station_JP" : "岡山", "Station_EN" : "Okayama" },
{"Station_JP" : "新谷", "Station_EN" : "Niiya" },
{"Station_JP" : "伊予大洲", "Station_EN" : "Iyo-Ōzu" },
{"Station_JP" : "伊予平野", "Station_EN" : "Iyo-Hirano" },
{"Station_JP" : "内子", "Station_EN" : "Uchiko" },
{"Station_JP" : "五十崎", "Station_EN" : "Ikazaki" },
{"Station_JP" : "喜多山", "Station_EN" : "Kitayama" },
{"Station_JP" : "伊予立川", "Station_EN" : "Iyo-Tachikawa" },
{"Station_JP" : "伊予大平", "Station_EN" : "Iyo-Ōhira" },
{"Station_JP" : "伊予中山", "Station_EN" : "Iyo-Nakayama" },
{"Station_JP" : "中村", "Station_EN" : "Nakamura" },
{"Station_JP" : "土佐入野", "Station_EN" : "Tosa-irino" },
{"Station_JP" : "土佐上川口", "Station_EN" : "Tosa-kamikawaguchi" },
{"Station_JP" : "土佐佐賀", "Station_EN" : "Tosasaga" },
{"Station_JP" : "浮鞭", "Station_EN" : "Ukibuchi" },
{"Station_JP" : "安芸", "Station_EN" : "Aki" },
{"Station_JP" : "阿波大谷", "Station_EN" : "Awa-Ōtani" },
{"Station_JP" : "立道", "Station_EN" : "Tatsumichi" },
{"Station_JP" : "教会前", "Station_EN" : "Kyōkaimae" },
{"Station_JP" : "金比羅前", "Station_EN" : "Kompiramae" },
{"Station_JP" : "撫養", "Station_EN" : "Muya" },
{"Station_JP" : "鳴門", "Station_EN" : "Naruto" }
]

View File

@@ -1,23 +1,23 @@
export default [
{"Station_JP" : "松山", "Station_EN" : "Matsuyama", "MyStation" : "0", "StationNumber" : "U00", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/matsuyama.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.84039,132.75139" , "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/matsuyama/"},
{"Station_JP" : "市坪", "Station_EN" : "Ichitsubo", "MyStation" : "0", "StationNumber" : "U01", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/ichitsubo.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.809441,132.749325", "JrHpUrl" : ""},
{"Station_JP" : "北伊予", "Station_EN" : "Kita-Iyo", "MyStation" : "1", "StationNumber" : "U02", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kita-iyo.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.787699,132.748963", "JrHpUrl" : ""},
{"Station_JP" : "伊予市", "Station_EN" : "Iyoshi", "MyStation" : "2", "StationNumber" : "U05", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyoshi.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.755352,132.702327", "JrHpUrl" : ""},
{"Station_JP" : "向井原", "Station_EN" : "Mukaibara", "MyStation" : "3", "StationNumber" : "U06", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/mukaibara.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.736043,132.695825", "JrHpUrl" : ""},
{"Station_JP" : "伊予中山", "Station_EN" : "Iyo-Nakayama", "MyStation" : "4", "StationNumber" : "U08", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-nakayama.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.649292,132.711857", "JrHpUrl" : ""},
{"Station_JP" : "伊予立川", "Station_EN" : "Iyo-Tachikawa", "MyStation" : "5", "StationNumber" : "U09", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-tachikawa.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.601197,132.677898", "JrHpUrl" : ""},
{"Station_JP" : "内子", "Station_EN" : "Uchiko", "MyStation" : "6", "StationNumber" : "U10", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/uchiko.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.549461,132.646304", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/uchiko/"},
{"Station_JP" : "新谷", "Station_EN" : "Niiya", "MyStation" : "7", "StationNumber" : "U13", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/niiya.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.534106,132.59904" , "JrHpUrl" : ""},
{"Station_JP" : "伊予大洲", "Station_EN" : "Iyo-Ōzu", "MyStation" : "8", "StationNumber" : "U14", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-ozu.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.518495,132.544878", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/iyozu/"},
{"Station_JP" : "伊予平野", "Station_EN" : "Iyo-Hirano", "MyStation" : "9", "StationNumber" : "U16", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-hirano.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.495827,132.518108", "JrHpUrl" : ""},
{"Station_JP" : "千丈", "Station_EN" : "Senjō", "MyStation" : "10", "StationNumber" : "U17", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/senjo.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.465646,132.457416", "JrHpUrl" : ""},
{"Station_JP" : "八幡浜", "Station_EN" : "Yawatahama", "MyStation" : "11", "StationNumber" : "U18", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/yawatahama.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.458146,132.436002", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/yawatahama/"},
{"Station_JP" : "双岩", "Station_EN" : "Futaiwa", "MyStation" : "12", "StationNumber" : "U19", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/futaiwa.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.424669,132.457934", "JrHpUrl" : ""},
{"Station_JP" : "伊予石城", "Station_EN" : "Iyo-Iwaki", "MyStation" : "13", "StationNumber" : "U20", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-iwaki.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.391413,132.473259", "JrHpUrl" : ""},
{"Station_JP" : "卯之町", "Station_EN" : "Unomachi", "MyStation" : "14", "StationNumber" : "U22", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/unomachi.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.363175,132.509959", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/unomachi/"},
{"Station_JP" : "下宇和", "Station_EN" : "Shimo-Uwa", "MyStation" : "15", "StationNumber" : "U23", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/shimo-uwa.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.349786,132.531172", "JrHpUrl" : ""},
{"Station_JP" : "立間", "Station_EN" : "Tachima", "MyStation" : "16", "StationNumber" : "U24", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tachima.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.296721,132.539509", "JrHpUrl" : ""},
{"Station_JP" : "伊予吉田", "Station_EN" : "Iyo-Yoshida", "MyStation" : "17", "StationNumber" : "U25", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-yoshida.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.273287,132.544098", "JrHpUrl" : ""},
{"Station_JP" : "北宇和島", "Station_EN" : "Kita-Uwajima", "MyStation" : "18", "StationNumber" : "U27", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kita-uwajima.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.238636,132.569909", "JrHpUrl" : ""},
{"Station_JP" : "宇和島", "Station_EN" : "Uwajima", "MyStation" : "19", "StationNumber" : "U28", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/uwajima.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.225793,132.567498", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/uwajima/"}
]
export default [
{"Station_JP" : "松山", "Station_EN" : "Matsuyama", "MyStation" : "0", "StationNumber" : "U00", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/matsuyama.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.84039,132.75139" , "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/matsuyama/"},
{"Station_JP" : "市坪", "Station_EN" : "Ichitsubo", "MyStation" : "0", "StationNumber" : "U01", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/ichitsubo.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.809441,132.749325", "JrHpUrl" : ""},
{"Station_JP" : "北伊予", "Station_EN" : "Kita-Iyo", "MyStation" : "1", "StationNumber" : "U02", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kita-iyo.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.787699,132.748963", "JrHpUrl" : ""},
{"Station_JP" : "伊予市", "Station_EN" : "Iyoshi", "MyStation" : "2", "StationNumber" : "U05", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyoshi.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.755352,132.702327", "JrHpUrl" : ""},
{"Station_JP" : "向井原", "Station_EN" : "Mukaibara", "MyStation" : "3", "StationNumber" : "U06", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/mukaibara.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.736043,132.695825", "JrHpUrl" : ""},
{"Station_JP" : "伊予中山", "Station_EN" : "Iyo-Nakayama", "MyStation" : "4", "StationNumber" : "U08", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-nakayama.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.649292,132.711857", "JrHpUrl" : ""},
{"Station_JP" : "伊予立川", "Station_EN" : "Iyo-Tachikawa", "MyStation" : "5", "StationNumber" : "U09", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-tachikawa.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.601197,132.677898", "JrHpUrl" : ""},
{"Station_JP" : "内子", "Station_EN" : "Uchiko", "MyStation" : "6", "StationNumber" : "U10", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/uchiko.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.549461,132.646304", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/uchiko/"},
{"Station_JP" : "新谷", "Station_EN" : "Niiya", "MyStation" : "7", "StationNumber" : "U13", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/niiya.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.534106,132.59904" , "JrHpUrl" : ""},
{"Station_JP" : "伊予大洲", "Station_EN" : "Iyo-Ōzu", "MyStation" : "8", "StationNumber" : "U14", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-ozu.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.518495,132.544878", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/iyozu/"},
{"Station_JP" : "伊予平野", "Station_EN" : "Iyo-Hirano", "MyStation" : "9", "StationNumber" : "U16", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-hirano.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.495827,132.518108", "JrHpUrl" : ""},
{"Station_JP" : "千丈", "Station_EN" : "Senjō", "MyStation" : "10", "StationNumber" : "U17", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/senjo.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.465646,132.457416", "JrHpUrl" : ""},
{"Station_JP" : "八幡浜", "Station_EN" : "Yawatahama", "MyStation" : "11", "StationNumber" : "U18", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/yawatahama.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.458146,132.436002", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/yawatahama/"},
{"Station_JP" : "双岩", "Station_EN" : "Futaiwa", "MyStation" : "12", "StationNumber" : "U19", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/futaiwa.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.424669,132.457934", "JrHpUrl" : ""},
{"Station_JP" : "伊予石城", "Station_EN" : "Iyo-Iwaki", "MyStation" : "13", "StationNumber" : "U20", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-iwaki.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.391413,132.473259", "JrHpUrl" : ""},
{"Station_JP" : "卯之町", "Station_EN" : "Unomachi", "MyStation" : "14", "StationNumber" : "U22", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/unomachi.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.363175,132.509959", "JrHpUrl" : ""},
{"Station_JP" : "下宇和", "Station_EN" : "Shimo-Uwa", "MyStation" : "15", "StationNumber" : "U23", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/shimo-uwa.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.349786,132.531172", "JrHpUrl" : ""},
{"Station_JP" : "立間", "Station_EN" : "Tachima", "MyStation" : "16", "StationNumber" : "U24", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tachima.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.296721,132.539509", "JrHpUrl" : ""},
{"Station_JP" : "伊予吉田", "Station_EN" : "Iyo-Yoshida", "MyStation" : "17", "StationNumber" : "U25", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-yoshida.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.273287,132.544098", "JrHpUrl" : ""},
{"Station_JP" : "北宇和島", "Station_EN" : "Kita-Uwajima", "MyStation" : "18", "StationNumber" : "U27", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kita-uwajima.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.238636,132.569909", "JrHpUrl" : ""},
{"Station_JP" : "宇和島", "Station_EN" : "Uwajima", "MyStation" : "19", "StationNumber" : "U28", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/uwajima.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.225793,132.567498", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/uwajima/"}
]

View File

@@ -1,7 +1,7 @@
export default [
{"Station_JP" : "向井原","Station_EN" : "Mukaibara", "MyStation" : "0", "StationNumber" : "S06","StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/mukaibara.pdf","StationMap":"https://www.google.co.jp/maps/place/33.736043,132.695825"},
{"Station_JP" : "伊予上灘","Station_EN" : "Iyo-Kaminada", "MyStation" : "0", "StationNumber" : "S08","StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-kaminada.pdf","StationMap":"https://www.google.co.jp/maps/place/33.683632,132.632969"},
{"Station_JP" : "伊予長浜","Station_EN" : "Iyo-Nagahama", "MyStation" : "1", "StationNumber" : "S12","StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-nagahama.pdf","StationMap":"https://www.google.co.jp/maps/place/33.615302,132.486828"},
{"Station_JP" : "伊予白滝","Station_EN" : "Iyo-Shirataki", "MyStation" : "2", "StationNumber" : "S14","StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-shirataki.pdf","StationMap":"https://www.google.co.jp/maps/place/33.578588,132.526778"},
{"Station_JP" : "伊予大洲","Station_EN" : "Iyo-Ōzu", "MyStation" : "3", "StationNumber" : "S18","StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-ozu.pdf","StationMap":"https://www.google.co.jp/maps/place/33.518495,132.544878"}
]
export default [
{"Station_JP" : "向井原","Station_EN" : "Mukaibara", "MyStation" : "0", "StationNumber" : "S06","StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/mukaibara.pdf","StationMap":"https://www.google.co.jp/maps/place/33.736043,132.695825"},
{"Station_JP" : "伊予上灘","Station_EN" : "Iyo-Kaminada", "MyStation" : "0", "StationNumber" : "S08","StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-kaminada.pdf","StationMap":"https://www.google.co.jp/maps/place/33.683632,132.632969"},
{"Station_JP" : "伊予長浜","Station_EN" : "Iyo-Nagahama", "MyStation" : "1", "StationNumber" : "S12","StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-nagahama.pdf","StationMap":"https://www.google.co.jp/maps/place/33.615302,132.486828"},
{"Station_JP" : "伊予白滝","Station_EN" : "Iyo-Shirataki", "MyStation" : "2", "StationNumber" : "S14","StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-shirataki.pdf","StationMap":"https://www.google.co.jp/maps/place/33.578588,132.526778"},
{"Station_JP" : "伊予大洲","Station_EN" : "Iyo-Ōzu", "MyStation" : "3", "StationNumber" : "S18","StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-ozu.pdf","StationMap":"https://www.google.co.jp/maps/place/33.518495,132.544878"}
]

View File

@@ -1,46 +1,46 @@
export default [
{"Station_JP" : "高松", "Station_EN" : "Takamatsu", "MyStation" : "0", "StationNumber" : "Y00", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/takamatsu.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.350682,134.046938", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/takamatsu/"},
{"Station_JP" : "鬼無", "Station_EN" : "Kinashi", "MyStation" : "0", "StationNumber" : "Y02", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kinashi.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.325494,133.993861", "JrHpUrl" : ""},
{"Station_JP" : "端岡", "Station_EN" : "Hashioka", "MyStation" : "1", "StationNumber" : "Y03", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/hashioka.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.305027,133.967643", "JrHpUrl" : ""},
{"Station_JP" : "鴨川", "Station_EN" : "Kamogawa", "MyStation" : "2", "StationNumber" : "Y06", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kamogawa.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.306877,133.905229", "JrHpUrl" : ""},
{"Station_JP" : "坂出", "Station_EN" : "Sakaide", "MyStation" : "3", "StationNumber" : "Y08", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/sakaide.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.313222,133.856325", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/sakaide/"},
{"Station_JP" : "宇多津", "Station_EN" : "Utazu", "MyStation" : "4", "StationNumber" : "Y09", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/utazu.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.306379,133.813784", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/utazu/"},
{"Station_JP" : "丸亀", "Station_EN" : "Marugame", "MyStation" : "5", "StationNumber" : "Y10", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/marugame.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.292006,133.793175", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/marugame/"},
{"Station_JP" : "多度津", "Station_EN" : "Tadotsu", "MyStation" : "6", "StationNumber" : "Y12", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tadotsu.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.271088,133.756735", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/tadotsu/"},
{"Station_JP" : "海岸寺", "Station_EN" : "Kaiganji", "MyStation" : "7", "StationNumber" : "Y13", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kaiganji.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.253932,133.729307", "JrHpUrl" : ""},
{"Station_JP" : "詫間", "Station_EN" : "Takuma", "MyStation" : "8", "StationNumber" : "Y14", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/takuma.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.220826,133.692737", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/takuma/"},
{"Station_JP" : "高瀬", "Station_EN" : "Takase", "MyStation" : "9", "StationNumber" : "Y16", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/takase.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.184083,133.711397", "JrHpUrl" : ""},
{"Station_JP" : "本山", "Station_EN" : "Motoyama", "MyStation" : "10", "StationNumber" : "Y18", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/motoyama.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.146075,133.686473", "JrHpUrl" : ""},
{"Station_JP" : "観音寺", "Station_EN" : "Kan-onji", "MyStation" : "11", "StationNumber" : "Y19", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kan-onji.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.124478,133.655709", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/kanonji/"},
{"Station_JP" : "豊浜", "Station_EN" : "Toyohama", "MyStation" : "12", "StationNumber" : "Y20", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/toyohama.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.079775,133.644206", "JrHpUrl" : ""},
{"Station_JP" : "箕浦", "Station_EN" : "Minoura", "MyStation" : "13", "StationNumber" : "Y21", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/minoura.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.048043,133.618998", "JrHpUrl" : ""},
{"Station_JP" : "川之江", "Station_EN" : "Kawanoe", "MyStation" : "14", "StationNumber" : "Y22", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kawanoe.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.014209,133.575856", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/kawanoe/"},
{"Station_JP" : "伊予三島", "Station_EN" : "Iyo-Mishima", "MyStation" : "15", "StationNumber" : "Y23", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-mishima.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.979583,133.541984", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/iyomishima/"},
{"Station_JP" : "伊予寒川", "Station_EN" : "Iyo-Sangawa", "MyStation" : "16", "StationNumber" : "Y24", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-sangawa.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.967803,133.500153", "JrHpUrl" : ""},
{"Station_JP" : "伊予土居", "Station_EN" : "Iyo-Doi", "MyStation" : "17", "StationNumber" : "Y26", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-doi.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.959024,133.428294", "JrHpUrl" : ""},
{"Station_JP" : "関川", "Station_EN" : "Sekigawa", "MyStation" : "18", "StationNumber" : "Y27", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/sekigawa.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.955777,133.392567", "JrHpUrl" : ""},
{"Station_JP" : "多喜浜", "Station_EN" : "Takihama", "MyStation" : "19", "StationNumber" : "Y28", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/takihama.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.970564,133.32415" , "JrHpUrl" : ""},
{"Station_JP" : "新居浜", "Station_EN" : "Niihama", "MyStation" : "20", "StationNumber" : "Y29", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/niihama.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.947996,133.294341", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/niihama/"},
{"Station_JP" : "中萩", "Station_EN" : "Nakahagi", "MyStation" : "21", "StationNumber" : "Y30", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/nakahagi.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.926168,133.253391", "JrHpUrl" : ""},
{"Station_JP" : "伊予西条", "Station_EN" : "Iyo-Saijo", "MyStation" : "22", "StationNumber" : "Y31", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-saijo.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.912492,133.187578", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/iyosaijo/index.html"},
{"Station_JP" : "石鎚山", "Station_EN" : "Ishizuchiyama", "MyStation" : "23", "StationNumber" : "Y32", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/ishizuchiyama.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.895746,133.157257", "JrHpUrl" : ""},
{"Station_JP" : "伊予小松", "Station_EN" : "Iyo-Komatsu", "MyStation" : "24", "StationNumber" : "Y34", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-komatsu.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.897567,133.116717", "JrHpUrl" : ""},
{"Station_JP" : "壬生川", "Station_EN" : "Nyūgawa", "MyStation" : "25", "StationNumber" : "Y36", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/nyugawa.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.929851,133.08552" , "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/nyugawa/"},
{"Station_JP" : "伊予三芳", "Station_EN" : "Iyo-Miyoshi", "MyStation" : "26", "StationNumber" : "Y37", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-miyoshi.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.954251,133.06422" , "JrHpUrl" : ""},
{"Station_JP" : "伊予桜井", "Station_EN" : "Iyo-Sakurai", "MyStation" : "27", "StationNumber" : "Y38", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-sakurai.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.012073,133.03593" , "JrHpUrl" : ""},
{"Station_JP" : "伊予富田", "Station_EN" : "Iyo-Tomita", "MyStation" : "28", "StationNumber" : "Y39", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-tomita.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.036447,133.008989", "JrHpUrl" : ""},
{"Station_JP" : "今治", "Station_EN" : "Imabari", "MyStation" : "29", "StationNumber" : "Y40", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/imabari.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.064167,132.993655", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/imabari/"},
{"Station_JP" : "波止浜", "Station_EN" : "Hashihama", "MyStation" : "30", "StationNumber" : "Y41", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/hashihama.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.098067,132.968786", "JrHpUrl" : ""},
{"Station_JP" : "波方", "Station_EN" : "Namikata", "MyStation" : "31", "StationNumber" : "Y42", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/namikata.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.095134,132.941888", "JrHpUrl" : ""},
{"Station_JP" : "大西", "Station_EN" : "Ōnishi", "MyStation" : "32", "StationNumber" : "Y43", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/onishi.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.066125,132.929367", "JrHpUrl" : ""},
{"Station_JP" : "伊予亀岡", "Station_EN" : "Iyo-kameoka", "MyStation" : "33", "StationNumber" : "Y44", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-kameoka.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.053886,132.874104", "JrHpUrl" : ""},
{"Station_JP" : "菊間", "Station_EN" : "Kikuma", "MyStation" : "34", "StationNumber" : "Y45", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kikuma.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.033421,132.840883", "JrHpUrl" : ""},
{"Station_JP" : "浅海", "Station_EN" : "Asanami", "MyStation" : "35", "StationNumber" : "Y46", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/asanami.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.010028,132.802691", "JrHpUrl" : ""},
{"Station_JP" : "大浦", "Station_EN" : "Ōura", "MyStation" : "36", "StationNumber" : "Y47", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/oura.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.999461,132.77555" , "JrHpUrl" : ""},
{"Station_JP" : "伊予北条", "Station_EN" : "Iyo-Hōjō", "MyStation" : "37", "StationNumber" : "Y48", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-hojo.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.972595,132.775097", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/iyohojo/"},
{"Station_JP" : "粟井", "Station_EN" : "Awai", "MyStation" : "38", "StationNumber" : "Y50", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/awai.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.942729,132.77044" , "JrHpUrl" : ""},
{"Station_JP" : "堀江", "Station_EN" : "Horie", "MyStation" : "39", "StationNumber" : "Y52", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/horie.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.905558,132.753212", "JrHpUrl" : ""},
{"Station_JP" : "伊予和気", "Station_EN" : "Iyo-Wake", "MyStation" : "40", "StationNumber" : "Y53", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-wake.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.889798,132.740708", "JrHpUrl" : ""},
{"Station_JP" : "三津浜", "Station_EN" : "Mitsuhama", "MyStation" : "41", "StationNumber" : "Y54", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/mitsuhama.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.861165,132.728612", "JrHpUrl" : ""},
{"Station_JP" : "松山", "Station_EN" : "Matsuyama", "MyStation" : "42", "StationNumber" : "Y55", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/matsuyama.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.84039,132.75139" , "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/matsuyama/"}
export default [
{"Station_JP" : "高松", "Station_EN" : "Takamatsu", "MyStation" : "0", "StationNumber" : "Y00", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/takamatsu.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.350682,134.046938", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/takamatsu/"},
{"Station_JP" : "鬼無", "Station_EN" : "Kinashi", "MyStation" : "0", "StationNumber" : "Y02", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kinashi.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.325494,133.993861", "JrHpUrl" : ""},
{"Station_JP" : "端岡", "Station_EN" : "Hashioka", "MyStation" : "1", "StationNumber" : "Y03", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/hashioka.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.305027,133.967643", "JrHpUrl" : ""},
{"Station_JP" : "鴨川", "Station_EN" : "Kamogawa", "MyStation" : "2", "StationNumber" : "Y06", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kamogawa.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.306877,133.905229", "JrHpUrl" : ""},
{"Station_JP" : "坂出", "Station_EN" : "Sakaide", "MyStation" : "3", "StationNumber" : "Y08", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/sakaide.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.313222,133.856325", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/sakaide/"},
{"Station_JP" : "宇多津", "Station_EN" : "Utazu", "MyStation" : "4", "StationNumber" : "Y09", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/utazu.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.306379,133.813784", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/utazu/"},
{"Station_JP" : "丸亀", "Station_EN" : "Marugame", "MyStation" : "5", "StationNumber" : "Y10", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/marugame.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.292006,133.793175", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/marugame/"},
{"Station_JP" : "多度津", "Station_EN" : "Tadotsu", "MyStation" : "6", "StationNumber" : "Y12", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/tadotsu.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.271088,133.756735", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/tadotsu/"},
{"Station_JP" : "海岸寺", "Station_EN" : "Kaiganji", "MyStation" : "7", "StationNumber" : "Y13", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kaiganji.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.253932,133.729307", "JrHpUrl" : ""},
{"Station_JP" : "詫間", "Station_EN" : "Takuma", "MyStation" : "8", "StationNumber" : "Y14", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/takuma.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.220826,133.692737", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/takuma/"},
{"Station_JP" : "高瀬", "Station_EN" : "Takase", "MyStation" : "9", "StationNumber" : "Y16", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/takase.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.184083,133.711397", "JrHpUrl" : ""},
{"Station_JP" : "本山", "Station_EN" : "Motoyama", "MyStation" : "10", "StationNumber" : "Y18", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/motoyama.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.146075,133.686473", "JrHpUrl" : ""},
{"Station_JP" : "観音寺", "Station_EN" : "Kan-onji", "MyStation" : "11", "StationNumber" : "Y19", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kan-onji.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.124478,133.655709", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/kanonji/"},
{"Station_JP" : "豊浜", "Station_EN" : "Toyohama", "MyStation" : "12", "StationNumber" : "Y20", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/toyohama.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.079775,133.644206", "JrHpUrl" : ""},
{"Station_JP" : "箕浦", "Station_EN" : "Minoura", "MyStation" : "13", "StationNumber" : "Y21", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/minoura.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.048043,133.618998", "JrHpUrl" : ""},
{"Station_JP" : "川之江", "Station_EN" : "Kawanoe", "MyStation" : "14", "StationNumber" : "Y22", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kawanoe.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.014209,133.575856", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/kawanoe/"},
{"Station_JP" : "伊予三島", "Station_EN" : "Iyo-Mishima", "MyStation" : "15", "StationNumber" : "Y23", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-mishima.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.979583,133.541984", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/iyomishima/"},
{"Station_JP" : "伊予寒川", "Station_EN" : "Iyo-Sangawa", "MyStation" : "16", "StationNumber" : "Y24", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-sangawa.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.967803,133.500153", "JrHpUrl" : ""},
{"Station_JP" : "伊予土居", "Station_EN" : "Iyo-Doi", "MyStation" : "17", "StationNumber" : "Y26", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-doi.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.959024,133.428294", "JrHpUrl" : ""},
{"Station_JP" : "関川", "Station_EN" : "Sekigawa", "MyStation" : "18", "StationNumber" : "Y27", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/sekigawa.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.955777,133.392567", "JrHpUrl" : ""},
{"Station_JP" : "多喜浜", "Station_EN" : "Takihama", "MyStation" : "19", "StationNumber" : "Y28", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/takihama.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.970564,133.32415" , "JrHpUrl" : ""},
{"Station_JP" : "新居浜", "Station_EN" : "Niihama", "MyStation" : "20", "StationNumber" : "Y29", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/niihama.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.947996,133.294341", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/niihama/"},
{"Station_JP" : "中萩", "Station_EN" : "Nakahagi", "MyStation" : "21", "StationNumber" : "Y30", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/nakahagi.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.926168,133.253391", "JrHpUrl" : ""},
{"Station_JP" : "伊予西条", "Station_EN" : "Iyo-Saijo", "MyStation" : "22", "StationNumber" : "Y31", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-saijo.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.912492,133.187578", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/iyosaijo/index.html"},
{"Station_JP" : "石鎚山", "Station_EN" : "Ishizuchiyama", "MyStation" : "23", "StationNumber" : "Y32", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/ishizuchiyama.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.895746,133.157257", "JrHpUrl" : ""},
{"Station_JP" : "伊予小松", "Station_EN" : "Iyo-Komatsu", "MyStation" : "24", "StationNumber" : "Y34", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-komatsu.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.897567,133.116717", "JrHpUrl" : ""},
{"Station_JP" : "壬生川", "Station_EN" : "Nyūgawa", "MyStation" : "25", "StationNumber" : "Y36", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/nyugawa.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.929851,133.08552" , "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/nyugawa/"},
{"Station_JP" : "伊予三芳", "Station_EN" : "Iyo-Miyoshi", "MyStation" : "26", "StationNumber" : "Y37", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-miyoshi.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.954251,133.06422" , "JrHpUrl" : ""},
{"Station_JP" : "伊予桜井", "Station_EN" : "Iyo-Sakurai", "MyStation" : "27", "StationNumber" : "Y38", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-sakurai.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.012073,133.03593" , "JrHpUrl" : ""},
{"Station_JP" : "伊予富田", "Station_EN" : "Iyo-Tomita", "MyStation" : "28", "StationNumber" : "Y39", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-tomita.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.036447,133.008989", "JrHpUrl" : ""},
{"Station_JP" : "今治", "Station_EN" : "Imabari", "MyStation" : "29", "StationNumber" : "Y40", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/imabari.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.064167,132.993655", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/imabari/"},
{"Station_JP" : "波止浜", "Station_EN" : "Hashihama", "MyStation" : "30", "StationNumber" : "Y41", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/hashihama.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.098067,132.968786", "JrHpUrl" : ""},
{"Station_JP" : "波方", "Station_EN" : "Namikata", "MyStation" : "31", "StationNumber" : "Y42", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/namikata.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.095134,132.941888", "JrHpUrl" : ""},
{"Station_JP" : "大西", "Station_EN" : "Ōnishi", "MyStation" : "32", "StationNumber" : "Y43", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/onishi.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.066125,132.929367", "JrHpUrl" : ""},
{"Station_JP" : "伊予亀岡", "Station_EN" : "Iyo-kameoka", "MyStation" : "33", "StationNumber" : "Y44", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-kameoka.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.053886,132.874104", "JrHpUrl" : ""},
{"Station_JP" : "菊間", "Station_EN" : "Kikuma", "MyStation" : "34", "StationNumber" : "Y45", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/kikuma.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.033421,132.840883", "JrHpUrl" : ""},
{"Station_JP" : "浅海", "Station_EN" : "Asanami", "MyStation" : "35", "StationNumber" : "Y46", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/asanami.pdf", "StationMap":"https://www.google.co.jp/maps/place/34.010028,132.802691", "JrHpUrl" : ""},
{"Station_JP" : "大浦", "Station_EN" : "Ōura", "MyStation" : "36", "StationNumber" : "Y47", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/oura.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.999461,132.77555" , "JrHpUrl" : ""},
{"Station_JP" : "伊予北条", "Station_EN" : "Iyo-Hōjō", "MyStation" : "37", "StationNumber" : "Y48", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-hojo.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.972595,132.775097", "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/iyohojo/"},
{"Station_JP" : "粟井", "Station_EN" : "Awai", "MyStation" : "38", "StationNumber" : "Y50", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/awai.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.942729,132.77044" , "JrHpUrl" : ""},
{"Station_JP" : "堀江", "Station_EN" : "Horie", "MyStation" : "39", "StationNumber" : "Y52", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/horie.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.905558,132.753212", "JrHpUrl" : ""},
{"Station_JP" : "伊予和気", "Station_EN" : "Iyo-Wake", "MyStation" : "40", "StationNumber" : "Y53", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/iyo-wake.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.889798,132.740708", "JrHpUrl" : ""},
{"Station_JP" : "三津浜", "Station_EN" : "Mitsuhama", "MyStation" : "41", "StationNumber" : "Y54", "DispNum" : "2", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/mitsuhama.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.861165,132.728612", "JrHpUrl" : ""},
{"Station_JP" : "松山", "Station_EN" : "Matsuyama", "MyStation" : "42", "StationNumber" : "Y55", "DispNum" : "3", "StationTimeTable" : "http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/matsuyama.pdf", "StationMap":"https://www.google.co.jp/maps/place/33.84039,132.75139" , "JrHpUrl" : "http://www.jr-shikoku.co.jp/01_trainbus/kakueki/matsuyama/"}
]

BIN
assets/雑.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

View File

@@ -0,0 +1,802 @@
import React, { useEffect, useState, useRef } from "react";
import {
View,
LayoutAnimation,
ScrollView,
Linking,
Text,
TouchableOpacity,
TouchableWithoutFeedback,
TouchableHighlight,
Platform,
} from "react-native";
import { Ionicons, MaterialCommunityIcons } from "@expo/vector-icons";
import ActionSheet, {
SheetManager,
useScrollHandlers,
} from "react-native-actions-sheet";
import { useSafeAreaInsets } from "react-native-safe-area-context";
import { AS } from "../../storageControl";
import LottieView from "lottie-react-native";
import trainList from "../../assets/originData/trainList";
import { lineList } from "../../lib/getStationList";
import {
heightPercentageToDP,
widthPercentageToDP,
} from "react-native-responsive-screen";
import lineColorList from "../../assets/originData/lineColorList";
import { useCurrentTrain } from "../../stateBox/useCurrentTrain";
import { checkDuplicateTrainData } from "../../lib/checkDuplicateTrainData";
export const EachTrainInfo = (props) => {
if (!props.payload) return <></>;
const {
data,
navigate,
originalStationList,
openStationACFromEachTrainInfo = () => {},
from,
} = props.payload;
const [trainData, setTrainData] = useState([]);
const [isTop, setIsTop] = useState(true);
const [currentPosition, setCurrentPosition] = useState([]);
const [trainPositionSwitch, setTrainPositionSwitch] = useState("false");
const { currentTrain } = useCurrentTrain();
const [currentTrainData, setCurrentTrainData] = useState([]);
useEffect(() => {
setCurrentTrainData(
checkDuplicateTrainData(
currentTrain.filter((d) => d.num == data.trainNum)
)
);
}, [currentTrain]);
useEffect(() => {
//列車現在地アイコン表示スイッチ
AS.getItem("trainPositionSwitch")
.then((d) => {
if (d) {
setTrainPositionSwitch(d);
} else {
}
})
.catch((d) => AS.setItem("trainPositionSwitch", "false"));
}, []);
const insets = useSafeAreaInsets();
const getStationData = (stationName) => {
const Stations = stationList.map((a) =>
a.filter((d) => d.StationName == stationName)
);
const Station =
Stations &&
Stations.reduce((newArray, e) => {
return newArray.concat(e);
}, []);
if (!Station[0]) return [];
return Station.map((d) => d.StationNumber)[0];
};
useEffect(() => {
//currentTrainData.Pos = "鴨川~端岡"; //test
if (!currentTrainData?.Pos) return;
if (currentTrainData?.Pos.match("")) {
const pos = currentTrainData?.Pos.replace("(下り)", "")
.replace("(上り)", "")
.split("");
setCurrentPosition([getStationData(pos[0]), getStationData(pos[1])]);
} else {
setCurrentPosition([getStationData(currentTrainData?.Pos)]);
}
}, [currentTrainData]);
const stationList =
originalStationList &&
lineList.map((d) =>
originalStationList[d].map((a) => ({
StationNumber: a.StationNumber,
StationName: a.Station_JP,
}))
);
const stopStationIDList = trainData.map((i, index) => {
const [station, se, time] = i.split(",");
const Stations = stationList.map((a) =>
a.filter((d) => d.StationName == station)
);
const StationNumbers =
Stations &&
Stations.reduce((newArray, e) => {
return newArray.concat(e);
}, [])
.filter((d) => d.StationNumber)
.map((d) => d.StationNumber);
return StationNumbers[0];
});
function findReversalPoints(array) {
try {
// arrayは現在位置の駅ID(駅在宅の場合は1つの配列、駅間の場合は2つの配列)
// stopStationIDListは停車駅の駅IDの配列
if (!stopStationIDList.length) return [];
// arrayが二次元配列だったら早期リターン
if (!array instanceof Array) return [];
if (!array.length) return [];
if (array[0] instanceof Array) return [];
const arrayNumber = array.map((d) => ({
line: d
.split("")
.filter((s) => "A" < s && s < "Z")
.join(""),
ID: d
.split("")
.filter((s) => "0" <= s && s <= "9")
.join(""),
}));
const stopStationIDListNumber = stopStationIDList.map((d) => {
if (!d) return { line: [], ID: [] };
return {
line: d
.split("")
.filter((s) => "A" < s && s < "Z")
.join(""),
ID: d
.split("")
.filter((s) => "0" <= s && s <= "9")
.join(""),
};
});
// 完全一致
if (array.length == 1) {
const index = stopStationIDList.indexOf(array[0]);
if (index != -1) return [index];
// 通過駅の場合
for (let i = 0; i < stopStationIDListNumber.length - 1; i++) {
if (stopStationIDListNumber[i].ID < arrayNumber[0].ID) {
if (stopStationIDListNumber[i + 1].ID > arrayNumber[0].ID) {
return [i + 1];
}
}
if (stopStationIDListNumber[i].ID > arrayNumber[0].ID) {
if (stopStationIDListNumber[i + 1].ID < arrayNumber[0].ID) {
return [i + 1];
}
}
}
}
// 駅間の場合
if (array.length == 2) {
const index1 = stopStationIDList.indexOf(array[0]);
const index2 = stopStationIDList.indexOf(array[1]);
if (index1 != -1 && index2 != -1) {
// 駅間で通過駅も無い場合
if (index1 < index2) {
if (index1 + 1 == index2) {
return [index2];
} else {
const returnArray = [];
for (let i = index1 + 1; i <= index2; i++) {
returnArray.push(i);
}
return returnArray;
}
}
if (index1 > index2) {
if (index2 + 1 == index1) return [index1];
else {
const returnArray = [];
for (let i = index2 + 1; i <= index1; i++) {
returnArray.push(i);
}
return returnArray;
}
}
} else {
const getNearStationID = (stationID) => {
for (let i = 0; i <= stopStationIDListNumber.length; i++) {
if (stopStationIDListNumber[i].ID < stationID) {
if (stopStationIDListNumber[i + 1].ID > stationID) {
return i + 1;
}
}
if (stopStationIDListNumber[i].ID > stationID) {
if (stopStationIDListNumber[i + 1].ID < stationID) {
return i + 1;
}
}
}
};
let newIndex1 = index1;
let newIndex2 = index2;
if (index1 == -1) {
newIndex1 = getNearStationID(arrayNumber[0].ID);
}
if (index2 == -1) {
newIndex2 = getNearStationID(arrayNumber[1].ID);
}
if (newIndex1 && newIndex2) {
return [newIndex1, newIndex2];
}
// 通過駅の場合
}
return [];
}
} catch (e) {
console.log(e);
}
}
// 使用例
const points =
trainPositionSwitch == "true" ? findReversalPoints(currentPosition) : [];
useEffect(() => {
setIsTop(true);
if (!data.trainNum) return;
const TD = trainList[data.trainNum];
if (!TD) {
setTrainData([]);
return;
}
setTrainData(TD.split("#").filter((d) => d != ""));
}, [data]);
const getType = (string) => {
switch (string) {
case "express":
return "特急";
case "rapid":
return "快速";
default:
return "";
}
};
const migrateTrainName = (string) => {
return string
.replace("マリン", "マリンライナー")
.replace("ライナーライナー", "ライナー");
};
const actionSheetRef = useRef(null);
const scrollHandlers = useScrollHandlers("scrollview-1", actionSheetRef);
return (
<ActionSheet
gestureEnabled={isTop}
CustomHeaderComponent={<></>}
ref={actionSheetRef}
drawUnderStatusBar={false}
isModal={Platform.OS == "ios"}
containerStyle={
Platform.OS == "android"
? {
paddingBottom: insets.bottom,
}
: {}
}
useBottomSafeAreaPadding={Platform.OS == "android"}
>
<View
style={{
backgroundColor: "#0099CC",
borderTopRadius: 5,
borderColor: "dark",
borderWidth: 1,
}}
>
<View style={{ height: 26, width: "100%" }}>
<View
style={{
height: 6,
width: 45,
borderRadius: 100,
backgroundColor: "#f0f0f0",
marginVertical: 10,
alignSelf: "center",
}}
/>
</View>
<View
style={{ padding: 10, flexDirection: "row", alignItems: "center" }}
>
<Text style={{ fontSize: 20, fontWeight: "bold", color: "white" }}>
{data.limited
? getType(data.limited.split(":")[0]) +
migrateTrainName(
data.limited.split(":")[1] ||
(trainData.length > 0
? trainData[trainData.length - 1].split(",")[0] + "行き"
: " ")
)
: ""}
</Text>
<View style={{ flex: 1 }} />
<Text style={{ fontSize: 20, fontWeight: "bold", color: "white" }}>
{data.trainNum}
</Text>
{data.limited != undefined &&
getType(data.limited.split(":")[0]) &&
!data.limited.split(":")[1].match("サンポート") && (
<Ionicons
name="subway"
color="white"
size={30}
style={{ margin: 5 }}
onPress={() => {
LayoutAnimation.easeInEaseOut(); //setLoadingDelayData(true);
navigate("trainbase", {
info: "train.html?tn=" + data.trainNum,
from,
});
SheetManager.hide("EachTrainInfo");
}}
/>
)}
</View>
{from == "AllTrainDiagramView" || (
<ScrollView
style={{
flexDirection: "row",
//width: widthPercentageToDP("200%"),
minHeight: 200,
height: heightPercentageToDP("20%"),
}}
horizontal
pagingEnabled
>
<View
style={{
flexDirection: "row",
minHeight: 200,
height: heightPercentageToDP("20%"),
width: widthPercentageToDP("100%"),
}}
>
<View
style={{
flex: 1,
backgroundColor: "white",
borderRadius: 10,
padding: 10,
margin: 10,
}}
>
<Text style={{ fontSize: 15, color: "#0099CC" }}>
現在地 {currentPosition.toString()}
</Text>
<View style={{ flex: 1 }} />
{currentTrainData?.Pos && currentTrainData?.Pos.match("") ? (
<>
<Text
style={{
fontSize: 28,
color: "#0099CC",
textAlign: "right",
}}
>
{
currentTrainData?.Pos.replace("(下り)", "")
.replace("(上り)", "")
.split("")[0]
}
</Text>
<Text style={{ color: "#0099CC", textAlign: "right" }}>
</Text>
<Text
style={{
fontSize: 28,
color: "#0099CC",
textAlign: "right",
}}
>
{
currentTrainData?.Pos.replace("(下り)", "")
.replace("(上り)", "")
.split("")[1]
}
</Text>
</>
) : (
<Text
style={{
fontSize: 28,
color: "#0099CC",
textAlign: "right",
}}
>
{currentTrainData?.Pos}
</Text>
)}
</View>
<View style={{ flex: 1, flexDirection: "column" }}>
<View
style={{
flex: 1,
backgroundColor: "white",
borderRadius: 10,
padding: 10,
margin: 10,
}}
>
<Text style={{ fontSize: 15, color: "#0099CC" }}>
{isNaN(currentTrainData?.delay) ? "状態" : "遅延時分"}
</Text>
<View style={{ flex: 1 }} />
<Text
style={{
fontSize: 32,
color: "#0099CC",
textAlign: "right",
}}
>
{currentTrainData?.delay}
{isNaN(currentTrainData?.delay) ? "" : "分"}
</Text>
</View>
<View
style={{
flex: 1,
backgroundColor: "white",
borderRadius: 10,
padding: 10,
margin: 10,
}}
>
<Text style={{ fontSize: 15, color: "#0099CC" }}>列番</Text>
<Text
style={{
fontSize: 32,
color: "#0099CC",
textAlign: "right",
}}
>
{currentTrainData?.num}
</Text>
</View>
</View>
</View>
{/* <View
style={{
flexDirection: "column",
height: heightPercentageToDP("20%"),
flex: 1,
width: widthPercentageToDP("100%"),
}}
>
<View style={{ flex: 1, flexDirection: "row" }}>
<View
style={{
flex: 1,
backgroundColor: "white",
borderRadius: 10,
padding: 10,
margin: 10,
}}
>
<Text style={{ fontSize: 15, color: "#0099CC" }}>行先</Text>
<View style={{ flex: 1 }} />
<Text
style={{
fontSize: 20,
color: "#0099CC",
textAlign: "right",
}}
>
岡山
</Text>
</View>
<View
style={{
flex: 3,
backgroundColor: "white",
borderRadius: 10,
padding: 10,
margin: 10,
}}
>
<Text style={{ fontSize: 15, color: "#0099CC" }}>車両案内</Text>
<View style={{ flex: 1 }} />
<Text
style={{
fontSize: 20,
color: "#0099CC",
textAlign: "right",
}}
>
宇多津でうずしお号と連結
</Text>
</View>
</View>
<View style={{ flex: 1, flexDirection: "row" }}>
<View
style={{
flex: 1,
backgroundColor: "white",
borderRadius: 10,
padding: 10,
margin: 10,
}}
>
<Text style={{ fontSize: 15, color: "#0099CC" }}>
編成(使用車両2700系)
</Text>
<View style={{ flex: 1 }} />
<Text
style={{
fontSize: 20,
color: "#0099CC",
textAlign: "left",
}}
>
{"[<自][自>][アン自|指>][アン指|G>]"}
</Text>
</View>
</View>
</View> */}
</ScrollView>
)}
<View
style={{
alignItems: "center",
backgroundColor: "white",
flexDirection: "row",
}}
>
<View
style={{
padding: 8,
flexDirection: "row",
borderBottomWidth: 1,
borderBottomColor: "#f0f0f0",
flex: 1,
}}
>
<Text style={{ fontSize: 20 }}>停車駅</Text>
<View style={{ flex: 1 }} />
<View style={{ flexDirection: "row" }}>
{!isNaN(currentTrainData?.delay) &&
currentTrainData?.delay != 0 && (
<Text
style={{
fontSize: 15,
color: "black",
position: "absolute",
right: 110,
textAlign: "right",
textDecorationLine: "line-through",
}}
>
(定刻)
</Text>
)}
<Text
style={{
fontSize: 20,
color: isNaN(currentTrainData?.delay)
? "black"
: currentTrainData?.delay == 0
? "black"
: "red",
width: 60,
}}
>
見込
</Text>
<Text style={{ fontSize: 20, width: 50 }}></Text>
</View>
</View>
</View>
<ScrollView
{...scrollHandlers}
style={{
maxHeight: heightPercentageToDP(
from == "AllTrainDiagramView" ? "70%" : "50%"
),
}}
onScroll={(e) => {
if (!Platform.OS !== "android") return;
setIsTop(e.nativeEvent.contentOffset.y < 0);
}}
>
<View style={{ backgroundColor: "white", alignItems: "center" }}>
{/* <LottieView
autoPlay
loop
style={{ width: 150, height: 150, backgroundColor: "#fff" }}
source={require("../../assets/51690-loading-diamonds.json")}
/>
<Text>ほげほげふがふが</Text> */}
{trainData.map((i, index) => {
const [station, se, time] = i.split(",");
if(se == "提"){
return (
<TouchableWithoutFeedback
onPress={() => Linking.openURL(time)}
key={station}
>
<View style={{ flexDirection: "row" }}>
<View
style={{
padding: 8,
flexDirection: "row",
borderBottomWidth: 1,
borderBottomColor: "#f0f0f0",
flex: 1,
}}
>
<Text style={{ fontSize: 20 }}>{station}</Text>
<View style={{ flex: 1 }} />
<Text style={{ fontSize: 18 }}>
提供元<MaterialCommunityIcons name={"open-in-new"} color="black" size={20} />
</Text>
</View>
</View>
</TouchableWithoutFeedback>
);
}
const Stations = stationList.map((a) =>
a.filter((d) => d.StationName == station)
);
const StationNumbers =
Stations &&
Stations.reduce((newArray, e) => {
return newArray.concat(e);
}, [])
.filter((d) => d.StationNumber)
.map((d) => d.StationNumber);
const colorIDs =
StationNumbers != null
? StationNumbers.map((d) => {
return d.split("").filter((s) => "A" < s && s < "Z");
}).reduce((newArray, e) => {
return newArray.concat(e);
}, [])
: [];
const EachIDs =
StationNumbers != null
? StationNumbers.map((d) => {
return d
.split("")
.filter((s) => "0" <= s && s <= "9")
.join("");
})
: [];
const date = new Date();
if (time) {
date.setHours(time.split(":")[0], time.split(":")[1]);
}
if (!isNaN(currentTrainData?.delay)) {
date.setMinutes(date.getMinutes() + currentTrainData?.delay);
}
const timeString = date.toTimeString().split(" ")[0].split(":");
return (
<TouchableWithoutFeedback
onPress={() => openStationACFromEachTrainInfo(station)}
key={station}
>
<View style={{ flexDirection: "row" }}>
<View
style={{
width: 35,
position: "relative",
marginHorizontal: 15,
flexDirection: "row",
height: "101%",
}}
>
{colorIDs.map((color, index) => (
<View
style={{
backgroundColor: lineColorList[color],
flex: 1,
}}
key={color}
>
<View style={{ flex: 1 }} />
<Text
style={{
color: "white",
textAlign: "center",
fontSize: 10,
fontWeight: "bold",
}}
>
{colorIDs[index]}
</Text>
<Text
style={{
color: "white",
textAlign: "center",
fontSize: 10,
fontWeight: "bold",
}}
>
{EachIDs[index]}
</Text>
<View style={{ flex: 1 }} />
</View>
))}
</View>
<View
style={{
padding: 8,
flexDirection: "row",
borderBottomWidth: 1,
borderBottomColor: "#f0f0f0",
flex: 1,
}}
>
<Text style={{ fontSize: 20 }}>{station}</Text>
<View style={{ flex: 1 }} />
{points && points.findIndex((d) => d == index) >= 0 ? (
<Text
style={{
fontSize: 20,
marginRight: 70,
}}
>
🚊
</Text>
) : null}
{!isNaN(currentTrainData?.delay) &&
currentTrainData?.delay != 0 && (
<Text
style={{
fontSize: 15,
color: "black",
width: 60,
position: "absolute",
right: 120,
textAlign: "right",
textDecorationLine: "line-through",
}}
>
{time}
</Text>
)}
<Text
style={{
fontSize: 20,
color: isNaN(currentTrainData?.delay)
? "black"
: currentTrainData?.delay == 0
? "black"
: "red",
width: 60,
}}
>
{timeString[0]}:{timeString[1]}
</Text>
<Text style={{ fontSize: 18, width: 50 }}>
{se?.replace("発", "出発").replace("着", "到着")}
</Text>
</View>
</View>
</TouchableWithoutFeedback>
);
})}
<View style={{ flexDirection: "row" }}>
<View
style={{
padding: 8,
flexDirection: "row",
borderBottomWidth: 1,
borderBottomColor: "#f0f0f0",
flex: 1,
}}
>
<Text style={{ fontSize: 20 }}> </Text>
<View style={{ flex: 1 }} />
</View>
</View>
</View>
</ScrollView>
</View>
</ActionSheet>
);
};

View File

@@ -1,56 +1,43 @@
import React, { Component, useRef, useState, useEffect } from "react";
import React, { useRef } from "react";
import {
StatusBar,
Platform,
View,
LayoutAnimation,
ScrollView,
Linking,
Text,
TouchableOpacity,
Platform,
} from "react-native";
import Image from "react-native-remote-svg";
import Constants from "expo-constants";
import { List, ListItem } from "native-base";
import Icon from "react-native-vector-icons/Entypo";
import * as Location from "expo-location";
import StatusbarDetect from "../../StatusbarDetect";
var Status = StatusbarDetect();
import { useNavigation } from "@react-navigation/native";
import AutoHeightImage from "react-native-auto-height-image";
import {
widthPercentageToDP as wp,
heightPercentageToDP as hp,
} from "react-native-responsive-screen";
import {
FontAwesome,
Fontisto,
Foundation,
Ionicons,
MaterialCommunityIcons,
} from "@expo/vector-icons";
import * as WebBrowser from "expo-web-browser";
import ActionSheet from "react-native-actions-sheet";
import { Ionicons, MaterialCommunityIcons } from "@expo/vector-icons";
import ActionSheet, { useScrollHandlers } from "react-native-actions-sheet";
import LottieView from "lottie-react-native";
import SvgUri from "react-native-svg-uri";
export const JRSTraInfo = (props) => {
const {
JRSTraInfoEXAcSR,
getTime,
loadingDelayData,
setLoadingDelayData,
delayData,
} = props;
import { useSafeAreaInsets } from "react-native-safe-area-context";
import { useTrainDelayData } from "../../stateBox/useTrainDelayData";
export const JRSTraInfo = () => {
const { getTime, delayData, loadingDelayData, setLoadingDelayData } =
useTrainDelayData();
const actionSheetRef = useRef(null);
const scrollHandlers = useScrollHandlers("scrollview-1", actionSheetRef);
const insets = useSafeAreaInsets();
return (
<ActionSheet
ref={JRSTraInfoEXAcSR}
gestureEnabled
CustomHeaderComponent={() => { }}
CustomHeaderComponent={<></>}
ref={actionSheetRef}
isModal={Platform.OS == "ios"}
containerStyle={
Platform.OS == "android"
? {
paddingBottom: insets.bottom,
}
: {}
}
useBottomSafeAreaPadding={Platform.OS == "android"}
>
<View
style={{
backgroundColor: "#0099CC",
borderRadius: 5,
borderTopRadius: 5,
borderColor: "dark",
borderWidth: 1,
}}
@@ -80,8 +67,8 @@ export const JRSTraInfo = (props) => {
<Text style={{ fontSize: 30, fontWeight: "bold", color: "white" }}>
{getTime
? getTime.toLocaleTimeString("ja-JP").split(":")[0] +
":" +
getTime.toLocaleTimeString("ja-JP").split(":")[1]
":" +
getTime.toLocaleTimeString("ja-JP").split(":")[1]
: NaN}{" "}
</Text>
<Ionicons
@@ -94,13 +81,11 @@ export const JRSTraInfo = (props) => {
}}
/>
</View>
<ScrollView>
<ScrollView {...scrollHandlers}>
<View
style={{
padding: 10,
backgroundColor: "white",
borderBottomLeftRadius: 5,
borderBottomRightRadius: 5,
}}
>
{loadingDelayData ? (
@@ -116,7 +101,7 @@ export const JRSTraInfo = (props) => {
delayData.map((d) => {
let data = d.split(" ");
return (
<View style={{ flexDirection: "row" }}>
<View style={{ flexDirection: "row" }} key={data[1]}>
<Text style={{ flex: 15, fontSize: 20 }}>
{data[0].replace("\n", "")}
</Text>
@@ -148,12 +133,14 @@ export const JRSTraInfo = (props) => {
borderRadius: 5,
alignItems: "center",
}}
onPress={() => Linking.openURL("https://twitter.com/JRSTrainfoEX")}
onPress={() =>
Linking.openURL("https://mstdn.y-zu.org/@JRSTraInfoEX")
}
>
<MaterialCommunityIcons name="twitter" color="white" size={30} />
<MaterialCommunityIcons name="mastodon" color="white" size={30} />
<View style={{ flex: 1 }} />
<Text style={{ fontSize: 25, fontWeight: "bold", color: "white" }}>
TwitterBOTはこちら
MastodonBOTはこちら
</Text>
<View style={{ flex: 1 }} />
<Text style={{ fontSize: 25, fontWeight: "bold", color: "white" }}>

View File

@@ -1,27 +1,70 @@
import React from "react";
import { View, ScrollView, Linking } from "react-native";
import StatusbarDetect from "../../StatusbarDetect";
var Status = StatusbarDetect();
import React, { useState, useEffect } from "react";
import { View, Linking, Text, TouchableOpacity, Platform } from "react-native";
import AutoHeightImage from "react-native-auto-height-image";
import { FontAwesome, Foundation, Ionicons } from "@expo/vector-icons";
import { useSafeAreaInsets } from "react-native-safe-area-context";
import ActionSheet from "react-native-actions-sheet";
import Sign from "../../components/駅名表/Sign";
import { TicketBox } from "../atom/TicketBox";
import { widthPercentageToDP as wp } from "react-native-responsive-screen";
import lineColorList from "../../assets/originData/lineColorList";
import { getPDFViewURL } from "../../lib/getPdfViewURL";
import { useBusAndTrainData } from "../../stateBox/useBusAndTrainData";
import { AS } from "../../storageControl";
export const StationDeteilView = (props) => {
const { StationBoardAcSR, currentStation, originalStationList } = props;
if (!props.payload) return <></>;
const {
currentStation,
originalStationList,
navigate,
onExit,
goTo,
useShow,
} = props.payload;
const { busAndTrainData } = useBusAndTrainData();
const [trainBus, setTrainBus] = useState();
useEffect(() => {
if (!currentStation) return () => {};
const data = busAndTrainData.filter((d) => {
return d.name === currentStation[0].Station_JP;
});
if (data.length == 0) {
setTrainBus();
}
setTrainBus(data[0]);
}, [currentStation]);
const [usePDFView, setUsePDFView] = useState(undefined);
useEffect(() => {
AS.getItem("usePDFView").then(setUsePDFView);
}, []);
const info =
currentStation &&
(currentStation[0].StationTimeTable.match(".pdf")
? getPDFViewURL(currentStation[0].StationTimeTable)
: currentStation[0].StationTimeTable);
const insets = useSafeAreaInsets();
return (
<ActionSheet
ref={StationBoardAcSR}
gestureEnabled
CustomHeaderComponent={() => {}}
CustomHeaderComponent={<></>}
isModal={Platform.OS == "ios"}
containerStyle={
Platform.OS == "android"
? {
paddingBottom: insets.bottom,
}
: {}
}
useBottomSafeAreaPadding={Platform.OS == "android"}
>
<View
key={currentStation}
style={{
backgroundColor: "white",
borderRadius: 5,
borderTopRadius: 5,
borderColor: "dark",
borderWidth: 1,
}}
@@ -40,12 +83,60 @@ export const StationDeteilView = (props) => {
</View>
<View>
{currentStation && (
<Sign
currentStation={currentStation}
originalStationList={originalStationList}
oP={() => Linking.openURL(currentStation[0].StationTimeTable)}
/>
<View
style={{
margin: 10,
marginHorizontal: wp("10%"),
}}
>
<Sign
currentStation={currentStation}
originalStationList={originalStationList}
oP={() => {
usePDFView == "true"
? Linking.openURL(currentStation[0].StationTimeTable)
: navigate("howto", {
info,
goTo,
useShow,
});
onExit();
}}
oLP={() => Linking.openURL(currentStation[0].StationTimeTable)}
/>
</View>
)}
{currentStation &&
currentStation.map((d) => (
<NexPreStationLine
currentStation={d}
originalStationList={originalStationList}
/>
))}
{currentStation &&
currentStation[0].JrHpUrl &&
currentStation[0].StationNumber != "M12" && (
<駅構内図 //高松/阿波池田&後免&須崎kounai.png児島例外/
oP={() => {
navigate("howto", {
info:
currentStation[0].JrHpUrl.replace("/index.html", "/") +
"/kounai_map.html",
goTo,
useShow,
});
onExit();
}}
oLP={() => {
Linking.openURL(
currentStation[0].JrHpUrl.replace("/index.html", "/") +
"/kounai_map.html"
);
}}
uri={currentStation[0].JrHpUrl.replace("/index.html", "/")}
/>
)}
{currentStation && (
<View style={{ flexDirection: "row" }}>
{!currentStation[0].JrHpUrl || (
@@ -53,7 +144,16 @@ export const StationDeteilView = (props) => {
backgroundColor={"#AD7FA8"}
icon={<Foundation name="web" color="white" size={50} />}
flex={1}
onPressButton={() =>
onPressButton={() => {
navigate("howto", {
info: currentStation[0].JrHpUrl,
goTo,
useShow,
});
onExit();
}}
onLongPressButton={() =>
Linking.openURL(currentStation[0].JrHpUrl)
}
>
@@ -65,7 +165,18 @@ export const StationDeteilView = (props) => {
backgroundColor={"#8F5902"}
icon={<FontAwesome name="table" color="white" size={50} />}
flex={1}
onPressButton={() =>
onPressButton={() => {
usePDFView == "true"
? Linking.openURL(currentStation[0].StationTimeTable)
: navigate("howto", {
info,
goTo,
useShow,
});
onExit();
}}
onLongPressButton={() =>
Linking.openURL(currentStation[0].StationTimeTable)
}
>
@@ -81,7 +192,26 @@ export const StationDeteilView = (props) => {
Linking.openURL(currentStation[0].StationMap)
}
>
GoogleMap
Map
</TicketBox>
)}
{!trainBus || (
<TicketBox
backgroundColor={"#CE5C00"}
icon={<Ionicons name="bus" color="white" size={50} />}
flex={1}
onPressButton={() => {
navigate("howto", {
info: trainBus.address,
goTo,
useShow,
});
onExit();
}}
onLongPressButton={() => Linking.openURL(trainBus.address)}
>
並行バス
</TicketBox>
)}
</View>
@@ -91,3 +221,280 @@ export const StationDeteilView = (props) => {
</ActionSheet>
);
};
const StationName = (props) => {
const { stringData, ss } = props;
return (
<View style={ss}>
<Text style={styleSheet.下枠駅名}>{stringData.Station_JP}</Text>
<Text style={styleSheet.下枠駅名}>{stringData.Station_EN}</Text>
</View>
);
};
const NexPreStationLine = ({ currentStation, originalStationList }) => {
const [preStation, setPreStation] = useState();
const [nexStation, setNexStation] = useState();
const [lineName, setLineName] = useState();
useEffect(() => {
getPreNextStation(currentStation);
}, [currentStation]);
useEffect(() => {
if (!currentStation) return () => {};
getPreNextStation(currentStation);
}, []);
const getPreNextStation = (now) => {
const lineList = [
"予讃線(高松-松山間)[Y]",
"予讃線(松山-宇和島間)[U]",
"予讃線/愛ある伊予灘線(向井原-伊予大洲間)[S]",
"土讃線(多度津-高知間)[D]",
"土讃線(高知-窪川間)[K]",
"高徳線(高松-徳島間)[T]",
"徳島線(徳島-阿波池田)[B]",
"鳴門線(池谷-鳴門間)[N]",
"瀬戸大橋線(宇多津-児島間)[M]",
];
let returnData;
lineList.forEach((d) => {
let cache = originalStationList[d].findIndex(
(data) => data.StationNumber == now.StationNumber
);
if (cache != -1) {
returnData = [
originalStationList[d][cache - 1],
originalStationList[d][cache + 1],
d,
];
}
});
setPreStation(returnData[0]);
setNexStation(returnData[1]);
setLineName(returnData[2]);
};
return (
<View
style={{
height: 50,
backgroundColor: lineName
? lineColorList[lineName.split("[")[1].replace("]", "")]
: "red",
flexDirection: "row",
alignContent: "center",
alignItems: "center",
}}
>
<View style={styleSheet.下枠フレーム}>
{preStation ? (
<>
<Text style={styleSheet.下枠左右マーク}></Text>
{preStation.StationNumber ? (
<View style={styleSheet.下枠駅ナンバー}>
<View style={{ flex: 1 }} />
<Text
style={{
fontSize: parseInt("10%"),
color: "white",
}}
>
{preStation.StationNumber}
</Text>
<View style={{ flex: 1 }} />
</View>
) : (
<></>
)}
<StationName
stringData={preStation}
ss={{ flex: 1, alignItems: "flex-start" }}
/>
</>
) : (
<></>
)}
</View>
<Text
style={{
fontSize: parseInt("10%"),
color: "white",
textAlign: "center",
}}
>
{lineName &&
lineName
.split("(")
.map((d, index) => (index == 1 ? "(" + d : d))
.join("\n")}
</Text>
<View style={styleSheet.下枠フレーム}>
{nexStation ? (
<>
<StationName
stringData={nexStation}
ss={{ flex: 1, alignItems: "flex-end" }}
/>
{nexStation.StationNumber ? (
<View style={styleSheet.下枠駅ナンバー}>
<View style={{ flex: 1 }} />
<Text style={{ fontSize: parseInt("15%"), color: "white" }}>
{nexStation.StationNumber}
</Text>
<View style={{ flex: 1 }} />
</View>
) : (
<></>
)}
<Text style={styleSheet.下枠左右マーク}></Text>
</>
) : (
<></>
)}
</View>
</View>
);
};
const 駅構内図 = (props) => {
const [open, setOpen] = useState(false);
return (
<>
<TouchableOpacity
style={{
height: 50,
backgroundColor: "#888A85",
flexDirection: "column",
alignContent: "center",
alignItems: "center",
margin: 2,
}}
onPress={props.oP}
onLongPress={props.oLP}
//onPress={() => setOpen(!open)}
>
<View style={{ flex: 1 }} />
<Text
style={{
color: "white",
textAlign: "center",
textAlignVertical: "center",
flex: 1,
}}
>
{open ? "駅構内図を非表示" : "駅構内図を表示"}
</Text>
<View style={{ flex: 1 }} />
</TouchableOpacity>
<View>
{open && (
<>
<AutoHeightImage
source={{ uri: props.uri + "images/kounai.gif" }}
resizeMode="contain"
width={wp("100%")}
/>
<AutoHeightImage
source={{ uri: props.uri + "images/kounai.png" }}
resizeMode="contain"
width={wp("100%")}
/>
<AutoHeightImage
source={{ uri: props.uri + "images/kounai_1f.gif" }}
resizeMode="contain"
width={wp("100%")}
/>
<AutoHeightImage
source={{ uri: props.uri + "images/kounai_2f.png" }}
resizeMode="contain"
width={wp("100%")}
/>
</>
)}
</View>
</>
);
};
const styleSheet = {
外枠: {
width: wp("80%"),
height: (wp("80%") / 20) * 9,
borderColor: "#2E94BB",
borderWidth: 1,
backgroundColor: "white",
},
下帯: {
position: "absolute",
bottom: "0%",
left: "0%",
width: "100%",
height: "30%",
backgroundColor: "#2E94BB",
},
JRStyle: {
position: "absolute",
top: "2%",
left: "2%",
fontWeight: "bold",
fontSize: parseInt("30%"),
color: "#2E94BB",
},
stationNameAreaOverWrap: {
position: "absolute",
top: "10%",
alignContent: "center",
flexDirection: "row",
},
Station_JP: {
fontWeight: "bold",
fontSize: parseInt("40%"),
color: "#005170",
},
Station_EN: {
fontWeight: "bold",
fontSize: parseInt("15%"),
color: "#005170",
},
下帯内容: {
position: "absolute",
bottom: "0%",
height: "30%",
width: "100%",
alignItems: "center",
flexDirection: "column",
},
下枠フレーム: {
flex: 1,
flexDirection: "row",
alignContent: "center",
height: wp("10%"),
},
下枠左右マーク: {
fontWeight: "bold",
fontSize: parseInt("20%"),
color: "white",
paddingHorizontal: 10,
textAlignVertical: "center",
},
下枠駅ナンバー: {
alignContent: "center",
alignItems: "center",
width: wp("8%"),
height: wp("8%"),
margin: wp("1%"),
borderColor: "white",
borderWidth: parseInt("2%"),
borderRadius: parseInt("100%"),
},
下枠駅名: {
fontWeight: "bold",
fontSize: parseInt("15%"),
color: "white",
flex: 1,
paddingHorizontal: 0,
marginVertical: 0,
textAlignVertical: "center",
},
};

View File

@@ -0,0 +1,10 @@
import { registerSheet } from "react-native-actions-sheet";
import { EachTrainInfo } from "./EachTrainInfo";
import { JRSTraInfo } from "./JRSTraInfo";
import { StationDeteilView } from "./StationDeteilView";
registerSheet("EachTrainInfo", EachTrainInfo);
registerSheet("JRSTraInfo", JRSTraInfo);
registerSheet("StationDetailView", StationDeteilView);
export {};

View File

@@ -0,0 +1,164 @@
import React, { useRef, useState, useEffect } from "react";
import {
View,
Text,
TouchableOpacity,
Linking,
ScrollView,
FlatList,
KeyboardAvoidingView,
TextInput,
Platform,
Keyboard,
} from "react-native";
import MapView, { Marker } from "react-native-maps";
import { MaterialCommunityIcons } from "@expo/vector-icons";
import { useCurrentTrain } from "../stateBox/useCurrentTrain";
import { useAreaInfo } from "../stateBox/useAreaInfo";
import { useAllTrainDiagram } from "../stateBox/useAllTrainDiagram";
import { customTrainDataDetector } from "./custom-train-data";
import { getStationList, lineList } from "../lib/getStationList";
import { getTrainType } from "../lib/getTrainType";
import { checkDuplicateTrainData } from "../lib/checkDuplicateTrainData";
import { SheetManager } from "react-native-actions-sheet";
export default function AllTrainDiagramView({ navigation: { navigate } }) {
const { currentTrain } = useCurrentTrain();
const { areaInfo } = useAreaInfo();
const { allTrainDiagram } = useAllTrainDiagram();
const [originalStationList, setOriginalStationList] = useState(); // 第一要素
const [keyList, setKeyList] = useState(); // 第二要素
useEffect(() => getStationList().then(setOriginalStationList), []);
useEffect(
() => allTrainDiagram && setKeyList(Object.keys(allTrainDiagram)),
[]
);
const [input, setInput] = useState(""); // 文字入力
const [keyBoardVisible, setKeyBoardVisible] = useState(false);
useEffect(() => {
const showSubscription = Keyboard.addListener("keyboardDidShow", () => {
setKeyBoardVisible(true);
});
const hideSubscription = Keyboard.addListener("keyboardDidHide", () => {
setKeyBoardVisible(false);
});
return () => {
showSubscription.remove();
hideSubscription.remove();
};
}, []);
const openTrainInfo = (d) => {
const train = customTrainDataDetector(d);
let TrainNumber = "";
if (train.trainNumDistance != undefined) {
const timeInfo =
parseInt(d.replace("M", "").replace("D", "")) - train.trainNumDistance;
TrainNumber = timeInfo + "号";
}
const payload = {
data: {
trainNum: d,
limited: `${getTrainType(train.type).data}:${
train.trainName
}${TrainNumber}`,
},
navigate,
originalStationList,
from: "AllTrainDiagramView",
};
SheetManager.show("EachTrainInfo", {
payload,
});
};
return (
<View style={{ backgroundColor: "#0099CC", height: "100%" }}>
<FlatList
style={{ flex: 1 }}
data={keyList?.filter((d) => d.includes(input))}
renderItem={({ item }) => (
<Item openTrainInfo={openTrainInfo} id={item} />
)}
keyExtractor={(item) => item}
initialNumToRender={100}
/>
<KeyboardAvoidingView
behavior="padding"
keyboardVerticalOffset={80}
enabled={Platform.OS === "ios"}
>
<View
style={{
height: 35,
margin: 5,
alignItems: "center",
backgroundColor: "#F4F4F4",
flexDirection: "row",
paddingLeft: 10,
paddingRight: 10,
borderRadius: 25,
borderColor: "#F4F4F4",
}}
>
<TextInput
placeholder="列番を入力してフィルタリングします。"
onFocus={() => {
setKeyBoardVisible(true);
}}
onEndEditing={() => {}}
onChange={(ret) => {
setInput(ret.nativeEvent.text);
}}
value={input}
style={{ flex: 1 }}
/>
</View>
</KeyboardAvoidingView>
<TouchableOpacity
style={{
padding: 10,
flexDirection: "row",
borderColor: "white",
borderWidth: 1,
margin: 10,
borderRadius: 5,
alignItems: "center",
display:
Platform.OS === "ios" ? "flex" : keyBoardVisible ? "none" : "flex",
}}
onPress={() => navigate("menu")}
>
<View style={{ flex: 1 }} />
<Text style={{ fontSize: 25, fontWeight: "bold", color: "white" }}>
閉じる
</Text>
<View style={{ flex: 1 }} />
</TouchableOpacity>
</View>
);
}
const Item = ({ id, openTrainInfo }) => {
return (
<TouchableOpacity
style={{
padding: 5,
flexDirection: "row",
borderColor: "white",
borderWidth: 1,
margin: 5,
borderRadius: 5,
alignItems: "center",
}}
onPress={() => openTrainInfo(id)}
>
<View style={{ flex: 1 }} />
<Text style={{ fontSize: 25, fontWeight: "bold", color: "white" }}>
{id}
</Text>
<View style={{ flex: 1 }} />
</TouchableOpacity>
);
};

View File

@@ -0,0 +1,51 @@
import React, { useRef } from "react";
import { View, Text, TouchableOpacity, Linking } from "react-native";
import MapView, { Marker } from "react-native-maps";
import { MaterialCommunityIcons } from "@expo/vector-icons";
import { useCurrentTrain } from "../stateBox/useCurrentTrain";
export default function CurrentTrainListView({ navigation: { navigate } }) {
const { currentTrain } = useCurrentTrain();
return (
<View style={{ height: "100%", backgroundColor: "#0099CC" }}>
{currentTrain && currentTrain.map((d) => <Text>{d.num}</Text>)}
<TouchableOpacity
style={{
padding: 10,
flexDirection: "row",
borderColor: "white",
borderWidth: 1,
margin: 10,
borderRadius: 5,
alignItems: "center",
}}
onPress={() => navigate("menu")}
>
<View style={{ flex: 1 }} />
<Text style={{ fontSize: 25, fontWeight: "bold", color: "white" }}>
閉じる
</Text>
<View style={{ flex: 1 }} />
</TouchableOpacity>
</View>
);
}
const UsefulBox = (props) => {
const { icon, backgroundColor, flex, onPressButton, children } = props;
return (
<TouchableOpacity
style={{
flex: flex,
backgroundColor: backgroundColor,
padding: 10,
alignItems: "center",
margin: 2,
}}
onPress={onPressButton}
>
<MaterialCommunityIcons name={icon} color="white" size={50} />
<Text style={{ color: "white", fontWeight: "bold", fontSize: 18 }}>
{children}
</Text>
</TouchableOpacity>
);
};

101
components/FavoriteList.js Normal file
View File

@@ -0,0 +1,101 @@
import React from "react";
import { View, Text, TouchableOpacity, ScrollView } from "react-native";
import { ListItem } from "native-base";
import Icon from "react-native-vector-icons/Entypo";
import { useFavoriteStation } from "../stateBox/useFavoriteStation";
export default function FavoriteList({ navigation, webview, stationData }) {
const { navigate } = navigation;
const { favoriteStation } = useFavoriteStation();
return (
<View style={{ height: "100%", backgroundColor: "#0099CC" }}>
<Text
style={{
textAlign: "center",
fontSize: 25,
color: "white",
fontWeight: "bold",
paddingVertical: 10,
}}
>
位置情報クイック移動メニュー
</Text>
<ScrollView style={{ height: "100%", backgroundColor: "white" }}>
{favoriteStation
.filter((d) => d[0].StationMap)
.map((currentStation) => {
return (
<ListItem
onPress={() => {
const getStationLine = (now) => {
const returnData = Object.keys(stationData).filter((d) => {
const cache = stationData[d].findIndex(
(data) => data.Station_JP == now.Station_JP
);
return cache != -1;
});
return returnData[0];
};
const lineName = getStationLine(currentStation[0]);
webview.current?.injectJavaScript(
`MoveDisplayStation('${lineName}_${currentStation[0].MyStation}_${currentStation[0].Station_JP}')`
);
navigate("Apps");
}}
>
<Text style={{ fontSize: 20, flex: 2 }}>
{currentStation
.map((d) => d.StationNumber)
.filter((d) => d !== null)
.join("/")}
</Text>
<Text style={{ fontSize: 20, flex: 3 }}>
{currentStation[0].Station_JP}
</Text>
<View
style={{
flex: 2,
flexDirection: "row",
alignContent: "center",
alignItems: "center",
}}
>
<View style={{ flex: 1 }} />
<Text style={{ fontSize: 20 }}>移動する</Text>
<Icon name="chevron-right" size={20} />
</View>
</ListItem>
);
})}
</ScrollView>
<Text
style={{
backgroundColor: "white",
borderWidth: 1,
borderStyle: "solid",
}}
>
お気に入り登録した駅のうち位置情報システムで移動可能な駅が表示されていますタップすることで位置情報システムの当該の駅に移動します
</Text>
<TouchableOpacity
style={{
padding: 10,
flexDirection: "row",
borderColor: "white",
borderWidth: 1,
margin: 10,
borderRadius: 5,
alignItems: "center",
}}
onPress={() => navigation.goBack()}
>
<View style={{ flex: 1 }} />
<Text style={{ fontSize: 25, fontWeight: "bold", color: "white" }}>
閉じる
</Text>
<View style={{ flex: 1 }} />
</TouchableOpacity>
</View>
);
}

View File

@@ -7,8 +7,8 @@ export const TextBox = (props) => {
style={{
flex: flex,
backgroundColor: backgroundColor,
padding: 10,
height: 70,
padding: 5,
minHeight: 70,
alignItems: "center",
alignContent: "center",
margin: 2,

View File

@@ -1,7 +1,14 @@
import { TouchableOpacity, Text } from "react-native";
export const TicketBox = (props) => {
const { icon, backgroundColor, flex, onPressButton, children } = props;
const {
icon,
backgroundColor,
flex,
onPressButton,
children,
onLongPressButton,
} = props;
return (
<TouchableOpacity
style={{
@@ -14,6 +21,7 @@ export const TicketBox = (props) => {
alignItems: "center",
}}
onPress={onPressButton}
onLongPress={onLongPressButton}
>
<Text style={{ color: "white", fontWeight: "bold", fontSize: 18 }}>
{children}

View File

@@ -2,7 +2,6 @@ export const customTrainDataDetector = (TrainNumber) => {
switch (TrainNumber) {
//しおかぜメイン
//8000 ノーマル
case "2M":
case "4M":
case "6M":
case "14M":
@@ -27,10 +26,18 @@ export const customTrainDataDetector = (TrainNumber) => {
trainNumDistance: 0,
info: "いしづちと併結 / 8000系で運転",
};
case "2M":
return {
type: "LTDEXP",
trainName: "しおかぜ",
trainIcon: "http://www.trainfrontview.net/b/s8000nr.png",
trainNumDistance: 0,
info: "8000系で運転",
};
//8000 アンパン
case "10M":
case "22M":
case "9M":
case "10M":
case "21M":
return {
type: "LTDEXP",
@@ -158,22 +165,36 @@ export const customTrainDataDetector = (TrainNumber) => {
//南風 2700ーマル
case "34D":
case "58D":
case "31D":
case "51D":
return {
type: "LTDEXP",
trainName: "南風",
trainIcon: "http://www.trainfrontview.net/b/s2700.png",
trainNumDistance: 30,
info: "しまんとと併結 / 2700系で運転",
};
case "52D":
case "53D":
return {
type: "LTDEXP",
trainName: "南風",
trainIcon: "http://www.trainfrontview.net/b/s2700.png",
trainNumDistance: 30,
info: "うずしおと併結 / 2700系で運転",
};
case "38D":
case "40D":
case "42D":
case "46D":
case "50D":
case "52D":
case "54D":
case "58D":
case "31D":
case "35D":
case "39D":
case "41D":
case "43D":
case "47D":
case "51D":
case "53D":
case "55D":
return {
type: "LTDEXP",
@@ -182,14 +203,22 @@ export const customTrainDataDetector = (TrainNumber) => {
trainNumDistance: 30,
info: "2700系で運転",
};
//2700アンパン
case "32D":
case "36D":
case "37D":
return {
type: "LTDEXP",
trainName: "南風",
trainIcon: "http://www.trainfrontview.net/f/s2700apr.png",
trainNumDistance: 30,
info: "うずしおと連結 / アンパンマン列車で運転",
};
case "32D":
case "44D":
case "48D":
case "56D":
case "33D":
case "37D":
case "45D":
case "49D":
case "57D":
@@ -200,7 +229,6 @@ export const customTrainDataDetector = (TrainNumber) => {
trainNumDistance: 30,
info: "アンパンマン列車で運転",
};
break;
//うずしお
//2700
@@ -213,7 +241,7 @@ export const customTrainDataDetector = (TrainNumber) => {
trainName: "うずしお",
trainIcon: "http://www.trainfrontview.net/b/s2700_uzu.png",
trainNumDistance: 5000,
info: "南風と宇多津で併結 / 高松-宇多津間進行方向逆転 / 2700系で運転",
info: "南風と併結 / 高松-宇多津間進行方向逆転 / 2700系で運転",
};
case "3002D":
case "3004D":
@@ -384,7 +412,9 @@ export const customTrainDataDetector = (TrainNumber) => {
case "1052D":
case "1056D":
case "1058D":
case "1062D":
case "1064D":
case "1068D":
case "1070D":
case "1074D":
case "1076D":
@@ -392,7 +422,10 @@ export const customTrainDataDetector = (TrainNumber) => {
case "1080D":
case "1082D":
case "1051D":
case "1053D":
case "1057D":
case "1059D":
case "1063D":
case "1065D":
case "1069D":
case "1071D":
@@ -400,7 +433,6 @@ export const customTrainDataDetector = (TrainNumber) => {
case "1075D":
case "1077D":
case "1079D":
case "1053D":
return {
type: "LTDEXP",
trainName: "宇和海",
@@ -411,14 +443,10 @@ export const customTrainDataDetector = (TrainNumber) => {
//2000 アンパン込み
case "1054D":
case "1060D":
case "1062D":
case "1066D":
case "1068D":
case "1072D":
case "1055D":
case "1057D":
case "1061D":
case "1063D":
case "1067D":
case "1081D":
return {
@@ -430,13 +458,9 @@ export const customTrainDataDetector = (TrainNumber) => {
};
//しまんと
case "2002D":
case "2004D":
case "2006D":
case "2008D":
case "2001D":
case "2003D":
case "2005D":
case "2007D":
return {
type: "LTDEXP",
trainName: "しまんと",
@@ -444,6 +468,17 @@ export const customTrainDataDetector = (TrainNumber) => {
trainNumDistance: 2000,
info: "2700系で運転",
};
case "2004D":
case "2006D":
case "2003D":
case "2007D":
return {
type: "LTDEXP",
trainName: "しまんと",
trainIcon: "http://www.trainfrontview.net/b/s2700_smn.png",
trainNumDistance: 2000,
info: "南風と併結 / 2700系で運転",
};
//あしずり 2000
case "2074D":
@@ -537,10 +572,10 @@ export const customTrainDataDetector = (TrainNumber) => {
};
//伊予灘ものがたり
case "8901D":
case "8903D":
case "8902D":
case "8904D":
case "8091D":
case "8093D":
case "8092D":
case "8094D":
return {
type: "LTDEXP",
trainName: "伊予灘ものがたり",
@@ -584,3 +619,37 @@ export const customTrainDataDetector = (TrainNumber) => {
break;
}
};
export const getJRF = (num) => {
switch (num) {
case "71":
return "東京(タ)→高松(タ)\\n";
case "73":
case "75":
return "大阪(タ)→高松(タ)\\n";
case "3079":
return "高松(タ)→伊予三島\\n";
case "3071":
case "3077":
return "高松(タ)→新居浜\\n";
case "3073":
return "高松(タ)→松山貨物\\n";
case "70":
return "高松(タ)→東京(タ)\\n";
case "74":
case "76":
return "高松(タ)→大阪(タ)\\n";
case "3078":
return "伊予三島→高松(タ)\\n";
case "3070":
return "新居浜→高松(タ)\\n";
case "3076":
return "新居浜→高松(タ)\\n";
case "3072":
return "松山貨物→高松(タ)\\n";
case "9070":
return "臨時貨物\\n";
default:
JRF = true;
return null;
}
};

View File

@@ -2,7 +2,7 @@ import React from "react";
import { View, Text, TouchableOpacity } from "react-native";
import { WebView } from "react-native-webview";
import StatusbarDetect from "../StatusbarDetect";
import AsyncStorage from "@react-native-async-storage/async-storage";
import { AS } from "../storageControl";
import { news } from "../config/newsUpdate";
var Status = StatusbarDetect();
export default function News(props) {
@@ -30,7 +30,7 @@ export default function News(props) {
alignItems: "center",
}}
onPress={() => {
AsyncStorage.setItem("status", news);
AS.setItem("status", news);
navigate("Apps");
}}
>

View File

@@ -1,8 +1,8 @@
import React, { useState, useEffect } from "react";
import { View, Text, TouchableOpacity } from "react-native";
import { View, Text, TouchableOpacity, Linking } from "react-native";
import * as Updates from "expo-updates";
import StatusbarDetect from "../StatusbarDetect";
import AsyncStorage from "@react-native-async-storage/async-storage";
import { AS } from "../storageControl";
var Status = StatusbarDetect();
import { Switch } from "react-native-elements";
@@ -10,13 +10,19 @@ export default function Setting(props) {
const {
navigation: { navigate },
} = props;
const [iconSetting, setIconSetting] = useState(undefined);
const [mapSwitch, setMapSwitch] = useState(undefined);
const [stationMenu, setStationMenu] = useState(undefined);
const [iconSetting, setIconSetting] = useState(false);
const [mapSwitch, setMapSwitch] = useState(false);
const [stationMenu, setStationMenu] = useState(false);
const [usePDFView, setUsePDFView] = useState(false);
const [trainMenu, setTrainMenu] = useState(false);
const [trainPosition, setTrainPosition] = useState(false);
useEffect(() => {
AsyncStorage.getItem("iconSwitch").then(setIconSetting);
AsyncStorage.getItem("mapSwitch").then(setMapSwitch);
AsyncStorage.getItem("stationSwitch").then(setStationMenu);
AS.getItem("iconSwitch").then(setIconSetting);
AS.getItem("mapSwitch").then(setMapSwitch);
AS.getItem("stationSwitch").then(setStationMenu);
AS.getItem("usePDFView").then(setUsePDFView);
AS.getItem("trainSwitch").then(setTrainMenu);
AS.getItem("trainPositionSwitch").then(setTrainPosition);
}, []);
return (
<View style={{ height: "100%", backgroundColor: "#0099CC" }}>
@@ -83,7 +89,7 @@ export default function Setting(props) {
textAlignVertical: "center",
}}
>
駅メニューを表示(beta)
駅メニューを表示
</Text>
<View style={{ flex: 1 }} />
<Switch
@@ -102,7 +108,64 @@ export default function Setting(props) {
textAlignVertical: "center",
}}
>
内部バージョン: 4.4.2.3
時刻表PDFをアプリ外で表示
</Text>
<View style={{ flex: 1 }} />
<Switch
value={usePDFView == "true" ? true : false}
color={usePDFView == "true" ? "red" : null}
onValueChange={(value) => setUsePDFView(value.toString())}
/>
</View>
<View style={{ flexDirection: "row", padding: 10 }}>
<Text
style={{
fontSize: 25,
alignItems: "center",
alignContent: "center",
textAlign: "center",
textAlignVertical: "center",
}}
>
列車メニュー
</Text>
<View style={{ flex: 1 }} />
<Switch
value={trainMenu == "true" ? true : false}
color={trainMenu == "true" ? "red" : null}
onValueChange={(value) => setTrainMenu(value.toString())}
/>
</View>
<View style={{ flexDirection: "row", padding: 10 }}>
<Text
style={{
fontSize: 25,
alignItems: "center",
alignContent: "center",
textAlign: "center",
textAlignVertical: "center",
}}
>
列車現在位置表示(alpha)
</Text>
<View style={{ flex: 1 }} />
<Switch
value={trainPosition == "true" ? true : false}
color={trainPosition == "true" ? "red" : null}
onValueChange={(value) => setTrainPosition(value.toString())}
/>
</View>
<View style={{ flexDirection: "row", padding: 10 }}>
<Text
style={{
fontSize: 25,
alignItems: "center",
alignContent: "center",
textAlign: "center",
textAlignVertical: "center",
}}
>
内部バージョン: 4.6.4
</Text>
<View style={{ flex: 1 }} />
</View>
@@ -116,10 +179,31 @@ export default function Setting(props) {
textAlignVertical: "center",
}}
>
releaseChannel: {Updates.releaseChannel}
releaseChannel: {Updates.channel}
</Text>
<View style={{ flex: 1 }} />
</View>
<TouchableOpacity
style={{ flexDirection: "row", padding: 10 }}
onPress={() =>
Linking.openURL(
"https://nexcloud.haruk.in/sites/press-harukin/JRShikokuApps/policy"
)
}
>
<Text
style={{
fontSize: 25,
alignItems: "center",
alignContent: "center",
textAlign: "center",
textAlignVertical: "center",
}}
>
プライバシーポリシー
</Text>
<View style={{ flex: 1 }} />
</TouchableOpacity>
</View>
</View>
<TouchableOpacity
@@ -134,9 +218,12 @@ export default function Setting(props) {
}}
onPress={() => {
Promise.all([
AsyncStorage.setItem("iconSwitch", iconSetting.toString()),
AsyncStorage.setItem("mapSwitch", mapSwitch.toString()),
AsyncStorage.setItem("stationSwitch", stationMenu.toString()),
AS.setItem("iconSwitch", iconSetting.toString()),
AS.setItem("mapSwitch", mapSwitch.toString()),
AS.setItem("stationSwitch", stationMenu.toString()),
AS.setItem("usePDFView", usePDFView.toString()),
AS.setItem("trainSwitch", trainMenu.toString()),
AS.setItem("trainPositionSwitch", trainPosition.toString()),
]).then(() => {
Updates.reloadAsync();
});

View File

@@ -1,22 +1,11 @@
import React, { useState, useEffect, useRef } from "react";
import React, { useRef } from "react";
import { View, Text, TouchableOpacity, Linking } from "react-native";
import { WebView } from "react-native-webview";
import StatusbarDetect from "../StatusbarDetect";
import AsyncStorage from "@react-native-async-storage/async-storage";
import MapView, { Marker, Geojson, PROVIDER_GOOGLE } from "react-native-maps";
import {
FontAwesome,
Fontisto,
Foundation,
Ionicons,
MaterialCommunityIcons,
} from "@expo/vector-icons";
var Status = StatusbarDetect();
export default function trainMenu({
route: {
params: { webview, stationData },
},
import MapView, { Marker } from "react-native-maps";
import { MaterialCommunityIcons } from "@expo/vector-icons";
export default function TrainMenu({
navigation: { navigate },
webview,
stationData,
}) {
const mapRef = useRef();
return (
@@ -54,7 +43,6 @@ export default function trainMenu({
longitude: parseFloat(latlng[1]),
}}
onPress={() => {
console.log(stationData);
webview.current?.injectJavaScript(
`MoveDisplayStation('${d}_${D.MyStation}_${D.Station_JP}')`
);
@@ -70,7 +58,11 @@ export default function trainMenu({
backgroundColor={"#F89038"}
icon="train-car"
flex={1}
onPressButton={() => navigate("howto")}
onPressButton={() =>
navigate("howto", {
info: "https://train.jr-shikoku.co.jp/usage.htm",
})
}
>
使い方
</UsefulBox>
@@ -78,12 +70,7 @@ export default function trainMenu({
backgroundColor={"#EA4752"}
icon="star"
flex={1}
onPressButton={() =>
/* Linking.openURL(
"https://www.jr-shikoku.co.jp/01_trainbus/jikoku/sp/#mainprice-box"
) */
alert("お気に入り駅登録機能は現在開発中です!レイアウト募集中!")
}
onPressButton={() => navigate("favoriteList")}
>
お気に入り
</UsefulBox>
@@ -110,10 +97,7 @@ export default function trainMenu({
borderRadius: 5,
alignItems: "center",
}}
onPress={() => {
AsyncStorage.setItem("status", "2022/04/14");
navigate("Apps");
}}
onPress={() => navigate("Apps")}
>
<View style={{ flex: 1 }} />
<Text style={{ fontSize: 25, fontWeight: "bold", color: "white" }}>

View File

@@ -1,22 +1,18 @@
import React, { Component, useRef, useState, useEffect } from "react";
import {
StatusBar,
View,
LayoutAnimation,
ScrollView,
Linking,
Text,
TouchableOpacity,
} from "react-native";
import React, { useState, useEffect } from "react";
import { View, Text, TouchableOpacity } from "react-native";
import { Switch } from "react-native-elements";
import {
widthPercentageToDP as wp,
heightPercentageToDP as hp,
} from "react-native-responsive-screen";
import { widthPercentageToDP as wp } from "react-native-responsive-screen";
import LottieView from "lottie-react-native";
import { Ionicons } from "@expo/vector-icons";
import { customTrainDataDetector } from "../custom-train-data";
import { useInterval } from "../../lib/useInterval";
let diagramData = undefined;
import { objectIsEmpty } from "../../lib/objectIsEmpty";
import { getTrainType } from "../../lib/getTrainType";
import { getTrainDelayStatus } from "../../lib/getTrainDelayStatus";
import { checkDuplicateTrainData } from "../../lib/checkDuplicateTrainData";
import { useCurrentTrain } from "../../stateBox/useCurrentTrain";
import { useAreaInfo } from "../../stateBox/useAreaInfo";
import { SheetManager } from "react-native-actions-sheet";
/**
*
@@ -48,71 +44,78 @@ let diagramData = undefined;
* 9062D 四国まんなか千年ものがたり(臨時?)
*/
export default function LED_vision(props) {
const HeaderConfig = {
headers: {
referer: "https://train.jr-shikoku.co.jp/sp.html",
},
};
const [trainDiagram, setTrainDiagram] = useState(null);
const [stationDiagram, setStationDiagram] = useState(null);
const [currentTrain, setCurrentTrain] = useState(null);
const {
station,
trainDiagram,
getCurrentTrain,
navigate,
originalStationList,
openStationACFromEachTrainInfo,
} = props;
const { currentTrain } = useCurrentTrain();
const [stationDiagram, setStationDiagram] = useState({}); //当該駅の全時刻表
const [finalSwitch, setFinalSwitch] = useState(false);
const [trainIDSwitch, setTrainIDSwitch] = useState(false);
const [trainDescriptionSwitch, setTrainDescriptionSwitch] = useState(false);
const { areaInfo } = useAreaInfo();
useEffect(() => {
fetch(
"https://train.jr-shikoku.co.jp/g?arg1=station&arg2=traintimeinfo&arg3=dia",
HeaderConfig
)
.then((response) => response.text())
.then((d) => {
const val = d.replace("[\r\n", "").split(",\r\n");
let trainDiagram = {};
val.forEach((element) => {
try {
let data = JSON.parse(element);
Object.keys(data).forEach((key) => (trainDiagram[key] = data[key]));
} catch (e) {}
});
setTrainDiagram(trainDiagram);
return trainDiagram;
})
.then((trainDiagram) => {
let returnData = {};
if (!trainDiagram) {
setStationDiagram(returnData);
return;
}
Object.keys(trainDiagram).forEach((key) => {
if (trainDiagram[key].match(props.station.Station_JP)) {
returnData[key] = trainDiagram[key];
}
});
setStationDiagram(returnData);
});
}, []);
const getTime = () => {
const returnData = [];
Object.keys(stationDiagram).forEach((d) => {
let a = {};
stationDiagram[d].split("#").forEach((data) => {
if (data.match("着")) {
a.lastStation = data.split(",着,")[0];
}
if (data.match(props.station.Station_JP)) {
if (data.match(",発,")) {
a.time = data.split(",発,")[1];
} else {
a.time = data.split(",着,")[1];
a.lastStation = "当駅止";
}
}
});
returnData.push({ train: d, time: a.time, lastStation: a.lastStation });
// 現在の駅に停車するダイヤを作成する副作用[列車ダイヤと現在駅情報]
if (!trainDiagram) {
setStationDiagram({});
return;
}
let returnData = {};
Object.keys(trainDiagram).forEach((key) => {
if (trainDiagram[key].match(station.Station_JP + ",")) {
returnData[key] = trainDiagram[key];
}
});
setStationDiagram(returnData);
}, [trainDiagram, station]);
const [trainTimeAndNumber, setTrainTimeAndNumber] = useState(null);
useEffect(() => {
//現在の駅に停車する列車から時刻を切り出してLEDベースにフォーマット
if (objectIsEmpty(stationDiagram)) return () => {};
const getTimeData = getTime(stationDiagram, station);
setTrainTimeAndNumber(getTimeData);
}, [stationDiagram]);
const [selectedTrain, setSelectedTrain] = useState([]);
useEffect(() => {
if (!trainTimeAndNumber) return () => {};
if (!currentTrain) return () => {};
const data = trainTimeAndNumber
.filter((d) => currentTrain.map((m) => m.num).includes(d.train))
.filter(timeFiltering)
.filter((d) => !!finalSwitch || d.lastStation != "当駅止");
setSelectedTrain(data);
}, [trainTimeAndNumber, currentTrain, finalSwitch]);
const getTime = (stationDiagram, station) => {
const returnData = Object.keys(stationDiagram).map((trainNum) => {
let trainData = {};
stationDiagram[trainNum].split("#").forEach((data) => {
if (data.match("着")) {
trainData.lastStation = data.split(",着,")[0];
}
if (data.split(",")[0] === station.Station_JP) {
if (data.match(",発,")) {
trainData.time = data.split(",発,")[1];
} else {
trainData.time = data.split(",着,")[1];
trainData.lastStation = "当駅止";
}
}
});
return {
train: trainNum,
time: trainData.time,
lastStation: trainData.lastStation,
};
});
return returnData.sort((a, b) => {
switch (true) {
case parseInt(a.time.split(":")[0]) < parseInt(b.time.split(":")[0]):
@@ -126,19 +129,6 @@ export default function LED_vision(props) {
}
});
};
const trainTimeAndNumber = stationDiagram != null ? getTime() : null;
const getCurrentTrain = () =>
fetch(
"https://train.jr-shikoku.co.jp/g?arg1=train&arg2=train",
HeaderConfig
)
.then((response) => response.json())
.then((d) => d.map((x) => ({ num: x.TrainNum, delay: x.delay })))
.then(setCurrentTrain);
useEffect(getCurrentTrain, []);
useInterval(getCurrentTrain, 15000);
const timeFiltering = (d) => {
const date = new Date();
@@ -156,6 +146,35 @@ export default function LED_vision(props) {
return false;
};
const [areaString, setAreaString] = useState("");
const [areaStringLength, setAreaStringLength] = useState(0);
const [move, setMove] = useState(0);
useInterval(
() => {
if (areaInfo != "") {
if (areaStringLength < move) {
setMove(0);
} else {
setMove(move + 1);
}
}
},
350,
true
);
useEffect(() => {
if (!areaInfo) return () => {};
setAreaString(
areaInfo.substring(move, areaInfo.length) + areaInfo.substring(0, move)
);
}, [move]);
useEffect(() => {
if (!areaInfo) return () => {};
setAreaStringLength(areaInfo.length);
}, [areaInfo]);
return (
<View
style={{
@@ -166,206 +185,294 @@ export default function LED_vision(props) {
marginHorizontal: wp("1%"),
}}
>
<View
style={{
alignContent: "center",
alignItems: "center",
width: "100%",
marginVertical: 10,
flexDirection: "row",
}}
>
<View style={{ flex: 1 }}></View>
<View style={{}}>
<Text style={{ fontSize: 25, color: "white", fontWeight: "bold" }}>
次の列車
</Text>
<Text style={{ fontSize: 15, color: "white" }}>Next Train</Text>
</View>
<View style={{ flex: 1 }}></View>
</View>
{trainTimeAndNumber
? currentTrain &&
trainTimeAndNumber
.filter((d) => currentTrain.map((m) => m.num).includes(d.train))
.filter(timeFiltering)
.filter((d) => !!finalSwitch || d.lastStation != "当駅止")
.map((d, index) => {
const train = customTrainDataDetector(d.train);
return [
<View
style={{
alignContent: "center",
alignItems: "center",
width: "94%",
marginVertical: 5,
marginHorizontal: "3%",
backgroundColor: "#000",
flexDirection: "row",
}}
>
<View style={{ flex: 9 }}>
<Text
style={{
fontSize: train.trainName.length > 6 ? 15 : 20,
color: (() => {
switch (train.type) {
case "Rapid":
return "aqua";
case "LTDEXP":
return "red";
case "NightLTDEXP":
return "red";
case "Normal":
return "white";
}
})(),
fontWeight: "bold",
}}
>
{trainIDSwitch
? d.train
: (() => {
switch (train.type) {
case "Rapid":
return "快速";
case "LTDEXP":
return "特急";
case "NightLTDEXP":
return "寝台特急";
case "Normal":
return "普通列車";
}
})() +
" " +
train.trainName +
(train.trainNumDistance == undefined
? ""
: parseInt(
d.train.replace("M", "").replace("D", "")
) -
train.trainNumDistance +
"号")}
</Text>
</View>
<View style={{ flex: 4, flexDirection: "row" }}>
<Text
style={{
fontSize: d.lastStation.length > 4 ? 15 : 20,
color: "white",
fontWeight: "bold",
}}
>
{d.lastStation}
</Text>
</View>
<View style={{ flex: 3 }}>
<Text
style={{
fontSize: 20,
color: "white",
fontWeight: "bold",
}}
>
{d.time}
</Text>
</View>
<View style={{ flex: 4 }}>
<Text
style={{
fontSize: 20,
color: "white",
fontWeight: "bold",
}}
>
{(() => {
const delay = currentTrain.filter(
(a) => a.num == d.train
)[0].delay;
switch (true) {
case isNaN(delay):
return delay;
case delay == 0:
return "定刻通り";
default:
return delay + "分遅れ";
}
})()}
</Text>
</View>
</View>,
trainDescriptionSwitch && !!train.info && (
<View
style={{
alignContent: "center",
alignItems: "center",
width: "94%",
marginVertical: 5,
marginHorizontal: "3%",
backgroundColor: "#000",
flexDirection: "row",
}}
>
<View style={{ flex: 4 }}>
<Text
style={{
fontSize: 20,
color: "green",
fontWeight: "bold",
}}
>
{" "}
&gt; {train.info}
</Text>
</View>
</View>
),
];
})
: null}
<View style={{ flexDirection: "row", padding: 10 }}>
<Text
style={{
alignItems: "center",
alignContent: "center",
textAlign: "center",
textAlignVertical: "center",
color: "white",
}}
>
種別名 / 列番
</Text>
<Switch value={trainIDSwitch} onValueChange={setTrainIDSwitch} />
<View style={{ flex: 1 }} />
<Text
style={{
alignItems: "center",
alignContent: "center",
textAlign: "center",
textAlignVertical: "center",
color: "white",
}}
>
列車情報
</Text>
<Switch
value={trainDescriptionSwitch}
onValueChange={setTrainDescriptionSwitch}
<Header getCurrentTrain={getCurrentTrain} />
{selectedTrain.map((d) => (
<EachData
d={d}
trainIDSwitch={trainIDSwitch}
trainDescriptionSwitch={trainDescriptionSwitch}
station={station}
customTrainDataDetector={customTrainDataDetector}
navigate={navigate}
originalStationList={originalStationList}
openStationACFromEachTrainInfo={openStationACFromEachTrainInfo}
/>
<View style={{ flex: 1 }} />
<Text
style={{
alignItems: "center",
alignContent: "center",
textAlign: "center",
textAlignVertical: "center",
color: "white",
}}
>
当駅止表示
</Text>
<Switch value={finalSwitch} onValueChange={setFinalSwitch} />
</View>
))}
{areaString != "" && (
<Description
numberOfLines={1}
info={areaString.replace("\n", "").replace("\r", "")}
onClick={() => alert(areaInfo)}
/>
)}
<Footer
trainIDSwitch={trainIDSwitch}
setTrainIDSwitch={setTrainIDSwitch}
trainDescriptionSwitch={trainDescriptionSwitch}
setTrainDescriptionSwitch={setTrainDescriptionSwitch}
finalSwitch={finalSwitch}
setFinalSwitch={setFinalSwitch}
/>
</View>
);
}
const Header = ({ getCurrentTrain }) => {
const { currentTrainLoading, setCurrentTrainLoading } = useCurrentTrain();
return (
<View
style={{
alignContent: "center",
alignItems: "center",
width: "100%",
marginVertical: 10,
flexDirection: "row",
}}
>
<View style={{ flex: 1 }}></View>
<View style={{}}>
<Text style={{ fontSize: 25, color: "white", fontWeight: "bold" }}>
次の列車
</Text>
<Text style={{ fontSize: 15, color: "white" }}>Next Train</Text>
</View>
<View style={{ flex: 1, flexDirection: "row-reverse" }}>
{currentTrainLoading == "loading" ? (
<LottieView
autoPlay
loop
style={{ width: 40, height: 40, marginRight: 30 }}
source={require("../../assets/51690-loading-diamonds.json")}
/>
) : currentTrainLoading == "error" ? (
<Ionicons
name="reload"
color="white"
size={30}
style={{ marginRight: 30 }}
onPress={() => {
setCurrentTrainLoading("loading");
getCurrentTrain();
}}
/>
) : null}
</View>
</View>
);
};
const Footer = (props) => {
const {
trainIDSwitch,
setTrainIDSwitch,
trainDescriptionSwitch,
setTrainDescriptionSwitch,
finalSwitch,
setFinalSwitch,
} = props;
const textStyle = {
alignItems: "center",
alignContent: "center",
textAlign: "center",
textAlignVertical: "center",
color: "white",
};
return (
<View style={{ flexDirection: "row", padding: 10, alignItems: "center" }}>
<Text style={textStyle}>種別名 / 列番</Text>
<Switch value={trainIDSwitch} onValueChange={setTrainIDSwitch} />
<View style={{ flex: 1 }} />
<Text style={textStyle}>列車情報</Text>
<Switch
value={trainDescriptionSwitch}
onValueChange={setTrainDescriptionSwitch}
/>
<View style={{ flex: 1 }} />
<Text style={textStyle}>当駅止表示</Text>
<Switch value={finalSwitch} onValueChange={setFinalSwitch} />
</View>
);
};
const EachData = ({
d,
trainIDSwitch,
trainDescriptionSwitch,
station,
customTrainDataDetector,
navigate,
originalStationList,
openStationACFromEachTrainInfo,
}) => {
const { currentTrain } = useCurrentTrain();
const openTrainInfo = (d) => {
let TrainNumber = "";
if (train.trainNumDistance != undefined) {
const timeInfo =
parseInt(d.train.replace("M", "").replace("D", "")) -
train.trainNumDistance;
TrainNumber = timeInfo + "号";
}
const payload = {
data: {
trainNum: d.train,
limited: `${getTrainType(train.type).data}:${
train.trainName
}${TrainNumber}`,
},
navigate,
originalStationList,
openStationACFromEachTrainInfo,
from: "LED",
};
SheetManager.show("EachTrainInfo", {
payload,
});
};
const [train, setTrain] = useState(customTrainDataDetector(d.train));
useEffect(() => {
setTrain(customTrainDataDetector(d.train));
}, [currentTrain, d.train, trainDescriptionSwitch]);
// 土讃線複数存在対策
const trainDelayStatus = getTrainDelayStatus(
checkDuplicateTrainData(currentTrain.filter((a) => a.num == d.train)),
station.Station_JP
);
return (
<>
<TouchableOpacity
style={{
alignContent: "center",
alignItems: "center",
width: "94%",
marginVertical: 5,
marginHorizontal: "3%",
backgroundColor: "#000",
flexDirection: "row",
}}
onPress={() => openTrainInfo(d)}
>
<TrainName
trainName={train.trainName}
trainNumDistance={train.trainNumDistance}
trainIDSwitch={trainIDSwitch}
trainID={d.train}
type={train.type}
/>
<LastStation lastStation={d.lastStation} />
<DependTime time={d.time} />
<StatusAndDelay trainDelayStatus={trainDelayStatus} />
</TouchableOpacity>
{trainDescriptionSwitch && !!train.info && (
<Description info={train.info} />
)}
</>
);
};
const TrainName = ({
trainName,
trainNumDistance,
trainIDSwitch,
trainID,
type,
}) => {
const { name, color } = getTrainType(type);
let TrainNumber =
trainNumDistance != undefined
? `${
parseInt(trainID.replace("M", "").replace("D", "")) - trainNumDistance
}`
: "";
return (
<View style={{ flex: 9 }}>
<Text
style={{
fontSize: trainName.length > 6 ? parseInt("13%") : parseInt("18%"),
color: color,
fontWeight: "bold",
}}
>
{trainIDSwitch ? trainID : `${name} ${trainName}${TrainNumber}`}
</Text>
</View>
);
};
const LastStation = ({ lastStation }) => {
return (
<View style={{ flex: 4, flexDirection: "row" }}>
<Text
style={{
fontSize: lastStation.length > 4 ? parseInt("13%") : parseInt("18%"),
color: "white",
fontWeight: "bold",
}}
>
{lastStation}
</Text>
</View>
);
};
const DependTime = ({ time }) => (
<View style={{ flex: 3 }}>
<Text
style={{
fontSize: parseInt("18%"),
color: "white",
fontWeight: "bold",
}}
>
{time}
</Text>
</View>
);
const StatusAndDelay = ({ trainDelayStatus }) => {
return (
<View style={{ flex: 4 }}>
<Text
style={{
fontSize: parseInt("18%"),
color: "white",
fontWeight: "bold",
paddingLeft: 1,
}}
>
{trainDelayStatus}
</Text>
</View>
);
};
const Description = ({ info, numberOfLines = 0, onClick }) => (
<TouchableOpacity
style={{
alignContent: "center",
alignItems: "center",
width: "94%",
marginVertical: 5,
marginHorizontal: "3%",
backgroundColor: "#000",
flexDirection: "row",
}}
onPress={onClick}
>
<View style={{ flex: 4 }}>
<Text
style={{
fontSize: parseInt("18%"),
color: "green",
fontWeight: "bold",
}}
numberOfLines={numberOfLines}
>
{" "}
&gt; {info}
</Text>
</View>
</TouchableOpacity>
);

View File

@@ -1,32 +1,64 @@
import React, { Component, useRef, useState, useEffect } from "react";
import {
StatusBar,
View,
LayoutAnimation,
ScrollView,
Linking,
Text,
TouchableOpacity,
} from "react-native";
import {
widthPercentageToDP as wp,
heightPercentageToDP as hp,
} from "react-native-responsive-screen";
import React, { useRef, useState, useEffect } from "react";
import { View, Text, TouchableOpacity } from "react-native";
import { widthPercentageToDP as wp } from "react-native-responsive-screen";
import LottieView from "lottie-react-native";
import { useInterval } from "../../lib/useInterval";
import { AS } from "../../storageControl";
import { useFavoriteStation } from "../../stateBox/useFavoriteStation";
import lineColorList from "../../assets/originData/lineColorList";
export default function Sign(props) {
const { currentStation, originalStationList, oP } = props;
const { currentStation, originalStationList, oP, oLP } = props;
const { favoriteStation, setFavoriteStation } = useFavoriteStation();
const [nexPrePosition, setNexPrePosition] = useState(0);
const [preStation, setPreStation] = useState();
const [nexStation, setNexStation] = useState();
const [testButtonStatus, setTestButtonStatus] = useState(false);
useEffect(() => {
const isFavorite = favoriteStation.filter((d) => {
const compare = JSON.stringify(d);
const current = JSON.stringify(currentStation);
if (compare === current) {
return true;
} else {
return false;
}
});
setTestButtonStatus(isFavorite.length == 0 ? false : true);
}, [favoriteStation, currentStation]);
useInterval(() => {
if (currentStation.length == 1) {
setNexPrePosition(0);
return () => {};
}
setNexPrePosition(
nexPrePosition + 1 == currentStation.length ? 0 : nexPrePosition + 1
);
}, 2000);
useEffect(() => {
setNexPrePosition(0);
getPreNextStation(currentStation[0]);
}, [currentStation]);
useEffect(() => {
if (!currentStation[nexPrePosition]) return () => {};
getPreNextStation(currentStation[nexPrePosition]);
}, [nexPrePosition]);
const getPreNextStation = (now) => {
const lineList = [
"予讃線",
"松宇線",
"伊予灘線",
"土讃線",
"窪川線",
"高徳線",
"徳島線",
"鳴門線",
"瀬戸大橋線",
"予讃線(高松-松山間)[Y]",
"予讃線(松山-宇和島間)[U]",
"予讃線/愛ある伊予灘線(向井原-伊予大洲間)[S]",
"土讃線(多度津-高知間)[D]",
"土讃線(高知-窪川間)[K]",
"高徳線(高松-徳島間)[T]",
"徳島線(徳島-阿波池田)[B]",
"鳴門線(池谷-鳴門間)[N]",
"瀬戸大橋線(宇多津-児島間)[M]",
];
let returnData;
lineList.forEach((d) => {
@@ -40,114 +72,190 @@ export default function Sign(props) {
];
}
});
return returnData;
setPreStation(returnData[0]);
setNexStation(returnData[1]);
};
const [nexPrePosition, setNexPrePosition] = useState(0);
useInterval(() => {
if (currentStation.length == 1) return;
LayoutAnimation.easeInEaseOut();
setNexPrePosition(
nexPrePosition + 1 == currentStation.length ? 0 : nexPrePosition + 1
);
}, 2000);
const lottieRef = useRef();
return (
<TouchableOpacity style={styleSheet.外枠} onPress={oP}>
<TouchableOpacity style={styleSheet.外枠} onPress={oP} onLongPress={oLP}>
<StationNumberMaker currentStation={currentStation} />
<StationNameArea currentStation={currentStation} />
<TouchableOpacity
style={{ position: "absolute", right: -15, top: -20 }}
onPress={() => {
if (testButtonStatus) {
const otherData = favoriteStation.filter((d) => {
const compare = JSON.stringify(d);
const current = JSON.stringify(currentStation);
if (compare !== current) {
return true;
} else {
return false;
}
});
AS.setItem("favoriteStation", JSON.stringify(otherData));
setFavoriteStation(otherData);
} else {
let ret = favoriteStation;
ret.push(currentStation);
AS.setItem("favoriteStation", JSON.stringify(ret));
setFavoriteStation(ret);
}
setTestButtonStatus(!testButtonStatus);
}}
>
<LottieDelayView
progress={testButtonStatus ? 1 : 0}
speed={1.4}
style={{ width: 80, height: 80 }}
source={require("../../assets/939-star.json")}
lottieRef={lottieRef}
loop={false}
/>
</TouchableOpacity>
<Text style={styleSheet.JRStyle}>JR</Text>
<View style={styleSheet.下帯} />
<View style={styleSheet.下帯内容}>
{(() => {
let [preStation, nexStation] = getPreNextStation(
currentStation[nexPrePosition]
);
return (
<View style={styleSheet.下枠フレーム}>
<View style={styleSheet.下枠フレーム}>
{preStation && (
<>
<Text style={styleSheet.下枠左右マーク}></Text>
{preStation.StationNumber && (
<View style={styleSheet.下枠駅ナンバー}>
<View style={{ flex: 1 }} />
<Text
style={{
fontSize: parseInt("10%"),
color: "white",
}}
>
{preStation.StationNumber}
</Text>
<View style={{ flex: 1 }} />
</View>
)}
<StationName
stringData={preStation}
ss={{ flex: 1, alignItems: "flex-start" }}
/>
</>
)}
</View>
<View style={styleSheet.下枠フレーム}>
{nexStation && (
<>
<StationName
stringData={nexStation}
ss={{ flex: 1, alignItems: "flex-end" }}
/>
{nexStation.StationNumber && (
<View style={styleSheet.下枠駅ナンバー}>
<View style={{ flex: 1 }} />
<Text
style={{ fontSize: parseInt("10%"), color: "white" }}
>
{nexStation.StationNumber}
</Text>
<View style={{ flex: 1 }} />
</View>
)}
<Text style={styleSheet.下枠左右マーク}></Text>
</>
)}
</View>
</View>
);
})()}
<NexPreStationLine preStation={preStation} nexStation={nexStation} />
</View>
</TouchableOpacity>
);
}
const LottieDelayView = ({
progress,
speed,
style,
source,
lottieRef,
loop,
}) => {
const [progressState, setProgressState] = useState(undefined);
useEffect(() => {
if (progress == 0) {
lottieRef.current.play(progressState !== undefined ? 35 : 7, 7);
} else {
lottieRef.current.play(progressState !== undefined ? 7 : 35, 35);
}
}, [progress]);
return (
<LottieView
progress={progressState}
speed={speed}
style={style}
source={source}
ref={lottieRef}
loop={loop}
onAnimationFinish={(isCanceled) => {
setProgressState(progress);
}}
/>
);
};
const NexPreStationLine = ({ nexStation, preStation }) => {
return (
<View style={styleSheet.下枠フレーム}>
<View style={styleSheet.下枠フレーム}>
{preStation ? (
<>
<Text style={styleSheet.下枠左右マーク}></Text>
{preStation.StationNumber ? (
<View style={styleSheet.下枠駅ナンバー}>
<View style={{ flex: 1 }} />
<Text
style={{
fontSize: parseInt("10%"),
color: "white",
}}
>
{preStation.StationNumber}
</Text>
<View style={{ flex: 1 }} />
</View>
) : (
<></>
)}
<StationName
stringData={preStation}
ss={{ flex: 1, alignItems: "flex-start" }}
/>
</>
) : (
<></>
)}
</View>
<View style={styleSheet.下枠フレーム}>
{nexStation ? (
<>
<StationName
stringData={nexStation}
ss={{ flex: 1, alignItems: "flex-end" }}
/>
{nexStation.StationNumber ? (
<View style={styleSheet.下枠駅ナンバー}>
<View style={{ flex: 1 }} />
<Text style={{ fontSize: parseInt("10%"), color: "white" }}>
{nexStation.StationNumber}
</Text>
<View style={{ flex: 1 }} />
</View>
) : (
<></>
)}
<Text style={styleSheet.下枠左右マーク}></Text>
</>
) : (
<></>
)}
</View>
</View>
);
};
const StationNumberMaker = (props) => {
const getTop = (array, index) => {
if (array.length == 1) return 20;
else if (index == 0) return 5;
else if (index == 1) return 35;
else return 20;
};
return props.currentStation
.filter((d) => (d.StationNumber ? true : false))
.map((d, index, array) => (
<View
key={d + index}
style={{
position: "absolute",
alignContent: "center",
alignItems: "center",
top:
(() => {
if (array.length == 1) return 20;
else if (index == 0) return 5;
else if (index == 1) return 35;
else return 20;
})() + "%",
right: "10%",
width: wp("10%"),
height: wp("10%"),
borderColor: "#2E94BB",
borderWidth: parseInt("2%"),
borderRadius: parseInt("100%"),
}}
>
<View style={{ flex: 1 }} />
<Text style={{ fontSize: parseInt("20%") }}>{d.StationNumber}</Text>
<View style={{ flex: 1 }} />
</View>
));
.map((d, index, array) => {
const lineID = d.StationNumber.slice(0, 1);
const lineName = d.StationNumber.slice(1);
return (
<View
style={{
position: "absolute",
alignContent: "center",
alignItems: "center",
top: getTop(array, index) + "%",
right: "10%",
width: wp("10%"),
height: wp("10%"),
borderColor: lineColorList[lineID],
borderWidth: parseInt("3%"),
borderRadius: parseInt("100%"),
}}
key={array[index].StationNumber}
>
<View style={{ flex: 1 }} />
<Text
style={{
fontSize: parseInt("13%"),
margin: 0,
padding: 0,
textAlign: "center",
}}
>
{lineID + "\n" + lineName}
</Text>
<View style={{ flex: 1 }} />
</View>
);
});
};
const StationNameArea = (props) => {
@@ -185,8 +293,7 @@ const styleSheet = {
height: (wp("80%") / 20) * 9,
borderColor: "#2E94BB",
borderWidth: 1,
margin: 10,
marginHorizontal: wp("10%"),
backgroundColor: "white",
},
下帯: {
position: "absolute",
@@ -232,6 +339,7 @@ const styleSheet = {
flex: 1,
flexDirection: "row",
alignContent: "center",
alignItems: "center",
},
下枠左右マーク: {
fontWeight: "bold",

View File

@@ -1 +1 @@
export const news = "2022-9-30";
export const news = "2023-12-25";

View File

@@ -5,16 +5,30 @@
"build": {
"development": {
"developmentClient": true,
"distribution": "internal"
"distribution": "internal",
"channel": "development"
},
"preview": {
"distribution": "internal"
"distribution": "internal",
"channel": "preview"
},
"mapsbuild": {
"releaseChannel": "mapsbuild"
},
"production": {
"releaseChannel": "aliexpress"
},
"beta4.5": {
"releaseChannel": "base"
},
"production4.5": {
"releaseChannel": "buyma"
},
"beta4.6": {
"channel": "catch"
},
"production4.6": {
"channel": "costoco"
}
},
"submit": {

View File

@@ -2,29 +2,37 @@ const WEBVIEW = "WEBVIEW";
import React, { Component } from "react";
import { StatusBar, View, TouchableOpacity, Text } from "react-native";
import { WebView } from "react-native-webview";
export default ({ navigation: { navigate } }) => (
<View style={{ height: "100%", backgroundColor: "#0099CC" }}>
<WebView
useWebKit={true}
source={{ uri: "https://train.jr-shikoku.co.jp/usage.htm" }}
/>
<TouchableOpacity
style={{
padding: 10,
flexDirection: "row",
borderColor: "white",
borderWidth: 1,
margin: 10,
borderRadius: 5,
alignItems: "center",
}}
onPress={() => navigate("Apps")}
>
<View style={{ flex: 1 }} />
<Text style={{ fontSize: 25, fontWeight: "bold", color: "white" }}>
閉じる
</Text>
<View style={{ flex: 1 }} />
</TouchableOpacity>
</View>
);
export default ({ navigation: { navigate }, route }) => {
const { info, goTo, useShow } = route.params;
const onExit = () => {
navigate(goTo);
useShow();
};
return (
<View style={styles.View}>
<WebView
useWebKit
source={{ uri: info.replace("http://", "https://") }}
/>
<TouchableOpacity style={styles.touch} onPress={onExit}>
<View style={{ flex: 1 }} />
<Text style={{ fontSize: 25, fontWeight: "bold", color: "white" }}>
閉じる
</Text>
<View style={{ flex: 1 }} />
</TouchableOpacity>
</View>
);
};
const styles = {
View: { height: "100%", backgroundColor: "#0099CC" },
touch: {
padding: 10,
flexDirection: "row",
borderColor: "white",
borderWidth: 1,
margin: 10,
borderRadius: 5,
alignItems: "center",
},
};

5
lib/HeaderConfig.js Normal file
View File

@@ -0,0 +1,5 @@
export const HeaderConfig = {
headers: {
referer: "https://train.jr-shikoku.co.jp/sp.html",
},
};

View File

@@ -0,0 +1,6 @@
export const checkDuplicateTrainData = (currentTrainArray) => {
const notNyujoData = currentTrainArray.filter((d) => d.delay !== "入線");
if (currentTrainArray.length == 1) return currentTrainArray[0];
if (notNyujoData.length == 0) return currentTrainArray[0];
else return notNyujoData[0];
};

7
lib/getPdfViewURL.js Normal file
View File

@@ -0,0 +1,7 @@
import { Platform } from "react-native";
export const getPDFViewURL = (url) => {
if (Platform.OS == "ios") return url;
else
return `https://mozilla.github.io/pdf.js/web/viewer.html?file=${encodeURI(url)}`;
};

View File

@@ -18,14 +18,21 @@ import train_lang from "../assets/originData/train_lang";
let status = undefined;
export const lineList = [
"予讃線(高松-松山間)[Y]",
"予讃線(松山-宇和島間)[U]",
"予讃線/愛ある伊予灘線(向井原-伊予大洲間)[S]",
"土讃線(多度津-高知間)[D]",
"土讃線(高知-窪川間)[K]",
"高徳線(高松-徳島間)[T]",
"徳島線(徳島-阿波池田)[B]",
"鳴門線(池谷-鳴門間)[N]",
"瀬戸大橋線(宇多津-児島間)[M]",
];
export const getStationList = async (props) => {
if (status) return status;
//駅リストイニシャライズ
const HeaderConfig = {
headers: {
referer: "https://train.jr-shikoku.co.jp/sp.html",
},
};
return await Promise.all([
yosan,
uwajima,
@@ -41,15 +48,15 @@ export const getStationList = async (props) => {
]).then((values) => {
let stationList = {};
[
stationList.予讃線,
stationList.松宇線,
stationList.伊予灘線,
stationList.土讃線,
stationList.窪川線,
stationList.高徳線,
stationList.徳島線,
stationList.鳴門線,
stationList.瀬戸大橋線,
stationList["予讃線(高松-松山間)[Y]"],
stationList["予讃線(松山-宇和島間)[U]"],
stationList["予讃線/愛ある伊予灘線(向井原-伊予大洲間)[S]"],
stationList["土讃線(多度津-高知間)[D]"],
stationList["土讃線(高知-窪川間)[K]"],
stationList["高徳線(高松-徳島間)[T]"],
stationList["徳島線(徳島-阿波池田)[B]"],
stationList["鳴門線(池谷-鳴門間)[N]"],
stationList["瀬戸大橋線(宇多津-児島間)[M]"],
stationList.駅間リスト,
stationList.日英対応表,
] = values;
@@ -103,52 +110,55 @@ export const getStationList = async (props) => {
return data;
});
};
stationList.予讃線 = addStationPosition(
concatBetweenStations(stationList.予讃線),
stationList["予讃線(高松-松山間)[Y]"] = addStationPosition(
concatBetweenStations(stationList["予讃線(高松-松山間)[Y]"]),
予讃線,
stationList.日英対応表
);
stationList.松宇線 = addStationPosition(
concatBetweenStations(stationList.松宇線),
stationList["予讃線(松山-宇和島間)[U]"] = addStationPosition(
concatBetweenStations(stationList["予讃線(松山-宇和島間)[U]"]),
予讃線,
stationList.日英対応表
);
stationList.伊予灘線 = addStationPosition(
concatBetweenStations(stationList.伊予灘線),
予讃線,
stationList.日英対応表
);
stationList.土讃線 = addStationPosition(
concatBetweenStations(stationList.土讃線),
stationList["予讃線/愛ある伊予灘線(向井原-伊予大洲間)[S]"] =
addStationPosition(
concatBetweenStations(
stationList["予讃線/愛ある伊予灘線(向井原-伊予大洲間)[S]"]
),
予讃線,
stationList.日英対応表
);
stationList["土讃線(多度津-高知間)[D]"] = addStationPosition(
concatBetweenStations(stationList["土讃線(多度津-高知間)[D]"]),
土讃線,
stationList.日英対応表
);
stationList.窪川線 = addStationPosition(
concatBetweenStations(stationList.窪川線),
stationList["土讃線(高知-窪川間)[K]"] = addStationPosition(
concatBetweenStations(stationList["土讃線(高知-窪川間)[K]"]),
土讃線,
stationList.日英対応表
);
stationList.高徳線 = addStationPosition(
concatBetweenStations(stationList.高徳線),
stationList["高徳線(高松-徳島間)[T]"] = addStationPosition(
concatBetweenStations(stationList["高徳線(高松-徳島間)[T]"]),
高徳線,
stationList.日英対応表
);
stationList.鳴門線 = addStationPosition(
concatBetweenStations(stationList.鳴門線),
stationList["鳴門線(池谷-鳴門間)[N]"] = addStationPosition(
concatBetweenStations(stationList["鳴門線(池谷-鳴門間)[N]"]),
鳴門線,
stationList.日英対応表
);
const tokushimaCurrent = addStationPosition(
concatBetweenStations(stationList.徳島線),
concatBetweenStations(stationList["徳島線(徳島-阿波池田)[B]"]),
徳島線,
stationList.日英対応表
);
stationList.徳島線 = [
stationList["徳島線(徳島-阿波池田)[B]"] = [
tokushimaCurrent[tokushimaCurrent.length - 1],
...tokushimaCurrent,
];
stationList.徳島線.pop();
stationList.瀬戸大橋線 = [
stationList["徳島線(徳島-阿波池田)[B]"].pop();
stationList["瀬戸大橋線(宇多津-児島間)[M]"] = [
{
Station_JP: "坂出",
Station_EN: "Sakaide",

View File

@@ -0,0 +1,18 @@
export const getTrainDelayStatus = (current, Station_JP) => {
if (!current) return () => {};
const delay = current.delay;
switch (true) {
case delay === "入線":
if (current.Pos === Station_JP) {
return "当駅始発";
} else {
return "発車前";
}
case isNaN(delay):
return delay;
case delay === 0:
return "定刻通り";
default:
return delay + "分遅れ";
}
};

16
lib/getTrainType.js Normal file
View File

@@ -0,0 +1,16 @@
export const getTrainType = (nameString) => {
switch (nameString) {
case "Rapid":
return { color: "aqua", name: "快速", data: "rapid" };
case "LTDEXP":
return { color: "red", name: "特急", data: "express" };
case "NightLTDEXP":
return { color: "red", name: "寝台特急", data: "express" };
case "SPCL":
return { color: "blue", name: "臨時", data: "normal" };
case "Normal":
return { color: "white", name: "普通列車", data: "normal" };
default:
return { color: "white", name: "その他", data: "normal" };
}
};

19
lib/initIcon.js Normal file
View File

@@ -0,0 +1,19 @@
import React from "react";
import { Ionicons, AntDesign } from "@expo/vector-icons";
export const initIcon = (name, type) => {
switch (type) {
case "Ionicons":
return ({ focused, color, size }) => (
<Ionicons name={name} size={32} color={focused ? "#0099CC" : "black"} />
);
case "AntDesign":
return ({ focused, color, size }) => (
<AntDesign
name={name}
size={32}
color={focused ? "#0099CC" : "black"}
/>
);
}
};

3
lib/objectIsEmpty.js Normal file
View File

@@ -0,0 +1,3 @@
export const objectIsEmpty = (obj) => {
return !Object.keys(obj).length;
};

View File

@@ -0,0 +1,11 @@
export const parseAllTrainDiagram = (text) => {
const val = text.replace("[\r\n", "").split(",\r\n");
let trainDiagram = {};
val.forEach((element) => {
try {
let data = JSON.parse(element);
Object.keys(data).forEach((key) => (trainDiagram[key] = data[key]));
} catch (e) {}
});
return trainDiagram;
};

8
lib/stackOption.js Normal file
View File

@@ -0,0 +1,8 @@
import { TransitionPresets } from "@react-navigation/stack";
export const optionData = {
gestureEnabled: true,
...TransitionPresets.ModalPresentationIOS,
cardOverlayEnabled: true,
headerTransparent: true,
headerShown: false,
};

File diff suppressed because it is too large Load Diff

1172
menu.js

File diff suppressed because it is too large Load Diff

View File

@@ -1,9 +1,11 @@
import React, { Component } from "react";
import { StatusBar, View, Linking, Platform, Text } from "react-native";
import React, { useRef, useState } from "react";
import { View, Platform, TouchableOpacity } from "react-native";
import { WebView } from "react-native-webview";
import Constants from "expo-constants";
import { TouchableOpacity } from "react-native-gesture-handler";
import { Ionicons } from "@expo/vector-icons";
export default function tndView() {
const webview = useRef();
const [LoadError, setLoadError] = useState(false);
return (
<View
style={{
@@ -14,11 +16,22 @@ export default function tndView() {
>
<WebView
useWebKit={true}
ref={webview}
source={{ uri: "https://www.jr-shikoku.co.jp/info/" }}
originWhitelist={["https://www.jr-shikoku.co.jp"]}
mixedContentMode={"compatibility"}
javaScriptEnabled={true}
injectedJavaScript={jsa}
pullToRefreshEnabled
onError={(syntheticEvent) => {
//webViewの再読み込みを行う
this.webView.reload();
}}
/>
<ReloadButton
onPress={() => webview.current.reload()}
top={Platform.OS == "ios" ? Constants.statusBarHeight : 0}
LoadError={LoadError}
/>
</View>
);
@@ -27,3 +40,39 @@ const jsa = `
document.querySelector('.sitettl').style.display = 'none';
document.querySelector('.attention').style.display = 'none';
`;
const ReloadButton = ({ onPress, top, mapSwitch, LoadError = false }) => {
const styles = {
touch: {
position: "absolute",
top,
right: 10,
width: 50,
height: 50,
backgroundColor: LoadError ? "red" : "#0099CC",
borderColor: "white",
borderStyle: "solid",
borderWidth: 1,
borderRadius: 50,
alignContent: "center",
alignSelf: "center",
alignItems: "center",
display: mapSwitch,
},
text: {
textAlign: "center",
width: "auto",
height: "auto",
textAlignVertical: "center",
fontWeight: "bold",
color: "white",
},
};
return (
<TouchableOpacity onPress={onPress} style={styles.touch}>
<View style={{ flex: 1 }} />
<Ionicons name="reload" color="white" size={30} />
<View style={{ flex: 1 }} />
</TouchableOpacity>
);
};

12485
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -8,42 +8,47 @@
},
"dependencies": {
"@expo/vector-icons": "^13.0.0",
"@react-native-async-storage/async-storage": "~1.17.3",
"@react-native-async-storage/async-storage": "1.18.2",
"@react-native-community/masked-view": "0.1.10",
"@react-navigation/bottom-tabs": "^5.11.11",
"@react-navigation/native": "^5.9.4",
"@react-navigation/stack": "^5.14.5",
"expo": "^45.0.0",
"expo-font": "~10.1.0",
"expo-location": "~14.2.2",
"expo-updates": "~0.13.4",
"expo-web-browser": "~10.2.1",
"dayjs": "^1.11.9",
"eas-cli": "^5.9.1",
"expo": "^49.0.21",
"expo-device": "~5.4.0",
"expo-font": "~11.4.0",
"expo-location": "~16.1.0",
"expo-notifications": "~0.20.1",
"expo-updates": "~0.18.17",
"expo-web-browser": "~12.3.2",
"firebase": "8.2.3",
"lottie-react-native": "5.0.1",
"lottie-react-native": "5.1.6",
"native-base": "^2.15.2",
"npm": "^7.18.1",
"pushy-react-native": "^1.0.18",
"react": "17.0.2",
"react-native": "0.68.2",
"react-native-actions-sheet": "^0.4.9",
"react": "18.2.0",
"react-native": "0.72.6",
"react-native-actions-sheet": "0.8.21",
"react-native-auto-height-image": "^3.2.4",
"react-native-elements": "^3.4.2",
"react-native-gesture-handler": "~2.2.1",
"react-native-maps": "0.30.2",
"react-native-reanimated": "~2.8.0",
"react-native-gesture-handler": "~2.12.0",
"react-native-maps": "1.7.1",
"react-native-reanimated": "^3.6.1",
"react-native-remote-svg": "^2.0.6",
"react-native-responsive-screen": "^1.4.2",
"react-native-router-flux": "^4.3.1",
"react-native-safe-area-context": "4.2.4",
"react-native-screens": "~3.11.1",
"react-native-safe-area-context": "4.6.3",
"react-native-screens": "~3.22.0",
"react-native-snap-carousel": "^3.9.1",
"react-native-storage": "^1.0.1",
"react-native-svg": "12.3.0",
"react-native-svg": "13.9.0",
"react-native-svg-uri": "^1.2.3",
"react-native-vector-icons": "^8.1.0",
"react-native-webview": "11.18.1"
"react-native-webview": "^13.6.3"
},
"devDependencies": {
"babel-preset-expo": "~9.1.0"
"babel-preset-expo": "^9.5.0"
},
"private": true
}

View File

@@ -0,0 +1,43 @@
import React, { createContext, useContext, useEffect, useState } from "react";
const initialState = {
allTrainDiagram: undefined,
setAllTrainDiagram: () => {},
};
const AllTrainDiagramContext = createContext(initialState);
export const useAllTrainDiagram = () => {
return useContext(AllTrainDiagramContext);
};
export const AllTrainDiagramProvider = ({ children }) => {
const [allTrainDiagram, setAllTrainDiagram] = useState();
const customData = {
};
useEffect(() => {
fetch(
"https://script.google.com/macros/s/AKfycbx_s7RB-xTy-iAslFJg7LfplLV09-hjDXEjdi9kCP_JT45wq17Af_IPOKIOqIfaNDg/exec"
)
.then((res) => res.json())
.then((res) => {
const data = {};
res.forEach((d) => {
const keys = Object.keys(d);
data[keys] = d[keys];
});
return data;
})
.then((res) => {
Object.assign(res, customData);
setAllTrainDiagram(res);
});
}, []);
return (
<AllTrainDiagramContext.Provider
value={{ allTrainDiagram, setAllTrainDiagram }}
>
{children}
</AllTrainDiagramContext.Provider>
);
};

21
stateBox/useAreaInfo.js Normal file
View File

@@ -0,0 +1,21 @@
import React, { createContext, useContext, useState } from "react";
const initialState = {
areaInfo: "",
setAreainfo: () => {},
};
const AreaInfoContext = createContext(initialState);
export const useAreaInfo = () => {
return useContext(AreaInfoContext);
};
export const AreaInfoProvider = ({ children }) => {
const [areaInfo, setAreaInfo] = useState("");
return (
<AreaInfoContext.Provider value={{ areaInfo, setAreaInfo }}>
{children}
</AreaInfoContext.Provider>
);
};

View File

@@ -0,0 +1,23 @@
import React, { createContext, useContext, useState } from "react";
const initialState = {
busAndTrainData: [],
setBusAndTrainData: () => {},
};
const BusAndTrainDataContext = createContext(initialState);
export const useBusAndTrainData = () => {
return useContext(BusAndTrainDataContext);
};
export const BusAndTrainDataProvider = ({ children }) => {
const [busAndTrainData, setBusAndTrainData] = useState([]);
return (
<BusAndTrainDataContext.Provider
value={{ busAndTrainData, setBusAndTrainData }}
>
{children}
</BusAndTrainDataContext.Provider>
);
};

View File

@@ -0,0 +1,56 @@
import React, { createContext, useContext, useState, useEffect } from "react";
import { HeaderConfig } from "../lib/HeaderConfig";
import useInterval from "../lib/useInterval";
const initialState = {
currentTrain: [],
setCurrentTrain: () => {},
currentTrainLoading: "loading",
setCurrentTrainLoading: () => {},
getCurrentTrain: () => {},
};
const CurrentTrainContext = createContext(initialState);
export const useCurrentTrain = () => {
return useContext(CurrentTrainContext);
};
export const CurrentTrainProvider = ({ children }) => {
const [currentTrain, setCurrentTrain] = useState([]); //現在在線中の全列車 { num: 列車番号, delay: 遅延時分(状態), Pos: 位置情報 }
const [currentTrainLoading, setCurrentTrainLoading] = useState("loading"); // success, error, loading
const getCurrentTrain = () =>
fetch(
"https://script.google.com/macros/s/AKfycby9Y2-Bm75J_WkbZimi7iS8v5r9wMa9wtzpdwES9sOGF4i6HIYEJOM60W6gM1gXzt1o/exec",
HeaderConfig
)
.then((response) => response.json())
.then((d) =>
d.map((x) => ({ num: x.TrainNum, delay: x.delay, Pos: x.Pos }))
)
.then((d) => {
setCurrentTrain(d);
setCurrentTrainLoading("success");
})
.catch(() => {
console.log("えらー");
setCurrentTrainLoading("error");
});
useEffect(getCurrentTrain, []); //初回だけ現在の全在線列車取得
useInterval(getCurrentTrain, 15000); //15秒毎に全在線列車取得
return (
<CurrentTrainContext.Provider
value={{
currentTrain,
setCurrentTrain,
currentTrainLoading,
setCurrentTrainLoading,
getCurrentTrain,
}}
>
{children}
</CurrentTrainContext.Provider>
);
};

View File

@@ -0,0 +1,36 @@
import React, {
createContext,
useContext,
useState,
useLayoutEffect,
} from "react";
import { AS } from "../storageControl";
const initialState = {
favoriteStation: [],
setFavoriteStation: () => {},
};
const FavoriteStationContext = createContext(initialState);
export const useFavoriteStation = () => {
return useContext(FavoriteStationContext);
};
export const FavoriteStationProvider = ({ children }) => {
const [favoriteStation, setFavoriteStation] = useState([]);
useLayoutEffect(() => {
AS.getItem("favoriteStation")
.then((d) => {
const returnData = JSON.parse(d);
setFavoriteStation(returnData);
})
.catch((d) => console.log(d));
}, []);
return (
<FavoriteStationContext.Provider
value={{ favoriteStation, setFavoriteStation }}
>
{children}
</FavoriteStationContext.Provider>
);
};

View File

@@ -0,0 +1,45 @@
import React, { createContext, useContext, useEffect, useState } from "react";
const initialState = {
getTime: new Date(),
setGetTime: () => {},
loadingDelayData: true,
setLoadingDelayData: () => {},
delayData: undefined,
setDelayData: () => {},
};
const TrainDelayDataContext = createContext(initialState);
export const useTrainDelayData = () => {
return useContext(TrainDelayDataContext);
};
export const TrainDelayDataProvider = ({ children }) => {
const [delayData, setDelayData] = useState(undefined);
const [getTime, setGetTime] = useState(new Date());
const [loadingDelayData, setLoadingDelayData] = useState(true);
useEffect(() => {
fetch(
"https://script.google.com/macros/s/AKfycbyKxch7z7l8e07LXulRHqxjVoIiB13kcgvoToLE-rqlxLmLSKdlmqz0FI1F2EuA7Zfg/exec"
)
.then((response) => response.text())
.then((data) => setDelayData(data !== "" ? data.split("^") : null))
.then(() => setGetTime(new Date()))
.finally(() => setLoadingDelayData(false));
}, [loadingDelayData]);
return (
<TrainDelayDataContext.Provider
value={{
getTime,
setGetTime,
loadingDelayData,
setLoadingDelayData,
delayData,
setDelayData,
}}
>
{children}
</TrainDelayDataContext.Provider>
);
};

27
storageConfig.js Normal file
View File

@@ -0,0 +1,27 @@
import Storage from "react-native-storage";
import AsyncStorage from "@react-native-async-storage/async-storage";
const storage = new Storage({
// maximum capacity, default 1000 key-ids
size: 10000,
// Use AsyncStorage for RN apps, or window.localStorage for web apps.
// If storageBackend is not set, data will be lost after reload.
storageBackend: AsyncStorage, // for web: window.localStorage
// expire time, default: 1 day (1000 * 3600 * 24 milliseconds).
// can be null, which means never expire.
defaultExpires: null,
// cache data in the memory. default is true.
enableCache: true,
// if data was not found in storage or expired data was found,
// the corresponding sync method will be invoked returning
// the latest data.
sync: {
// we'll talk about the details later.
},
});
export default storage;

14
storageControl.js Normal file
View File

@@ -0,0 +1,14 @@
import storage from "./storageConfig.js";
export const AS = {
getItem: (key) => storage.load({ key }),
setItem: (key, data) =>
storage.save({
key, // Note: Do not use underscore("_") in key!
data,
// if expires not specified, the defaultExpires will be applied instead.
// if set to null, then it will never expire.
expires: null,
}),
};

View File

@@ -1,9 +1,17 @@
import React, { Component, useRef } from "react";
import { StatusBar, Platform, View } from "react-native";
import {
StatusBar,
Platform,
View,
TouchableOpacity,
Text,
} from "react-native";
import { WebView } from "react-native-webview";
import { Ionicons, MaterialCommunityIcons } from "@expo/vector-icons";
export default function TrainBase({ route }) {
const { info } = route.params;
export default function TrainBase({ route, navigation }) {
const { info, from } = route.params;
const { navigate } = navigation;
const webview = useRef();
const jss = `document.getElementById('Footer').style.display = 'none';
${
@@ -28,6 +36,29 @@ export default function TrainBase({ route }) {
setSupportMultipleWindows={false}
onMessage={(event) => {}}
/>
{(from == "LED" || from == "AllTrainDiagramView") && (
<TouchableOpacity
style={{
padding: 10,
flexDirection: "row",
borderColor: "black",
borderWidth: 1,
margin: 10,
borderRadius: 5,
alignItems: "center",
}}
onPress={() =>
navigate(from == "AllTrainDiagramView" ? "AllTrainIDList" : "menu")
}
>
<View style={{ flex: 1 }} />
<MaterialCommunityIcons name="close" color="black" size={30} />
<Text style={{ fontSize: 25, fontWeight: "bold", color: "black" }}>
閉じる
</Text>
<View style={{ flex: 1 }} />
</TouchableOpacity>
)}
</View>
);
}

8894
yarn.lock

File diff suppressed because it is too large Load Diff