/* APRS descriptions: OH7LZB / aprs-symbol-index, CC BY-SA 4.0. See vendor/aprs-symbols/README.md. */ (()=>{ const names={"/!":"Police station","/#":"Digipeater","/$":"Telephone","/%":"DX cluster","/&":"HF gateway","/'":"Small aircraft","/(":"Mobile satellite station","/)":"Wheelchair, handicapped","/*":"Snowmobile","/+":"Red Cross","/,":"Boy Scouts","/-":"House","/.":"Red X","//":"Red dot","/0":"Numbered circle: 0","/1":"Numbered circle: 1","/2":"Numbered circle: 2","/3":"Numbered circle: 3","/4":"Numbered circle: 4","/5":"Numbered circle: 5","/6":"Numbered circle: 6","/7":"Numbered circle: 7","/8":"Numbered circle: 8","/9":"Numbered circle: 9","/:":"Fire","/;":"Campground, tent","/<":"Motorcycle","/=":"Railroad engine","/>":"Car","/?":"File server","/@":"Hurricane predicted path","/A":"Aid station","/B":"BBS","/C":"Canoe","/E":"Eyeball","/F":"Farm vehicle, tractor","/G":"Grid square, 3 by 3","/H":"Hotel","/I":"TCP/IP network station","/K":"School","/L":"PC user","/M":"Mac apple","/N":"NTS station","/O":"Balloon","/P":"Police car","/R":"Recreational vehicle","/S":"Space Shuttle","/T":"SSTV","/U":"Bus","/V":"ATV, Amateur Television","/W":"Weather service site","/X":"Helicopter","/Y":"Sailboat","/Z":"Windows flag","/[":"Human","/\\":"DF triangle","/]":"Mailbox, post office","/^":"Large aircraft","/_":"Weather station","/`":"Satellite dish antenna","/a":"Ambulance","/b":"Bicycle","/c":"Incident command post","/d":"Fire station","/e":"Horse, equestrian","/f":"Fire truck","/g":"Glider","/h":"Hospital","/i":"IOTA, islands on the air","/j":"Jeep","/k":"Truck","/l":"Laptop","/m":"Mic-E repeater","/n":"Node, black bulls-eye","/o":"Emergency operations center","/p":"Dog","/q":"Grid square, 2 by 2","/r":"Repeater tower","/s":"Ship, power boat","/t":"Truck stop","/u":"Semi-trailer truck, 18-wheeler","/v":"Van","/w":"Water station","/x":"X / Unix","/y":"House, yagi antenna","/z":"Shelter","\\!":"Emergency","\\#":"Digipeater, green star","\\$":"Bank or ATM","\\&":"Gateway station","\\'":"Crash / incident site","\\(":"Cloudy","\\)":"Firenet MEO, MODIS Earth Observation","\\*":"Snow","\\+":"Church","\\,":"Girl Scouts","\\-":"House, HF antenna","\\.":"Ambiguous, question mark inside circle","\\/":"Waypoint destination","\\0":"Circle, IRLP / Echolink/WIRES","\\8":"802.11 WiFi or other network node","\\9":"Gas station","\\:":"Hail","\\;":"Park, picnic area","\\<":"Advisory, single red flag","\\>":"Red car","\\?":"Info kiosk","\\@":"Hurricane, Tropical storm","\\A":"White box","\\B":"Blowing snow","\\C":"Coast Guard","\\D":"Drizzling rain","\\E":"Smoke, Chimney","\\F":"Freezing rain","\\G":"Snow shower","\\H":"Haze","\\I":"Rain shower","\\J":"Lightning","\\K":"Kenwood HT","\\L":"Lighthouse","\\N":"Navigation buoy","\\O":"Rocket","\\P":"Parking","\\Q":"Earthquake","\\R":"Restaurant","\\S":"Satellite","\\T":"Thunderstorm","\\U":"Sunny","\\V":"VORTAC, Navigational aid","\\W":"NWS site","\\X":"Pharmacy","\\[":"Wall Cloud","\\^":"Aircraft","\\_":"Weather site","\\`":"Rain","\\a":"Red diamond","\\b":"Blowing dust, sand","\\c":"CD triangle, RACES, CERTS, SATERN","\\d":"DX spot","\\e":"Sleet","\\f":"Funnel cloud","\\g":"Gale, two red flags","\\h":"Store","\\i":"Black box, point of interest","\\j":"Work zone, excavating machine","\\k":"SUV, ATV","\\m":"Value sign, 3 digit display","\\n":"Red triangle","\\o":"Small circle","\\p":"Partly cloudy","\\r":"Restrooms","\\s":"Ship, boat","\\t":"Tornado","\\u":"Truck","\\v":"Van","\\w":"Flooding","\\y":"Skywarn","\\z":"Shelter","\\{":"Fog"}; function decode(position){ const {symbol,symset}=position||{}; if(typeof symbol!=='string'||symbol.length!==1||symbol<'!'||symbol>'~'||!/^[/\\A-Z0-9]$/.test(symset||''))return null; const table=symset==='/'?'primary':'alternate',overlay=/^[A-Z0-9]$/.test(symset)?symset:null; const index=symbol.charCodeAt(0)-33; return {symbol,symset,table,overlay,index,name:names[(table==='primary'?'/':'\\')+symbol]||'APRS',code:symset+symbol}; } function html(position){ const info=decode(position);if(!info)return ''; const col=info.index%16,row=Math.floor(info.index/16); return ''; } window.BPQAprsSymbols={decode,html}; })();