feat: Add support for VIA remarks in METAR decoder

Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
2026-02-14 15:50:21 -07:00
parent d0416eff79
commit c9ab314394
+4
View File
@@ -277,6 +277,10 @@
decoded.push(` - ${decodeObscurationRemark(part)}`);
} else if (part.match(/^([A-Z]{2}\d)+$/)) {
decoded.push(` - ${decodeCloudTypesRemark(part, metarString)}`);
} else if (part === 'VIA' && i + 1 < parts.length) {
const location = parts[i+1];
decoded.push(` - VIA ${location}: via ${location}`);
i++; // Consume location
} else if (part === 'VIRGA' && i + 1 < parts.length && parts[i+1] === 'ALQDS') {
decoded.push(` - VIRGA ALQDS: Virga in all quadrants`);
i++; // Consume ALQDS