pub fn parse_field15(route: &str) -> Result<JsValue, JsValue>Expand description
Parse a raw ICAO field 15 route string into a structured token array.
Returns a JS array of token objects. Each token is one of:
{ "waypoint": "LACOU" }— named waypoint or navaid{ "aerodrome": "LFPG" }— ICAO aerodrome code{ "coords": [lat, lon] }— latitude/longitude coordinates{ "point_bearing_distance": { "point": ..., "bearing": 180, "distance": 60 } }{ "airway": "UM184" }— ATS route"DCT"— direct routing{ "SID": "RANUX1A" }— SID designator{ "STAR": "LORNI1A" }— STAR designator{ "speed": ..., "altitude": ... }— speed/altitude modifier"VFR","IFR","OAT","GAT","IFPSTOP","IFPSTART",{ "STAY": ... }, …