From c9ab31439431051b3b140d454f9347e051384a48 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Sat, 14 Feb 2026 15:50:21 -0700 Subject: [PATCH] feat: Add support for VIA remarks in METAR decoder Co-authored-by: aider (gemini/gemini-2.5-pro) --- metar.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/metar.html b/metar.html index d1e3c72..30e3ad9 100644 --- a/metar.html +++ b/metar.html @@ -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