AD WRNG (ICAO)
Required roles:
AIS PIB API— Roles
Base endpoint:https://ais-pib-api.ibosoft.net.tr:2087/opmet-decoder-ad-wrng-icao
Reference documents: ICAO Doc 10157 PANS-MET, Ed. 1 (27/11/25) · ICAO Doc 8400 PANS-ABC, Ed. 9, Amend. 33 (8/11/18)
Attribution: showibonav.aeroor "Decoded by Ibosoft" wherever decoded output is displayed
Data sources: none — decodes the message supplied in the request.
Last updated: 17 OCT 2026About the reference documents: Related Documents and Resources
Decodes an aerodrome warning into readable fields, following the PANS-MET template strictly. Optionally returns machine-readable values (parsed).
The format is that of PANS-MET Table A7-6 (see also Chapter 6, 6.6). To get warnings to decode, see AD WRNG; converted warnings end with an RMK … part that is not a template element and is therefore listed as undecodable.
Endpoints
POST /opmet-decoder-ad-wrng-icao/decode?parsed=false
Content-Type: application/json
{ "raw": "<aerodrome warning text>" }
Parameters
| Parameter | In | Default | Description |
|---|---|---|---|
raw |
body | — | Warning text, at least 10 characters |
parsed |
query | false |
true: add the parsed object |
How the template is processed
- Field names and wording come from PANS-MET Table A7-6 and its notes: output keys are the template element names; phenomena are written out with the template's terms (e.g.
HVY SN 25CM→ "Heavy snow, expected total snowfall 25 cm",RIME→ "Hoar frost or rime"). Abbreviations are expanded as defined in PANS-MET and PANS-ABC (Doc 8400). - M (mandatory) elements are always present (
nullwhen missing or not following the template). C (conditional) elements — changes in intensity, cancellation — appear only when present. A cancellation (CNL AD WRNG …) has no phenomenon. - Several phenomena are returned as a list; a single phenomenon as a string.
- Free text: text that is not a template phenomenon is accepted as free text up to 32 characters; longer text is undecodable.
- Numbers: a numeric placeholder means "up to that many digits" (
nn[n]MPSaccepts20MPS); day-time groups andnnnnZare fixed. - Strict template: groups that do not follow the template are listed under
Undecodable elements(neighbouring groups form one entry).
For the full list of phenomena and forms, see PANS-MET Table A7-6.
Response
YUCC AD WRNG 4 VALID 211230/211530 SFC WIND 240/20KT MAX 35 TS GR FCST WKN
{
"Location indicator of the aerodrome": "YUCC",
"Identification of the type of message": "Aerodrome warning",
"Sequence number": "4",
"Validity period": "Valid from Day 21, 12:30 UTC to Day 21, 15:30 UTC",
"Phenomenon": ["Surface wind 20 kt from 240°T, maximum 35 kt", "Thunderstorm", "Hail"],
"Observed or forecast phenomenon": "Forecast",
"Changes in intensity": "Weakening",
"positions": [{"start": 0, "end": 4}, "…"],
"corrected_raw": "YUCC AD WRNG 4 VALID 211230/211530 SFC WIND 240/20KT MAX 35 TS GR FCST WKN",
"raw": "YUCC AD WRNG 4 VALID 211230/211530 SFC WIND 240/20KT MAX 35 TS GR FCST WKN",
"parsed": {
"location_indicator": "YUCC", "sequence_number": 4,
"utc_day": 21, "utc_time": "1230",
"valid_to": {"day": 21, "time": "1530"}
}
}
| Key | Description |
|---|---|
| element keys | Decoded elements, in template order |
Undecodable elements |
Groups that do not follow the template (only when there are any) |
corrected_raw |
The message after normalization (single spaces, upper case, no final =); positions refer to this text |
positions |
Character spans {start, end} in corrected_raw, one per decoded value in output order (one per list item), then one per undecodable entry |
parsed |
With parsed=true: location_indicator, sequence_number, start of validity (utc_day, utc_time), end of validity (valid_to); for a cancellation also cancelled_sequence_number |
Errors
| Code | Meaning |
|---|---|
400 |
The message could not be parsed at all; detail explains why |
422 |
raw is missing or shorter than 10 characters |