Repository navigation
特急ひたち品川→仙台の位置情報シミュレーション用GPXを追加 - #7168
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018re65BxiKdD6mx2tVpcezp
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: This review used your included allowance. 2 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 4 reviews per hour. 📝 WalkthroughWalkthrough位置シミュレーションのドキュメントに、特急ひたち品川発仙台行きのGPXサンプルを追加しました。経路情報と、停車駅の判定に関する説明を記載しました。 Changes特急ひたちのGPXサンプル
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~3 minutes Change: Other Merge Risk: ⚪ Minimal · up to No actionable mismatch was found in the new location-simulation sample. It is ready to merge after normal checks. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
うさぎはGPXをそっと見て Comment |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018re65BxiKdD6mx2tVpcezp
概要
特急ひたち(品川→仙台)を走る GPX を
assets/gpx/に追加します。通過駅が長く続く在来線特急で、到着判定と通過判定を確かめるためのサンプルです。変更の種類
変更内容
assets/gpx/HitachiShinagawaSendai.gpxを追加しました。npm run gpx:generate -- --line-group 116 --api https://gql-stg.trainlcd.app/ --out assets/gpx/HitachiShinagawaSendai.gpxstopConditionに従います。一部停車(PartialStop)と一部通過(Partial)の9駅は、どちらも停車として扱います。アプリのsrc/utils/isPass.tsと同じ規則です。そのため、実在するどの1本の停車パターンとも一致しません。docs/location-simulation.mdの同梱 GPX の一覧に追記し、説明の段落を加えました。回帰リスクと対策
require()されません。location.gpxEtaAssist.test.tsは、精度を持たない全 GPX を自動で読み込みます。このファイルも対象になります。テスト
npm run lintが通ることnpm testが通ることnpm run typecheckが通ること最初のコミット(f5a324a)で
npm testを実行し、322スイート・3597件がすべて通りました。GPX を作り直したコミット(fc16610)では、
npm run lintと GPX を読み込むテスト3スイート(location.gpxEtaAssist/location.subwayGpx/location.gpxLag、23件)を実行し、すべて通りました。このコミットの変更は GPX とドキュメントだけです。関連Issue
Refs TrainLCD/StationAPI#1717
スクリーンショット(任意)
UI 変更なし: 開発用の GPX とドキュメントの追加のみで、アプリの画面には影響しません。
🤖 Generated with Claude Code
https://claude.ai/code/session_018re65BxiKdD6mx2tVpcezp
Summary by CodeRabbit
PartialStopとPartialも停車として扱うため、実在する単一列車の停車パターンとは一致しないことを明記しました。