Add Warsaw official nearby station data

This commit is contained in:
2569718930@qq.com
2026-03-21 21:32:54 +08:00
parent 33385c3dda
commit 2ba680954c
6 changed files with 122 additions and 3 deletions
+6 -1
View File
@@ -1132,11 +1132,16 @@ export function getShortTermNowcastLines(
? detail.metar_recent_obs.slice(-4)
: [];
const nearby = Array.isArray(detail.mgm_nearby) ? detail.mgm_nearby : [];
const nearbySource = String(detail.nearby_source || "").toLowerCase();
const sourceLabel =
detail.name === "ankara"
nearbySource === "mgm" || detail.name === "ankara"
? isEnglish(locale)
? "MGM nearby stations"
: "MGM 周边站"
: nearbySource === "official_cluster"
? isEnglish(locale)
? "Official nearby stations"
: "官方周边站"
: isEnglish(locale)
? "METAR nearby stations"
: "METAR 周边站";