Skip to content

経路検索で複数種別のConnectedRoutesを利用 - #6529

Closed
TinyKitten wants to merge 14 commits into
devfrom
agent/use-connected-routes
Closed

経路検索で複数種別のConnectedRoutesを利用#6529
TinyKitten wants to merge 14 commits into
devfrom
agent/use-connected-routes

Conversation

@TinyKitten

Copy link
Copy Markdown
Member

変更内容

  • 通常の routeTypes で単一種別の経路が見つからない場合のみ connectedRoutes を問い合わせる
  • ConnectedRoutes の各経路を既存の列車種別選択UIで扱える候補へ変換する
  • StationAPI が付与する仮想 lineGroupId と経路内の駅列を保持し、初期候補および候補切替時にその駅列を直接使用する
  • ConnectedRoutes も空の場合は、従来の「選択路線をそのまま使う」フォールバックへ戻す

背景

現在の経路検索は routeTypes の単一種別だけを前提としているため、途中で種別が変わる経路を構築できませんでした。単一種別で完結しない場合に限って ConnectedRoutes を使い、複数種別を一つの経路として扱います。

影響

単一種別で到達できる既存経路の挙動は変わりません。単一種別が見つからなかった検索のみ追加のAPI呼び出しが発生します。

検証

  • ConnectedRoutes の仮想 lineGroupId、区間路線、区間種別を既存の列車種別モデルへ変換する単体テストを追加
  • GitHub Actions の結果を確認予定

@coderabbitai

coderabbitai Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: a17f3c65-7d46-46bb-a902-4047537099cb

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added the react label Aug 4, 2026

Copy link
Copy Markdown
Member Author

AGENTS.md のgit-flow規約に合わせて、feature/use-connected-routes から作成した #6530 へ差し替えます。このPRはクローズします。

@TinyKitten TinyKitten closed this Aug 4, 2026
@TinyKitten
TinyKitten deleted the agent/use-connected-routes branch August 6, 2026 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant