Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_maintenance を追加する #35

Merged
merged 1 commit into from
Feb 12, 2023

Conversation

eggplants
Copy link
Contributor

@eggplants eggplants commented Jan 29, 2023

Closes: #3

get_maintenance を追加しました。


平時:

https://web.archive.org/web/20200223132720/https://www.train-guide.westjr.co.jp/api/v3/area_okayama_maintenance.json

{
    "status": 0,
    "notification": {
        "groupId": 0,
        "text": "",
        "duration": ""
    },
    "maintenance": {
        "title": "",
        "text": "",
        "duration": "",
        "linkTitle": "",
        "linkUrl": ""
    }
}

「大雪により運転取り止めや運転見合わせ」:

https://web.archive.org/web/20230124063140/https://www.train-guide.westjr.co.jp/api/v3/area_okayama_maintenance.json

{
    "status": 1,
    "notification": {
        "groupId": 2023012301,
        "text": "1月24日、1月25日は大雪により運転取り止めや運転見合わせが見込まれます。ご利用を見合わせる場合、対象となるきっぷは無手数料で払戻しをいたします。\r\n詳しくはJR西日本ホームページをご覧ください。",
        "duration": ""
    },
    "maintenance": {
        "title": "",
        "text": "",
        "duration": "",
        "linkTitle": "",
        "linkUrl": ""
    }
}

https://web.archive.org/web/20230129232620/https://www.train-guide.westjr.co.jp/api/v3/area_okayama_maintenance.json

{
    "status": 1,
    "notification": {
        "groupId": 2023012802,
        "text": "1月24日から1月31日を有効期間に含むきっぷについては、払い戻し・有効期間の変更を無手数料で行いますので、お近くのJRの駅にきっぷをお持ちください。詳しくはJR西日本ホームページをご覧ください。",
        "duration": ""
    },
    "maintenance": {
        "title": "",
        "text": "",
        "duration": "",
        "linkTitle": "",
        "linkUrl": ""
    }
}

@eggplants eggplants marked this pull request as ready for review January 30, 2023 06:58
@unyacat unyacat merged commit 5aa7f25 into unyacat:develop Feb 12, 2023
@unyacat
Copy link
Owner

unyacat commented Feb 12, 2023

本当にありがとうございます🙏

Web Archiveで残しておくほうが正確で良いですね。助かります。

@unyacat
Copy link
Owner

unyacat commented Feb 12, 2023

今日はmaintenanceにうめきたエリア開業に伴う大規模工事による運休情報が載っています。
https://web.archive.org/web/20230212023207/https://www.train-guide.westjr.co.jp/api/v3/hokurikubiwako_maintenance.json

新駅が楽しみです。

@eggplants eggplants deleted the area_maintenance branch February 12, 2023 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

/api/v3/area_{AREA}_maintenance.json
2 participants