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