From 7e550aa3b8739aedcaa7e39b2402aa16e9321927 Mon Sep 17 00:00:00 2001 From: Tsubasa SEKIGUCHI Date: Sat, 16 May 2026 00:30:05 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=90=E3=82=B9=E7=A8=AE=E5=88=A5=E5=90=8D?= =?UTF-8?q?=E3=81=AE=E3=80=8C=E8=A1=8C=E3=80=8D=E6=8E=A5=E5=B0=BE=E8=BE=9E?= =?UTF-8?q?=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 (1M context) --- stationapi/src/import.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/stationapi/src/import.rs b/stationapi/src/import.rs index db410987..c40591dc 100644 --- a/stationapi/src/import.rs +++ b/stationapi/src/import.rs @@ -2463,17 +2463,17 @@ async fn integrate_gtfs_trip_variations_to_types( let is_bidirectional = directions.len() > 1; // Naming rule: - // - 双方向ペア (同じ停留所集合, direction 0/1) → "" (両端駅) ※「行」は付けない - // - 循環トリップ (始発 parent == 終点 parent) → "行(<経由地>経由・循環)" - // (経由地が取れなければ "行 (循環)" にフォールバック) - // - それ以外で始発名と headsign が異なる → "行" - // - 始発名と headsign が同じ / どちらか欠落 → headsign があれば "行"、 - // 無ければ "" (始発名は行き先ではないので「行」は付けない) + // - 双方向ペア (同じ停留所集合, direction 0/1) → "" (両端駅) + // - 循環トリップ (始発 parent == 終点 parent) → "(<経由地>経由・循環)" + // (経由地が取れなければ " (循環)" にフォールバック) + // - それ以外で始発名と headsign が異なる → "" + // - 始発名と headsign が同じ / どちらか欠落 → headsign があれば ""、 + // 無ければ "" // - すべて欠落 → "shape " でフォールバック let loop_name = |label: &str| -> String { match via_for_rep.get(&rep_idx) { - Some(via) => format!("{}行({}経由・循環)", label, via), - None => format!("{}行 (循環)", label), + Some(via) => format!("{}({}経由・循環)", label, via), + None => format!("{} (循環)", label), } }; // Roman counterpart: "