@@ -6,8 +6,8 @@ |
||
6 | 6 | */ |
7 | 7 | class Predict_Vector |
8 | 8 | { |
9 | - public $x = 0; |
|
10 | - public $y = 0; |
|
11 | - public $z = 0; |
|
12 | - public $w = 0; |
|
9 | + public $x = 0; |
|
10 | + public $y = 0; |
|
11 | + public $z = 0; |
|
12 | + public $w = 0; |
|
13 | 13 | } |
@@ -7,7 +7,7 @@ |
||
7 | 7 | <button type="button" class="close">×</button> |
8 | 8 | <?php |
9 | 9 | |
10 | -$notamref = filter_input(INPUT_GET,'notam',FILTER_SANITIZE_STRING); |
|
10 | +$notamref = filter_input(INPUT_GET, 'notam', FILTER_SANITIZE_STRING); |
|
11 | 11 | $notamref = urldecode($notamref); |
12 | 12 | $NOTAM = new NOTAM(); |
13 | 13 | $notam = $NOTAM->getNOTAMbyRef($notamref); |
@@ -7,964 +7,964 @@ |
||
7 | 7 | class NOTAM { |
8 | 8 | public $db; |
9 | 9 | private $abbr = array( |
10 | - 'A/A' => 'Air-to-air', |
|
11 | - 'A/G' => 'Air-to-ground', |
|
12 | - 'AAL' => 'Above Aerodrome Level', |
|
13 | - 'ABM' => 'Abeam', |
|
14 | - 'ABN' => 'Aerodrome Beacon', |
|
15 | - 'ABT' => 'About', |
|
16 | - 'ABV' => 'Above', |
|
17 | - 'ACC' => 'Area Control', |
|
18 | - 'ACFT' => 'Aircraft', |
|
19 | - 'ACK' => 'Acknowledge', |
|
20 | - 'ACL' => 'Altimeter Check Location', |
|
21 | - 'ACN' => 'Aircraft Classification Number', |
|
22 | - 'ACPT' => 'Accepted', |
|
23 | - 'ACT' => 'Active', |
|
24 | - 'AD' => 'Aerodrome', |
|
25 | - 'ADA' => 'Advisory Area', |
|
26 | - 'ADC' => 'Aerodrome Chart', |
|
27 | - 'ADDN' => 'Additional', |
|
28 | - 'ADIZ' => 'Air defense identification zone', |
|
29 | - 'ADJ' => 'Adjacent', |
|
30 | - 'ADR' => 'Advisory Route', |
|
31 | - 'ADS' => 'Automatic Dependent Surveillance', |
|
32 | - 'ADVS' => 'Advisory Service', |
|
33 | - 'ADZ' => 'Advised', |
|
34 | - 'AFIL' => 'Flight Plan Filed In The Air', |
|
35 | - 'AFIS' => 'Airport flight information service', |
|
36 | - 'AFM' => 'Affirm', |
|
37 | - 'AFT' => 'After', |
|
38 | - 'AGA' => 'Aerodromes, Air Routes and Ground Aids', |
|
39 | - 'AGN' => 'Again', |
|
40 | - 'AIS' => 'Aeronautical information service', |
|
41 | - 'ALERFA' => 'Alert Phase', |
|
42 | - 'ALRS' => 'Alerting Service', |
|
43 | - 'ALS' => 'Approach Lighting System', |
|
44 | - 'ALT' => 'Altitude', |
|
45 | - 'ALTN' => 'Alternate', |
|
46 | - 'AMA' => 'Area Minimum Altitude', |
|
47 | - 'ANC' => 'Aeronautical Chart', |
|
48 | - 'ANCS' => 'Aeronautical Navigation Chart', |
|
49 | - 'ANS' => 'Answer', |
|
50 | - 'AOC' => 'Aerodrome Obstacle Chart', |
|
51 | - 'AP' => 'Airport', |
|
52 | - 'APCH' => 'Approach', |
|
53 | - 'APDC' => 'Aircraft Parking/docking Chart', |
|
54 | - 'APN' => 'Apron', |
|
55 | - 'APNS' => 'Aprons', |
|
56 | - 'APP' => 'Approach Control', |
|
57 | - 'APR' => 'April', |
|
58 | - 'APRX' => 'Approximately', |
|
59 | - 'APSG' => 'After Passing', |
|
60 | - 'APV' => 'Approved', |
|
61 | - 'ARC' => 'Area Chart', |
|
62 | - 'ARNG' => 'Arrange', |
|
63 | - 'ARO' => 'Air Traffic Services Reporting Office', |
|
64 | - 'ARP' => 'Aerodrome Reference Point', |
|
65 | - 'ARR' => 'Arriving', |
|
66 | - 'ARST' => 'Arresting', |
|
67 | - 'ASC' => 'Ascend To', |
|
68 | - 'ASDA' => 'Accelerate-Stop Distance Available', |
|
69 | - 'ASPEEDG' => 'Airspeed Gain', |
|
70 | - 'ASPEEDL' => 'Airspeed Loss', |
|
71 | - 'ASPH' => 'Asphalt', |
|
72 | - 'ATA' => 'Actual Time of Arrival', |
|
73 | - 'ATD' => 'Actual Time of Departure', |
|
74 | - 'ATFM' => 'Air Traffic Flow Management', |
|
75 | - 'ATIS' => 'Automatic terminal information service', |
|
76 | - 'ATM' => 'Air Traffic Management', |
|
77 | - 'ATP' => 'At', |
|
78 | - 'ATTN' => 'Attention', |
|
79 | - 'ATZ' => 'Aerodrome Traffic Zone', |
|
80 | - 'AUG' => 'August', |
|
81 | - 'AUTH' => 'Authorization', |
|
82 | - 'AUW' => 'All Up Weight', |
|
83 | - 'AUX' => 'Auxiliary', |
|
84 | - 'AVBL' => 'Available', |
|
85 | - 'AVG' => 'Average', |
|
86 | - 'AVGAS' => 'Aviation Gasoline', |
|
87 | - 'AWTA' => 'Advise At What Time Able', |
|
88 | - 'AWY' => 'Airway', |
|
89 | - 'AWYS' => 'Airways', |
|
90 | - 'AZM' => 'Azimuth', |
|
91 | - 'BA' => 'Braking Action', |
|
92 | - 'BCN' => 'Beacon', |
|
93 | - 'BCST' => 'Broadcast', |
|
94 | - 'BDRY' => 'Boundary', |
|
95 | - 'BFR' => 'Before', |
|
96 | - 'BLDG' => 'Building', |
|
97 | - 'BLO' => 'Below Clouds', |
|
98 | - 'BLW' => 'Below', |
|
99 | - 'BRF' => 'Short', |
|
100 | - 'BRG' => 'Bearing', |
|
101 | - 'BRKG' => 'Breaking', |
|
102 | - 'BTL' => 'Between Layers', |
|
103 | - 'BTN' => 'Between', |
|
104 | - 'CD' => 'Candela', |
|
105 | - 'CDN' => 'Coordination', |
|
106 | - 'CF' => 'Change Frequency To', |
|
107 | - 'CFM' => 'Confirm', |
|
108 | - 'CGL' => 'Circling Guidance Light(s)', |
|
109 | - 'CH' => 'Channel', |
|
110 | - 'CHG' => 'Changed', |
|
111 | - 'CIT' => 'Near or Over Large Towns', |
|
112 | - 'CIV' => 'Civil', |
|
113 | - 'CK' => 'Check', |
|
114 | - 'CL' => 'Centre Line', |
|
115 | - 'CLBR' => 'Calibration', |
|
116 | - 'CLD' => 'Cloud', |
|
117 | - 'CLG' => 'Calling', |
|
118 | - 'CLIMB-OUT' => 'Climb-out Area', |
|
119 | - 'CLR' => 'Clearance', |
|
120 | - 'CLRD' => 'Cleared', |
|
121 | - 'CLSD' => 'Closed', |
|
122 | - 'CMB' => 'Climb', |
|
123 | - 'CMPL' => 'Complete', |
|
124 | - 'CNL' => 'Cancel', |
|
125 | - 'CNS' => 'Communications, Navigation And Surveillance', |
|
126 | - 'COM' => 'Communications', |
|
127 | - 'CONC' => 'Concrete', |
|
128 | - 'COND' => 'Condition', |
|
129 | - 'CONS' => 'Continuous', |
|
130 | - 'CONST' => 'Construction', |
|
131 | - 'CONT' => 'Continued', |
|
132 | - 'COOR' => 'Coordination', |
|
133 | - 'COORD' => 'Coordinates', |
|
134 | - 'COP' => 'Change-over Point', |
|
135 | - 'COR' => 'Correction', |
|
136 | - 'COT' => 'At The Coast', |
|
137 | - 'COV' => 'Covered', |
|
138 | - 'CPDLC' => 'Controller-pilot Data Link Communications', |
|
139 | - 'CPL' => 'Current Flight Plan', |
|
140 | - 'CRC' => 'Cyclic Redundancy Check', |
|
141 | - 'CRZ' => 'Cruise', |
|
142 | - 'CTA' => 'Control area', |
|
143 | - 'CTAM' => 'Climb To And Maintain', |
|
144 | - 'CTC' => 'Contact', |
|
145 | - 'CTL' => 'Control', |
|
146 | - 'CTN' => 'Caution', |
|
147 | - 'CTR' => 'Control Zone', |
|
148 | - 'CVR' => 'Cockpit Voice Recorder', |
|
149 | - 'CW' => 'Continuous Wave', |
|
150 | - 'CWY' => 'Clearway', |
|
151 | - 'DA' => 'Decision Altitude', |
|
152 | - 'DCKG' => 'Docking', |
|
153 | - 'DCP' => 'Datum Crossing Point', |
|
154 | - 'DCPC' => 'Direct Controller-pilot Communications', |
|
155 | - 'DCT' => 'Direct', |
|
156 | - 'DEC' => 'December', |
|
157 | - 'DEG' => 'Degrees', |
|
158 | - 'DEP' => 'Departing', |
|
159 | - 'DES' => 'Descend', |
|
160 | - 'DEST' => 'Destination', |
|
161 | - 'DETRESFA' => 'Distress Phase', |
|
162 | - 'DEV' => 'Deviating', |
|
163 | - 'DFDR' => 'Digital Flight Data Recorder', |
|
164 | - 'DFTI' => 'Distance From Touchdown Indicator', |
|
165 | - 'DH' => 'Decision Height', |
|
166 | - 'DIP' => 'Diffuse', |
|
167 | - 'DIST' => 'Distance', |
|
168 | - 'DIV' => 'Divert', |
|
169 | - 'DLA' => 'Delay', |
|
170 | - 'DLY' => 'Daily', |
|
171 | - 'DME' => 'Distance measuring equipment', |
|
172 | - 'DNG' => 'Dangerous', |
|
173 | - 'DOM' => 'Domestic', |
|
174 | - 'DPT' => 'Depth', |
|
175 | - 'DR' => 'Dead Reckoning', |
|
176 | - 'DRG' => 'During', |
|
177 | - 'DTAM' => 'Descend To And Maintain', |
|
178 | - 'DTG' => 'Date-time Group', |
|
179 | - 'DTHR' => 'Displaced Runway Threshold', |
|
180 | - 'DTRT' => 'Deteriorating', |
|
181 | - 'DTW' => 'Dual Tandem Wheels', |
|
182 | - 'DUPE' => 'This Is A Duplicate Message', |
|
183 | - 'DUR' => 'Duration', |
|
184 | - 'DVOR' => 'Doppler VOR', |
|
185 | - 'DW' => 'Dual Wheels', |
|
186 | - 'EAT' => 'Expected Approach Time', |
|
187 | - 'EB' => 'Eastbound', |
|
188 | - 'EDA' => 'Elevation Differential Area', |
|
189 | - 'EET' => 'Estimated Elapsed Time', |
|
190 | - 'EFC' => 'Expect Further Clearance', |
|
191 | - 'ELBA' => 'Emergency Location Beacon', |
|
192 | - 'ELEV' => 'Elevation', |
|
193 | - 'ELR' => 'Extra Long Range', |
|
194 | - 'EM' => 'Emission', |
|
195 | - 'EMERG' => 'Emergency', |
|
196 | - 'END' => 'Stop-end', |
|
197 | - 'ENE' => 'East-north-east', |
|
198 | - 'ENG' => 'Engine', |
|
199 | - 'ENR' => 'En-route', |
|
200 | - 'ENRC' => 'En-route Chart', |
|
201 | - 'EOBT' => 'Estimated Off-block Time', |
|
202 | - 'EQPT' => 'Equipment', |
|
203 | - 'ER' => 'Here', |
|
204 | - 'ESE' => 'East-south-east', |
|
205 | - 'EST' => 'Estimate', |
|
206 | - 'ETA' => 'Estimated Time Of Arrival', |
|
207 | - 'ETD' => 'Estimated Time Of Departure', |
|
208 | - 'ETO' => 'Estimated Time Over Significant Point', |
|
209 | - 'EV' => 'Every', |
|
210 | - 'EXC' => 'Except', |
|
211 | - 'EXER' => 'Exercise', |
|
212 | - 'EXP' => 'Expect', |
|
213 | - 'EXTD' => 'Extend', |
|
214 | - 'FAC' => 'Facilities', |
|
215 | - 'FAF' => 'Final Approach Fix', |
|
216 | - 'FAL' => 'Facilitation of International Airtransport', |
|
217 | - 'FAP' => 'Final Approach Point', |
|
218 | - 'FATO' => 'Final Approach And Take-off Area', |
|
219 | - 'FAX' => 'Fax', |
|
220 | - 'FBL' => 'Light', |
|
221 | - 'FCST' => 'Forecast', |
|
222 | - 'FCT' => 'Friction Coefficient', |
|
223 | - 'FDPS' => 'Flight Data Processing System', |
|
224 | - 'FEB' => 'February', |
|
225 | - 'FIR' => 'Flight information region', |
|
226 | - 'FIS' => 'Flight information service', |
|
227 | - 'FLD' => 'Field', |
|
228 | - 'FLG' => 'Flashing', |
|
229 | - 'FLR' => 'Flares', |
|
230 | - 'FLT' => 'Flight', |
|
231 | - 'FLTS' => 'Flights', |
|
232 | - 'FLTCK' => 'Flight Check', |
|
233 | - 'FLUC' => 'Fluctuating', |
|
234 | - 'FLW' => 'Follow(s)', |
|
235 | - 'FLY' => 'Fly', |
|
236 | - 'FM' => 'From', |
|
237 | - 'FMS' => 'Flight Management System', |
|
238 | - 'FMU' => 'Flow Management Unit', |
|
239 | - 'FNA' => 'Final Approach', |
|
240 | - 'FPAP' => 'Flight Path Alignment Point', |
|
241 | - 'FPL' => 'Flight Plan', |
|
242 | - 'FPLS' => 'Flight Plans', |
|
243 | - 'FPM' => 'Feet Per Minute', |
|
244 | - 'FPR' => 'Flight Plan Route', |
|
245 | - 'FR' => 'Fuel Remaining', |
|
246 | - 'FREQ' => 'Frequency', |
|
247 | - 'FRI' => 'Friday', |
|
248 | - 'FRMG' => 'Missile, gun or rocket firing', |
|
249 | - 'FRNG' => 'Firing', |
|
250 | - 'FRONT' => 'Front', |
|
251 | - 'FRQ' => 'Frequent', |
|
252 | - 'FSL' => 'Full Stop Landing', |
|
253 | - 'FSS' => 'Flight Service Station', |
|
254 | - 'FST' => 'First', |
|
255 | - 'FTP' => 'Fictitious Threshold Point', |
|
256 | - 'G/A' => 'Ground-to-air', |
|
257 | - 'G/A/G' => 'Ground-to-air and Air-to-ground', |
|
258 | - 'GARP' => 'GBAS Azimuth Reference Point', |
|
259 | - 'GBAS' => 'Ground-based Augmentation System', |
|
260 | - 'GCAJ' => 'Ground Controlled Approach', |
|
261 | - 'GCA' => 'Ground Controlled Approach System', |
|
262 | - 'GEN' => 'General', |
|
263 | - 'GEO' => 'Geographic or True', |
|
264 | - 'GES' => 'Ground Earth Station', |
|
265 | - 'GLD' => 'Glider', |
|
266 | - 'GMC' => 'Ground Movement Chart', |
|
267 | - 'GND' => 'Ground', |
|
268 | - 'GNDCK' => 'Ground Check', |
|
269 | - 'GP' => 'Glide Path', |
|
270 | - 'GRASS' => 'Grass landing area', |
|
271 | - 'GRVL' => 'Gravel', |
|
272 | - 'GUND' => 'Geoid Undulation', |
|
273 | - 'H24' => '24 Hours', |
|
274 | - 'HAPI' => 'Helicopter Approach Path Indicator', |
|
275 | - 'HBN' => 'Hazard Beacon', |
|
276 | - 'HDG' => 'Heading', |
|
277 | - 'HEL' => 'Helicopter', |
|
278 | - 'HGT' => 'Height', |
|
279 | - 'HJ' => 'Sunrise to Sunset', |
|
280 | - 'HLDG' => 'Holding', |
|
281 | - 'HN' => 'Sunset to Sunrise', |
|
282 | - 'HO' => 'Service Available To Meet Operational Requirements', |
|
283 | - 'HOL' => 'Holiday', |
|
284 | - 'HOSP' => 'Hospital Aircraft', |
|
285 | - 'HOT' => 'Height', |
|
286 | - 'HPA' => 'Hectopascal', |
|
287 | - 'HR' => 'Hours', |
|
288 | - 'HRS' => 'Hours', |
|
289 | - 'HS' => 'Service Available During Hours Of Scheduled Operations', |
|
290 | - 'HURCN' => 'Hurricane', |
|
291 | - 'HVY' => 'Heavy', |
|
292 | - 'HX' => 'No Specific Working Hours', |
|
293 | - 'HYR' => 'Higher', |
|
294 | - 'IAC' => 'Instrument Approach Chart', |
|
295 | - 'IAF' => 'Initial Approach Fix', |
|
296 | - 'IAO' => 'In And Out Of Clouds', |
|
297 | - 'IAP' => 'Instrument Approach Procedure', |
|
298 | - 'IAR' => 'Intersection Of Air Routes', |
|
299 | - 'IBN' => 'Identification Beacon', |
|
300 | - 'ID' => 'Identifier', |
|
301 | - 'IDENT' => 'Identification', |
|
302 | - 'IFF' => 'Identification Friend/Foe', |
|
303 | - 'IGA' => 'International General Aviation', |
|
304 | - 'IM' => 'Inner Marker', |
|
305 | - 'IMPR' => 'Improving', |
|
306 | - 'IMT' => 'Immediately', |
|
307 | - 'INA' => 'Initial Approach', |
|
308 | - 'INBD' => 'Inbound', |
|
309 | - 'INCERFA' => 'Uncertainty Phase', |
|
310 | - 'INFO' => 'Information', |
|
311 | - 'INOP' => 'Inoperative', |
|
312 | - 'INP' => 'If Not Possible', |
|
313 | - 'INPR' => 'In Progress', |
|
314 | - 'INSTL' => 'Installation', |
|
315 | - 'INSTR' => 'Instrument', |
|
316 | - 'INT' => 'Intersection', |
|
317 | - 'INTS' => 'Intersections', |
|
318 | - 'INTL' => 'International', |
|
319 | - 'INTRG' => 'Interrogator', |
|
320 | - 'INTRP' => 'Interruption', |
|
321 | - 'INTSF' => 'Intensifying', |
|
322 | - 'INTST' => 'Intensity', |
|
323 | - 'ISA' => 'International Standard Atmosphere', |
|
324 | - 'JAN' => 'January', |
|
325 | - 'JTST' => 'Jet stream', |
|
326 | - 'JUL' => 'July', |
|
327 | - 'JUN' => 'June', |
|
328 | - 'KMH' => 'Kilometres Per Hour', |
|
329 | - 'KPA' => 'Kilopascal', |
|
330 | - 'KT' => 'Knots', |
|
331 | - 'KW' => 'Kilowatts', |
|
332 | - 'LAN' => 'Inland', |
|
333 | - 'LAT' => 'Latitude', |
|
334 | - 'LDA' => 'Landing Distance Available', |
|
335 | - 'LDAH' => 'Landing Distance Available, Helicopter', |
|
336 | - 'LDG' => 'Landing', |
|
337 | - 'LDI' => 'Landing Direction Indicator', |
|
338 | - 'LEN' => 'Length', |
|
339 | - 'LGT' => 'Lighting', |
|
340 | - 'LGTD' => 'Lighted', |
|
341 | - 'LIH' => 'Light Intensity High', |
|
342 | - 'LIL' => 'Light Intensity Low', |
|
343 | - 'LIM' => 'Light Intensity Medium', |
|
344 | - 'LLZ' => 'Localizer', |
|
345 | - 'LM' => 'Locator, Middle', |
|
346 | - 'LMT' => 'Local Mean Time', |
|
347 | - 'LNG' => 'Long', |
|
348 | - 'LO' => 'Locator, Outer', |
|
349 | - 'LOG' => 'Located', |
|
350 | - 'LONG' => 'Longitude', |
|
351 | - 'LRG' => 'Long Range', |
|
352 | - 'LTD' => 'Limited', |
|
353 | - 'LTP' => 'Landing Threshold Point', |
|
354 | - 'LVE' => 'Leaving', |
|
355 | - 'LVL' => 'Level', |
|
356 | - 'LYR' => 'Layer', |
|
357 | - 'MAA' => 'Maximum Authorized Altitude', |
|
358 | - 'MAG' => 'Magnetic', |
|
359 | - 'MAINT' => 'Maintenance', |
|
360 | - 'MAP' => 'Aeronautical Maps and Charts', |
|
361 | - 'MAPT' => 'Missed Approach Point', |
|
362 | - 'MAR' => 'March', |
|
363 | - 'MAX' => 'Maximum', |
|
364 | - 'MAY' => 'May', |
|
365 | - 'MBST' => 'Microburst', |
|
366 | - 'MCA' => 'Minimum Crossing Altitude', |
|
367 | - 'MCW' => 'Modulated Continuous Wave', |
|
368 | - 'MDA' => 'Minimum Descent Altitude', |
|
369 | - 'MDH' => 'Minimum Descent Height', |
|
370 | - 'MEA' => 'Minimum En-route Altitude', |
|
371 | - 'MEHT' => 'Minimum Eye Height Over Threshold', |
|
372 | - 'MET' => 'Meteorological', |
|
373 | - 'MID' => 'Mid-point', |
|
374 | - 'MIL' => 'Military', |
|
375 | - 'MIN' => 'Minutes', |
|
376 | - 'MKR' => 'Marker Radio Beacon', |
|
377 | - 'MLS' => 'Microwave Landing System', |
|
378 | - 'MM' => 'Middle Marker', |
|
379 | - 'MNM' => 'Minimum', |
|
380 | - 'MNPS' => 'Minimum Navigation Performance Specifications', |
|
381 | - 'MNT' => 'Monitor', |
|
382 | - 'MNTN' => 'Maintain', |
|
383 | - 'MOA' => 'Military Operating Area', |
|
384 | - 'MOC' => 'Minimum Obstacle Clearance', |
|
385 | - 'MOD' => 'Moderate', |
|
386 | - 'MON' => 'Monday', |
|
387 | - 'MOPS' => 'Minimum Operational Performance Standards', |
|
388 | - 'MOV' => 'Movement', |
|
389 | - 'MRA' => 'Minimum Reception Altitude', |
|
390 | - 'MRG' => 'Medium Range', |
|
391 | - 'MRP' => 'ATS/MET Reporting Point', |
|
392 | - 'MS' => 'Minus', |
|
393 | - 'MSA' => 'Minimum Sector Altitude', |
|
394 | - 'MSAW' => 'Minimum Safe Altitude Warning', |
|
395 | - 'MSG' => 'Message', |
|
396 | - 'MSSR' => 'Monopulse Secondary Surveillance Radar', |
|
397 | - 'MT' => 'Mountain', |
|
398 | - 'MTU' => 'Metric Units', |
|
399 | - 'MTW' => 'Mountain Waves', |
|
400 | - 'NASC' => 'National AIS System Centre', |
|
401 | - 'NAT' => 'North Atlantic', |
|
402 | - 'NAV' => 'Navigation', |
|
403 | - 'NB' => 'Northbound', |
|
404 | - 'NBFR' => 'Not Before', |
|
405 | - 'NE' => 'North-east', |
|
406 | - 'NEB' => 'North-eastbound', |
|
407 | - 'NEG' => 'Negative', |
|
408 | - 'NGT' => 'Night', |
|
409 | - 'NIL' => 'None', |
|
410 | - 'NML' => 'Normal', |
|
411 | - 'NNE' => 'North-north-east', |
|
412 | - 'NNW' => 'North-north-west', |
|
413 | - 'NOF' => 'International NOTAM Office', |
|
414 | - 'NOV' => 'November', |
|
415 | - 'NOZ' => 'Normal Operating Zone', |
|
416 | - 'NR' => 'Number', |
|
417 | - 'NRH' => 'No Reply Heard', |
|
418 | - 'NTL' => 'National', |
|
419 | - 'NTZ' => 'No Transgression Zone', |
|
420 | - 'NW' => 'North-west', |
|
421 | - 'NWB' => 'North-westbound', |
|
422 | - 'NXT' => 'Next', |
|
423 | - 'O/R' => 'On Request', |
|
424 | - 'OAC' => 'Oceanic Area Control Centre', |
|
425 | - 'OAS' => 'Obstacle Assessment Surface', |
|
426 | - 'OBS' => 'Observe', |
|
427 | - 'OBST' => 'Obstacle', |
|
428 | - 'OBSTS' => 'Obstacles', |
|
429 | - 'OCA' => 'Oceanic Control Area', |
|
430 | - 'OCH' => 'Obstacle Clearance Height', |
|
431 | - 'OCL' => 'Obstacle Clearance Limit', |
|
432 | - 'OCS' => 'Obstacle Clearance Surface', |
|
433 | - 'OCT' => 'October', |
|
434 | - 'OFZ' => 'Obstacle Free Zone', |
|
435 | - 'OGN' => 'Originate', |
|
436 | - 'OHD' => 'Overhead', |
|
437 | - 'OM' => 'Outer Marker', |
|
438 | - 'OPC' => 'Control Indicated Is Operational Control', |
|
439 | - 'OPMET' => 'Operational Meteorological', |
|
440 | - 'OPN' => 'Open', |
|
441 | - 'OPR' => 'Operate', |
|
442 | - 'OPS' => 'Operations', |
|
443 | - 'ORD' => 'Order', |
|
444 | - 'OSV' => 'Ocean Station Vessel', |
|
445 | - 'OTLK' => 'Outlook', |
|
446 | - 'OTP' => 'On Top', |
|
447 | - 'OTS' => 'Organized Track System', |
|
448 | - 'OUBD' => 'Outbound', |
|
449 | - 'PA' => 'Precision Approach', |
|
450 | - 'PALS' => 'Precision Approach Lighting System', |
|
451 | - 'PANS' => 'Procedures for Air Navigation Services', |
|
452 | - 'PAR' => 'Precision Approach Radar', |
|
453 | - 'PARL' => 'Parallel', |
|
454 | - 'PATC' => 'Precision Approach Terrain Chart', |
|
455 | - 'PAX' => 'Passenger(s)', |
|
456 | - 'PCD' => 'Proceed', |
|
457 | - 'PCL' => 'Pilot-controlled Lighting', |
|
458 | - 'PCN' => 'Pavement Classification Number', |
|
459 | - 'PDC' => 'Pre-departure Clearance', |
|
460 | - 'PDG' => 'Procedure Design Gradient', |
|
461 | - 'PER' => 'Performance', |
|
462 | - 'PERM' => 'Permanent', |
|
463 | - 'PIB' => 'Pre-flight Information Bulletin', |
|
464 | - 'PJE' => 'Parachute Jumping Exercise', |
|
465 | - 'PLA' => 'Practice Low Approach', |
|
466 | - 'PLN' => 'Flight Plan', |
|
467 | - 'PLVL' => 'Present Level', |
|
468 | - 'PN' => 'Prior Notice Required', |
|
469 | - 'PNR' => 'Point Of No Return', |
|
470 | - 'POB' => 'Persons On Board', |
|
471 | - 'POSS' => 'Possible', |
|
472 | - 'PPI' => 'Plan Position Indicator', |
|
473 | - 'PPR' => 'Prior Permission Required', |
|
474 | - 'PPSN' => 'Present Position', |
|
475 | - 'PRI' => 'Primary', |
|
476 | - 'PRKG' => 'Parking', |
|
477 | - 'PROB' => 'Probability', |
|
478 | - 'PROC' => 'Procedure', |
|
479 | - 'PROV' => 'Provisional', |
|
480 | - 'PS' => 'Plus', |
|
481 | - 'PSG' => 'Passing', |
|
482 | - 'PSN' => 'Position', |
|
483 | - 'PSNS' => 'Positions', |
|
484 | - 'PSR' => 'Primary Surveillance Radar', |
|
485 | - 'PSYS' => 'Pressure System(s)', |
|
486 | - 'PTN' => 'Procedure Turn', |
|
487 | - 'PTS' => 'Polar Track Structure', |
|
488 | - 'PWR' => 'Power', |
|
489 | - 'QUAD' => 'Quadrant', |
|
490 | - 'RAC' => 'Rules of The Air and Air Traffic Services', |
|
491 | - 'RAG' => 'Runway Arresting Gear', |
|
492 | - 'RAI' => 'Runway Alignment Indicator', |
|
493 | - 'RASC' => 'Regional AIS System Centre', |
|
494 | - 'RASS' => 'Remote Altimeter Setting Source', |
|
495 | - 'RB' => 'Rescue Boat', |
|
496 | - 'RCA' => 'Reach Cruising Altitude', |
|
497 | - 'RCC' => 'Rescue Coordination Centre', |
|
498 | - 'RCF' => 'Radiocommunication Failure', |
|
499 | - 'RCH' => 'Reaching', |
|
500 | - 'RCL' => 'Runway Centre Line', |
|
501 | - 'RCLL' => 'Runway Centre Line Light(s)', |
|
502 | - 'RCLR' => 'Recleared', |
|
503 | - 'RDH' => 'Reference Datum Height', |
|
504 | - 'RDL' => 'Radial', |
|
505 | - 'RDO' => 'Radio', |
|
506 | - 'RE' => 'Recent', |
|
507 | - 'REC' => 'Receiver', |
|
508 | - 'REDL' => 'Runway Edge Light(s)', |
|
509 | - 'REF' => 'Refer To', |
|
510 | - 'REG' => 'Registration', |
|
511 | - 'RENL' => 'Runway End Light(s)', |
|
512 | - 'REP' => 'Report', |
|
513 | - 'REQ' => 'Requested', |
|
514 | - 'RERTE' => 'Re-route', |
|
515 | - 'RESA' => 'Runway End Safety Area', |
|
516 | - 'RG' => 'Range (lights)', |
|
517 | - 'RHC' => 'Right-hand Circuit', |
|
518 | - 'RIF' => 'Reclearance In Flight', |
|
519 | - 'RITE' => 'Right', |
|
520 | - 'RL' => 'Report Leaving', |
|
521 | - 'RLA' => 'Relay To', |
|
522 | - 'RLCE' => 'Request Level Change En Route', |
|
523 | - 'RLLS' => 'Runway Lead-in Lighting System', |
|
524 | - 'RLNA' => 'Request Level Not Available', |
|
525 | - 'RMAC' => 'Radar Minimum Altitude Chart', |
|
526 | - 'RMK' => 'Remark', |
|
527 | - 'RNG' => 'Radio Range', |
|
528 | - 'RNP' => 'Required Navigation Performance', |
|
529 | - 'ROC' => 'Rate Of Climb', |
|
530 | - 'ROD' => 'Rate Of Descent', |
|
531 | - 'ROFOR' => 'Route Forecast', |
|
532 | - 'RON' => 'Receiving Only', |
|
533 | - 'RPI' => 'Radar Position Indicator', |
|
534 | - 'RPL' => 'Repetitive Flight Plan', |
|
535 | - 'RPLC' => 'Replaced', |
|
536 | - 'RPS' => 'Radar Position Symbol', |
|
537 | - 'RQMNTS' => 'Requirements', |
|
538 | - 'RQP' => 'Request Flight Plan', |
|
539 | - 'RQS' => 'Request Supplementary Flight Plan', |
|
540 | - 'RR' => 'Report Reaching', |
|
541 | - 'RSC' => 'Rescue Sub-centre', |
|
542 | - 'RSCD' => 'Runway Surface Condition', |
|
543 | - 'RSP' => 'Responder Beacon', |
|
544 | - 'RSR' => 'En-route Surveillance Radar', |
|
545 | - 'RTE' => 'Route', |
|
546 | - 'RTES' => 'Routes', |
|
547 | - 'RTF' => 'Radiotelephone', |
|
548 | - 'RTG' => 'Radiotelegraph', |
|
549 | - 'RTHL' => 'Runway Threshold Light(s)', |
|
550 | - 'RTN' => 'Return', |
|
551 | - 'RTODAH' => 'Rejected Take-off Distance Available, Helicopter', |
|
552 | - 'RTS' => 'Return To Service', |
|
553 | - 'RTT' => 'Radioteletypewriter', |
|
554 | - 'RTZL' => 'Runway Touchdown Zone Light(s)', |
|
555 | - 'RUT' => 'Standard Regional Route Transmitting Frequencies', |
|
556 | - 'RV' => 'Rescue Vessel', |
|
557 | - 'RVSM' => 'Reduced Vertical Separation Minimum', |
|
558 | - 'RWY' => 'Runway', |
|
559 | - 'RWYS' => 'Runways', |
|
560 | - 'SALS' => 'Simple Approach Lighting System', |
|
561 | - 'SAN' => 'Sanitary', |
|
562 | - 'SAP' => 'As Soon As Possible', |
|
563 | - 'SAR' => 'Search and Rescue', |
|
564 | - 'SARPS' => 'Standards and Recommended Practices', |
|
565 | - 'SAT' => 'Saturday', |
|
566 | - 'SATCOM' => 'Satellite Communication', |
|
567 | - 'SB' => 'Southbound', |
|
568 | - 'SBAS' => 'Satellite-based Augmentation System', |
|
569 | - 'SDBY' => 'Stand by', |
|
570 | - 'SE' => 'South-east', |
|
571 | - 'SEA' => 'Sea', |
|
572 | - 'SEB' => 'South-eastbound', |
|
573 | - 'SEC' => 'Seconds', |
|
574 | - 'SECN' => 'Section', |
|
575 | - 'SECT' => 'Sector', |
|
576 | - 'SELCAL' => 'Selective calling system', |
|
577 | - 'SEP' => 'September', |
|
578 | - 'SER' => 'Service', |
|
579 | - 'SEV' => 'Severe', |
|
580 | - 'SFC' => 'Surface', |
|
581 | - 'SGL' => 'Signal', |
|
582 | - 'SID' => 'Standard Instrument Departure', |
|
583 | - 'SIF' => 'Selective Identification Feature', |
|
584 | - 'SIG' => 'Significant', |
|
585 | - 'SIMUL' => 'Simultaneous', |
|
586 | - 'SKED' => 'Schedule', |
|
587 | - 'SLP' => 'Speed Limiting Point', |
|
588 | - 'SLW' => 'Slow', |
|
589 | - 'SMC' => 'Surface Movement Control', |
|
590 | - 'SMR' => 'Surface Movement Radar', |
|
591 | - 'SPL' => 'Supplementary Flight Plan', |
|
592 | - 'SPOC' => 'SAR Point Of Contact', |
|
593 | - 'SPOT' => 'Spot Wind', |
|
594 | - 'SR' => 'Sunrise', |
|
595 | - 'SRA' => 'Surveillance Radar Approach', |
|
596 | - 'SRE' => 'Surveillance Radar Element Of Precision Approach Radar System', |
|
597 | - 'SRG' => 'Short Range', |
|
598 | - 'SRR' => 'Search and Rescue Region', |
|
599 | - 'SRY' => 'Secondary', |
|
600 | - 'SS' => 'Sunset', |
|
601 | - 'SSE' => 'South-south-east', |
|
602 | - 'SSR' => 'Secondary Surveillance Radar', |
|
603 | - 'SST' => 'Supersonic Transport', |
|
604 | - 'SSW' => 'South-south-west', |
|
605 | - 'STA' => 'Straight-in Approach', |
|
606 | - 'STAR' => 'Standard Instrument Arrival', |
|
607 | - 'STD' => 'Standard', |
|
608 | - 'STN' => 'Station', |
|
609 | - 'STNR' => 'Stationary', |
|
610 | - 'STOL' => 'Short Take-off and Landing', |
|
611 | - 'STS' => 'Status', |
|
612 | - 'STWL' => 'Stopway Light(s)', |
|
613 | - 'SUBJ' => 'Subject To', |
|
614 | - 'SUN' => 'Sunday', |
|
615 | - 'SUP' => 'Supplement', |
|
616 | - 'SUPPS' => 'Regional Supplementary Procedures Service Message', |
|
617 | - 'SVCBL' => 'Serviceable', |
|
618 | - 'SW' => 'South-west', |
|
619 | - 'SWB' => 'South-westbound', |
|
620 | - 'SWY' => 'Stopway', |
|
621 | - 'TA' => 'Transition Altitude', |
|
622 | - 'TAA' => 'Terminal Arrival Altitude', |
|
623 | - 'TAF' => 'Aerodrome Forecast', |
|
624 | - 'TAIL' => 'Tail Wind', |
|
625 | - 'TAR' => 'Terminal Area Surveillance Radar', |
|
626 | - 'TAX' => 'Taxi', |
|
627 | - 'TCAC' => 'Tropical Cyclone Advisory Centre', |
|
628 | - 'TDO' => 'Tornado', |
|
629 | - 'TDZ' => 'Touchdown Zone', |
|
630 | - 'TECR' => 'Technical Reason', |
|
631 | - 'TEMPO' => 'Temporarily', |
|
632 | - 'TFC' => 'Traffic', |
|
633 | - 'TGL' => 'Touch-and-go', |
|
634 | - 'TGS' => 'Taxiing Guidance System', |
|
635 | - 'THR' => 'Threshold', |
|
636 | - 'THRU' => 'Through', |
|
637 | - 'THU' => 'Thursday', |
|
638 | - 'TIBA' => 'Traffic Information Broadcast By Aircraft', |
|
639 | - 'TIL' => 'Until', |
|
640 | - 'TIP' => 'Until Past', |
|
641 | - 'TKOF' => 'Take-off', |
|
642 | - 'TL' => 'Till', |
|
643 | - 'TLOF' => 'Touchdown And Lift-off Area', |
|
644 | - 'TMA' => 'Terminal Control Area', |
|
645 | - 'TNA' => 'Turn Altitude', |
|
646 | - 'TNH' => 'Turn Height', |
|
647 | - 'TOC' => 'Top of Climb', |
|
648 | - 'TODA' => 'Take-off Distance Available', |
|
649 | - 'TODAH' => 'Take-off Distance Available, Helicopter', |
|
650 | - 'TORA' => 'Take-off Run Available', |
|
651 | - 'TP' => 'Turning Point', |
|
652 | - 'TR' => 'Track', |
|
653 | - 'TRA' => 'Temporary Reserved Airspace', |
|
654 | - 'TRANS' => 'Transmitter', |
|
655 | - 'TRL' => 'Transition Level', |
|
656 | - 'TUE' => 'Tuesday', |
|
657 | - 'TURB' => 'Turbulence', |
|
658 | - 'TVOR' => 'Terminal VOR', |
|
659 | - 'TWR' => 'Tower', |
|
660 | - 'TWY' => 'Taxiway', |
|
661 | - 'TWYL' => 'Taxiway-link', |
|
662 | - 'TXT' => 'Text', |
|
663 | - 'TYP' => 'Type of Aircraft', |
|
664 | - 'U/S' => 'Unserviceable', |
|
665 | - 'UAB' => 'Until Advised By', |
|
666 | - 'UAC' => 'Upper Area Control Centre', |
|
667 | - 'UAR' => 'Upper Air Route', |
|
668 | - 'UDA' => 'Upper advisory area', |
|
669 | - 'UFN' => 'Until Further Notice', |
|
670 | - 'UHDT' => 'Unable Higher Due Traffic', |
|
671 | - 'UIC' => 'Upper Information Centre', |
|
672 | - 'UIR' => 'Upper Flight Information Region', |
|
673 | - 'ULR' => 'Ultra Long Range', |
|
674 | - 'UNA' => 'Unable', |
|
675 | - 'UNAP' => 'Unable To Approve', |
|
676 | - 'UNL' => 'Unlimited', |
|
677 | - 'UNREL' => 'Unreliable', |
|
678 | - 'UTA' => 'Upper Control Area', |
|
679 | - 'VAAC' => 'Volcanic Ash Advisory Centre', |
|
680 | - 'VAC' => 'Visual Approach Chart', |
|
681 | - 'VAL' => 'In Valleys', |
|
682 | - 'VAN' => 'Runway Control Van', |
|
683 | - 'VAR' => 'Visual-aural Radio Range', |
|
684 | - 'VC' => 'Vicinity', |
|
685 | - 'VCY' => 'Vicinity', |
|
686 | - 'VER' => 'Vertical', |
|
687 | - 'VIS' => 'Visibility', |
|
688 | - 'VLR' => 'Very Long Range', |
|
689 | - 'VPA' => 'Vertical Path Angle', |
|
690 | - 'VRB' => 'Variable', |
|
691 | - 'VSA' => 'By Visual Reference To The Ground', |
|
692 | - 'VSP' => 'Vertical Speed', |
|
693 | - 'VTOL' => 'Vertical Take-off And Landing', |
|
694 | - 'WAC' => 'World Aeronautical Chart', |
|
695 | - 'WAFC' => 'World Area Forecast Centre', |
|
696 | - 'WB' => 'Westbound', |
|
697 | - 'WBAR' => 'Wing Bar Lights', |
|
698 | - 'WDI' => 'Wind Direction Indicator', |
|
699 | - 'WDSPR' => 'Widespread', |
|
700 | - 'WED' => 'Wednesday', |
|
701 | - 'WEF' => 'Effective From', |
|
702 | - 'WI' => 'Within', |
|
703 | - 'WID' => 'Width', |
|
704 | - 'WIE' => 'Effective Immediately', |
|
705 | - 'WILCO' => 'Will Comply', |
|
706 | - 'WIND' => 'Wind', |
|
707 | - 'WINTEM' => 'Forecast Upper Wind And Temperature For Aviation', |
|
708 | - 'WIP' => 'Work In Progress', |
|
709 | - 'WKN' => 'Weaken', |
|
710 | - 'WNW' => 'West-north-west', |
|
711 | - 'WO' => 'Without', |
|
712 | - 'WPT' => 'Way-point', |
|
713 | - 'WRNG' => 'Warning', |
|
714 | - 'WSW' => 'West-south-west', |
|
715 | - 'WT' => 'Weight', |
|
716 | - 'WWW' => 'Worldwide Web', |
|
717 | - 'WX' => 'Weather', |
|
718 | - 'XBAR' => 'Crossbar', |
|
719 | - 'XNG' => 'Crossing', |
|
720 | - 'XS' => 'Atmospherics', |
|
721 | - 'YCZ' => 'Yellow Caution Zone', |
|
722 | - 'YR' => 'Your'); |
|
10 | + 'A/A' => 'Air-to-air', |
|
11 | + 'A/G' => 'Air-to-ground', |
|
12 | + 'AAL' => 'Above Aerodrome Level', |
|
13 | + 'ABM' => 'Abeam', |
|
14 | + 'ABN' => 'Aerodrome Beacon', |
|
15 | + 'ABT' => 'About', |
|
16 | + 'ABV' => 'Above', |
|
17 | + 'ACC' => 'Area Control', |
|
18 | + 'ACFT' => 'Aircraft', |
|
19 | + 'ACK' => 'Acknowledge', |
|
20 | + 'ACL' => 'Altimeter Check Location', |
|
21 | + 'ACN' => 'Aircraft Classification Number', |
|
22 | + 'ACPT' => 'Accepted', |
|
23 | + 'ACT' => 'Active', |
|
24 | + 'AD' => 'Aerodrome', |
|
25 | + 'ADA' => 'Advisory Area', |
|
26 | + 'ADC' => 'Aerodrome Chart', |
|
27 | + 'ADDN' => 'Additional', |
|
28 | + 'ADIZ' => 'Air defense identification zone', |
|
29 | + 'ADJ' => 'Adjacent', |
|
30 | + 'ADR' => 'Advisory Route', |
|
31 | + 'ADS' => 'Automatic Dependent Surveillance', |
|
32 | + 'ADVS' => 'Advisory Service', |
|
33 | + 'ADZ' => 'Advised', |
|
34 | + 'AFIL' => 'Flight Plan Filed In The Air', |
|
35 | + 'AFIS' => 'Airport flight information service', |
|
36 | + 'AFM' => 'Affirm', |
|
37 | + 'AFT' => 'After', |
|
38 | + 'AGA' => 'Aerodromes, Air Routes and Ground Aids', |
|
39 | + 'AGN' => 'Again', |
|
40 | + 'AIS' => 'Aeronautical information service', |
|
41 | + 'ALERFA' => 'Alert Phase', |
|
42 | + 'ALRS' => 'Alerting Service', |
|
43 | + 'ALS' => 'Approach Lighting System', |
|
44 | + 'ALT' => 'Altitude', |
|
45 | + 'ALTN' => 'Alternate', |
|
46 | + 'AMA' => 'Area Minimum Altitude', |
|
47 | + 'ANC' => 'Aeronautical Chart', |
|
48 | + 'ANCS' => 'Aeronautical Navigation Chart', |
|
49 | + 'ANS' => 'Answer', |
|
50 | + 'AOC' => 'Aerodrome Obstacle Chart', |
|
51 | + 'AP' => 'Airport', |
|
52 | + 'APCH' => 'Approach', |
|
53 | + 'APDC' => 'Aircraft Parking/docking Chart', |
|
54 | + 'APN' => 'Apron', |
|
55 | + 'APNS' => 'Aprons', |
|
56 | + 'APP' => 'Approach Control', |
|
57 | + 'APR' => 'April', |
|
58 | + 'APRX' => 'Approximately', |
|
59 | + 'APSG' => 'After Passing', |
|
60 | + 'APV' => 'Approved', |
|
61 | + 'ARC' => 'Area Chart', |
|
62 | + 'ARNG' => 'Arrange', |
|
63 | + 'ARO' => 'Air Traffic Services Reporting Office', |
|
64 | + 'ARP' => 'Aerodrome Reference Point', |
|
65 | + 'ARR' => 'Arriving', |
|
66 | + 'ARST' => 'Arresting', |
|
67 | + 'ASC' => 'Ascend To', |
|
68 | + 'ASDA' => 'Accelerate-Stop Distance Available', |
|
69 | + 'ASPEEDG' => 'Airspeed Gain', |
|
70 | + 'ASPEEDL' => 'Airspeed Loss', |
|
71 | + 'ASPH' => 'Asphalt', |
|
72 | + 'ATA' => 'Actual Time of Arrival', |
|
73 | + 'ATD' => 'Actual Time of Departure', |
|
74 | + 'ATFM' => 'Air Traffic Flow Management', |
|
75 | + 'ATIS' => 'Automatic terminal information service', |
|
76 | + 'ATM' => 'Air Traffic Management', |
|
77 | + 'ATP' => 'At', |
|
78 | + 'ATTN' => 'Attention', |
|
79 | + 'ATZ' => 'Aerodrome Traffic Zone', |
|
80 | + 'AUG' => 'August', |
|
81 | + 'AUTH' => 'Authorization', |
|
82 | + 'AUW' => 'All Up Weight', |
|
83 | + 'AUX' => 'Auxiliary', |
|
84 | + 'AVBL' => 'Available', |
|
85 | + 'AVG' => 'Average', |
|
86 | + 'AVGAS' => 'Aviation Gasoline', |
|
87 | + 'AWTA' => 'Advise At What Time Able', |
|
88 | + 'AWY' => 'Airway', |
|
89 | + 'AWYS' => 'Airways', |
|
90 | + 'AZM' => 'Azimuth', |
|
91 | + 'BA' => 'Braking Action', |
|
92 | + 'BCN' => 'Beacon', |
|
93 | + 'BCST' => 'Broadcast', |
|
94 | + 'BDRY' => 'Boundary', |
|
95 | + 'BFR' => 'Before', |
|
96 | + 'BLDG' => 'Building', |
|
97 | + 'BLO' => 'Below Clouds', |
|
98 | + 'BLW' => 'Below', |
|
99 | + 'BRF' => 'Short', |
|
100 | + 'BRG' => 'Bearing', |
|
101 | + 'BRKG' => 'Breaking', |
|
102 | + 'BTL' => 'Between Layers', |
|
103 | + 'BTN' => 'Between', |
|
104 | + 'CD' => 'Candela', |
|
105 | + 'CDN' => 'Coordination', |
|
106 | + 'CF' => 'Change Frequency To', |
|
107 | + 'CFM' => 'Confirm', |
|
108 | + 'CGL' => 'Circling Guidance Light(s)', |
|
109 | + 'CH' => 'Channel', |
|
110 | + 'CHG' => 'Changed', |
|
111 | + 'CIT' => 'Near or Over Large Towns', |
|
112 | + 'CIV' => 'Civil', |
|
113 | + 'CK' => 'Check', |
|
114 | + 'CL' => 'Centre Line', |
|
115 | + 'CLBR' => 'Calibration', |
|
116 | + 'CLD' => 'Cloud', |
|
117 | + 'CLG' => 'Calling', |
|
118 | + 'CLIMB-OUT' => 'Climb-out Area', |
|
119 | + 'CLR' => 'Clearance', |
|
120 | + 'CLRD' => 'Cleared', |
|
121 | + 'CLSD' => 'Closed', |
|
122 | + 'CMB' => 'Climb', |
|
123 | + 'CMPL' => 'Complete', |
|
124 | + 'CNL' => 'Cancel', |
|
125 | + 'CNS' => 'Communications, Navigation And Surveillance', |
|
126 | + 'COM' => 'Communications', |
|
127 | + 'CONC' => 'Concrete', |
|
128 | + 'COND' => 'Condition', |
|
129 | + 'CONS' => 'Continuous', |
|
130 | + 'CONST' => 'Construction', |
|
131 | + 'CONT' => 'Continued', |
|
132 | + 'COOR' => 'Coordination', |
|
133 | + 'COORD' => 'Coordinates', |
|
134 | + 'COP' => 'Change-over Point', |
|
135 | + 'COR' => 'Correction', |
|
136 | + 'COT' => 'At The Coast', |
|
137 | + 'COV' => 'Covered', |
|
138 | + 'CPDLC' => 'Controller-pilot Data Link Communications', |
|
139 | + 'CPL' => 'Current Flight Plan', |
|
140 | + 'CRC' => 'Cyclic Redundancy Check', |
|
141 | + 'CRZ' => 'Cruise', |
|
142 | + 'CTA' => 'Control area', |
|
143 | + 'CTAM' => 'Climb To And Maintain', |
|
144 | + 'CTC' => 'Contact', |
|
145 | + 'CTL' => 'Control', |
|
146 | + 'CTN' => 'Caution', |
|
147 | + 'CTR' => 'Control Zone', |
|
148 | + 'CVR' => 'Cockpit Voice Recorder', |
|
149 | + 'CW' => 'Continuous Wave', |
|
150 | + 'CWY' => 'Clearway', |
|
151 | + 'DA' => 'Decision Altitude', |
|
152 | + 'DCKG' => 'Docking', |
|
153 | + 'DCP' => 'Datum Crossing Point', |
|
154 | + 'DCPC' => 'Direct Controller-pilot Communications', |
|
155 | + 'DCT' => 'Direct', |
|
156 | + 'DEC' => 'December', |
|
157 | + 'DEG' => 'Degrees', |
|
158 | + 'DEP' => 'Departing', |
|
159 | + 'DES' => 'Descend', |
|
160 | + 'DEST' => 'Destination', |
|
161 | + 'DETRESFA' => 'Distress Phase', |
|
162 | + 'DEV' => 'Deviating', |
|
163 | + 'DFDR' => 'Digital Flight Data Recorder', |
|
164 | + 'DFTI' => 'Distance From Touchdown Indicator', |
|
165 | + 'DH' => 'Decision Height', |
|
166 | + 'DIP' => 'Diffuse', |
|
167 | + 'DIST' => 'Distance', |
|
168 | + 'DIV' => 'Divert', |
|
169 | + 'DLA' => 'Delay', |
|
170 | + 'DLY' => 'Daily', |
|
171 | + 'DME' => 'Distance measuring equipment', |
|
172 | + 'DNG' => 'Dangerous', |
|
173 | + 'DOM' => 'Domestic', |
|
174 | + 'DPT' => 'Depth', |
|
175 | + 'DR' => 'Dead Reckoning', |
|
176 | + 'DRG' => 'During', |
|
177 | + 'DTAM' => 'Descend To And Maintain', |
|
178 | + 'DTG' => 'Date-time Group', |
|
179 | + 'DTHR' => 'Displaced Runway Threshold', |
|
180 | + 'DTRT' => 'Deteriorating', |
|
181 | + 'DTW' => 'Dual Tandem Wheels', |
|
182 | + 'DUPE' => 'This Is A Duplicate Message', |
|
183 | + 'DUR' => 'Duration', |
|
184 | + 'DVOR' => 'Doppler VOR', |
|
185 | + 'DW' => 'Dual Wheels', |
|
186 | + 'EAT' => 'Expected Approach Time', |
|
187 | + 'EB' => 'Eastbound', |
|
188 | + 'EDA' => 'Elevation Differential Area', |
|
189 | + 'EET' => 'Estimated Elapsed Time', |
|
190 | + 'EFC' => 'Expect Further Clearance', |
|
191 | + 'ELBA' => 'Emergency Location Beacon', |
|
192 | + 'ELEV' => 'Elevation', |
|
193 | + 'ELR' => 'Extra Long Range', |
|
194 | + 'EM' => 'Emission', |
|
195 | + 'EMERG' => 'Emergency', |
|
196 | + 'END' => 'Stop-end', |
|
197 | + 'ENE' => 'East-north-east', |
|
198 | + 'ENG' => 'Engine', |
|
199 | + 'ENR' => 'En-route', |
|
200 | + 'ENRC' => 'En-route Chart', |
|
201 | + 'EOBT' => 'Estimated Off-block Time', |
|
202 | + 'EQPT' => 'Equipment', |
|
203 | + 'ER' => 'Here', |
|
204 | + 'ESE' => 'East-south-east', |
|
205 | + 'EST' => 'Estimate', |
|
206 | + 'ETA' => 'Estimated Time Of Arrival', |
|
207 | + 'ETD' => 'Estimated Time Of Departure', |
|
208 | + 'ETO' => 'Estimated Time Over Significant Point', |
|
209 | + 'EV' => 'Every', |
|
210 | + 'EXC' => 'Except', |
|
211 | + 'EXER' => 'Exercise', |
|
212 | + 'EXP' => 'Expect', |
|
213 | + 'EXTD' => 'Extend', |
|
214 | + 'FAC' => 'Facilities', |
|
215 | + 'FAF' => 'Final Approach Fix', |
|
216 | + 'FAL' => 'Facilitation of International Airtransport', |
|
217 | + 'FAP' => 'Final Approach Point', |
|
218 | + 'FATO' => 'Final Approach And Take-off Area', |
|
219 | + 'FAX' => 'Fax', |
|
220 | + 'FBL' => 'Light', |
|
221 | + 'FCST' => 'Forecast', |
|
222 | + 'FCT' => 'Friction Coefficient', |
|
223 | + 'FDPS' => 'Flight Data Processing System', |
|
224 | + 'FEB' => 'February', |
|
225 | + 'FIR' => 'Flight information region', |
|
226 | + 'FIS' => 'Flight information service', |
|
227 | + 'FLD' => 'Field', |
|
228 | + 'FLG' => 'Flashing', |
|
229 | + 'FLR' => 'Flares', |
|
230 | + 'FLT' => 'Flight', |
|
231 | + 'FLTS' => 'Flights', |
|
232 | + 'FLTCK' => 'Flight Check', |
|
233 | + 'FLUC' => 'Fluctuating', |
|
234 | + 'FLW' => 'Follow(s)', |
|
235 | + 'FLY' => 'Fly', |
|
236 | + 'FM' => 'From', |
|
237 | + 'FMS' => 'Flight Management System', |
|
238 | + 'FMU' => 'Flow Management Unit', |
|
239 | + 'FNA' => 'Final Approach', |
|
240 | + 'FPAP' => 'Flight Path Alignment Point', |
|
241 | + 'FPL' => 'Flight Plan', |
|
242 | + 'FPLS' => 'Flight Plans', |
|
243 | + 'FPM' => 'Feet Per Minute', |
|
244 | + 'FPR' => 'Flight Plan Route', |
|
245 | + 'FR' => 'Fuel Remaining', |
|
246 | + 'FREQ' => 'Frequency', |
|
247 | + 'FRI' => 'Friday', |
|
248 | + 'FRMG' => 'Missile, gun or rocket firing', |
|
249 | + 'FRNG' => 'Firing', |
|
250 | + 'FRONT' => 'Front', |
|
251 | + 'FRQ' => 'Frequent', |
|
252 | + 'FSL' => 'Full Stop Landing', |
|
253 | + 'FSS' => 'Flight Service Station', |
|
254 | + 'FST' => 'First', |
|
255 | + 'FTP' => 'Fictitious Threshold Point', |
|
256 | + 'G/A' => 'Ground-to-air', |
|
257 | + 'G/A/G' => 'Ground-to-air and Air-to-ground', |
|
258 | + 'GARP' => 'GBAS Azimuth Reference Point', |
|
259 | + 'GBAS' => 'Ground-based Augmentation System', |
|
260 | + 'GCAJ' => 'Ground Controlled Approach', |
|
261 | + 'GCA' => 'Ground Controlled Approach System', |
|
262 | + 'GEN' => 'General', |
|
263 | + 'GEO' => 'Geographic or True', |
|
264 | + 'GES' => 'Ground Earth Station', |
|
265 | + 'GLD' => 'Glider', |
|
266 | + 'GMC' => 'Ground Movement Chart', |
|
267 | + 'GND' => 'Ground', |
|
268 | + 'GNDCK' => 'Ground Check', |
|
269 | + 'GP' => 'Glide Path', |
|
270 | + 'GRASS' => 'Grass landing area', |
|
271 | + 'GRVL' => 'Gravel', |
|
272 | + 'GUND' => 'Geoid Undulation', |
|
273 | + 'H24' => '24 Hours', |
|
274 | + 'HAPI' => 'Helicopter Approach Path Indicator', |
|
275 | + 'HBN' => 'Hazard Beacon', |
|
276 | + 'HDG' => 'Heading', |
|
277 | + 'HEL' => 'Helicopter', |
|
278 | + 'HGT' => 'Height', |
|
279 | + 'HJ' => 'Sunrise to Sunset', |
|
280 | + 'HLDG' => 'Holding', |
|
281 | + 'HN' => 'Sunset to Sunrise', |
|
282 | + 'HO' => 'Service Available To Meet Operational Requirements', |
|
283 | + 'HOL' => 'Holiday', |
|
284 | + 'HOSP' => 'Hospital Aircraft', |
|
285 | + 'HOT' => 'Height', |
|
286 | + 'HPA' => 'Hectopascal', |
|
287 | + 'HR' => 'Hours', |
|
288 | + 'HRS' => 'Hours', |
|
289 | + 'HS' => 'Service Available During Hours Of Scheduled Operations', |
|
290 | + 'HURCN' => 'Hurricane', |
|
291 | + 'HVY' => 'Heavy', |
|
292 | + 'HX' => 'No Specific Working Hours', |
|
293 | + 'HYR' => 'Higher', |
|
294 | + 'IAC' => 'Instrument Approach Chart', |
|
295 | + 'IAF' => 'Initial Approach Fix', |
|
296 | + 'IAO' => 'In And Out Of Clouds', |
|
297 | + 'IAP' => 'Instrument Approach Procedure', |
|
298 | + 'IAR' => 'Intersection Of Air Routes', |
|
299 | + 'IBN' => 'Identification Beacon', |
|
300 | + 'ID' => 'Identifier', |
|
301 | + 'IDENT' => 'Identification', |
|
302 | + 'IFF' => 'Identification Friend/Foe', |
|
303 | + 'IGA' => 'International General Aviation', |
|
304 | + 'IM' => 'Inner Marker', |
|
305 | + 'IMPR' => 'Improving', |
|
306 | + 'IMT' => 'Immediately', |
|
307 | + 'INA' => 'Initial Approach', |
|
308 | + 'INBD' => 'Inbound', |
|
309 | + 'INCERFA' => 'Uncertainty Phase', |
|
310 | + 'INFO' => 'Information', |
|
311 | + 'INOP' => 'Inoperative', |
|
312 | + 'INP' => 'If Not Possible', |
|
313 | + 'INPR' => 'In Progress', |
|
314 | + 'INSTL' => 'Installation', |
|
315 | + 'INSTR' => 'Instrument', |
|
316 | + 'INT' => 'Intersection', |
|
317 | + 'INTS' => 'Intersections', |
|
318 | + 'INTL' => 'International', |
|
319 | + 'INTRG' => 'Interrogator', |
|
320 | + 'INTRP' => 'Interruption', |
|
321 | + 'INTSF' => 'Intensifying', |
|
322 | + 'INTST' => 'Intensity', |
|
323 | + 'ISA' => 'International Standard Atmosphere', |
|
324 | + 'JAN' => 'January', |
|
325 | + 'JTST' => 'Jet stream', |
|
326 | + 'JUL' => 'July', |
|
327 | + 'JUN' => 'June', |
|
328 | + 'KMH' => 'Kilometres Per Hour', |
|
329 | + 'KPA' => 'Kilopascal', |
|
330 | + 'KT' => 'Knots', |
|
331 | + 'KW' => 'Kilowatts', |
|
332 | + 'LAN' => 'Inland', |
|
333 | + 'LAT' => 'Latitude', |
|
334 | + 'LDA' => 'Landing Distance Available', |
|
335 | + 'LDAH' => 'Landing Distance Available, Helicopter', |
|
336 | + 'LDG' => 'Landing', |
|
337 | + 'LDI' => 'Landing Direction Indicator', |
|
338 | + 'LEN' => 'Length', |
|
339 | + 'LGT' => 'Lighting', |
|
340 | + 'LGTD' => 'Lighted', |
|
341 | + 'LIH' => 'Light Intensity High', |
|
342 | + 'LIL' => 'Light Intensity Low', |
|
343 | + 'LIM' => 'Light Intensity Medium', |
|
344 | + 'LLZ' => 'Localizer', |
|
345 | + 'LM' => 'Locator, Middle', |
|
346 | + 'LMT' => 'Local Mean Time', |
|
347 | + 'LNG' => 'Long', |
|
348 | + 'LO' => 'Locator, Outer', |
|
349 | + 'LOG' => 'Located', |
|
350 | + 'LONG' => 'Longitude', |
|
351 | + 'LRG' => 'Long Range', |
|
352 | + 'LTD' => 'Limited', |
|
353 | + 'LTP' => 'Landing Threshold Point', |
|
354 | + 'LVE' => 'Leaving', |
|
355 | + 'LVL' => 'Level', |
|
356 | + 'LYR' => 'Layer', |
|
357 | + 'MAA' => 'Maximum Authorized Altitude', |
|
358 | + 'MAG' => 'Magnetic', |
|
359 | + 'MAINT' => 'Maintenance', |
|
360 | + 'MAP' => 'Aeronautical Maps and Charts', |
|
361 | + 'MAPT' => 'Missed Approach Point', |
|
362 | + 'MAR' => 'March', |
|
363 | + 'MAX' => 'Maximum', |
|
364 | + 'MAY' => 'May', |
|
365 | + 'MBST' => 'Microburst', |
|
366 | + 'MCA' => 'Minimum Crossing Altitude', |
|
367 | + 'MCW' => 'Modulated Continuous Wave', |
|
368 | + 'MDA' => 'Minimum Descent Altitude', |
|
369 | + 'MDH' => 'Minimum Descent Height', |
|
370 | + 'MEA' => 'Minimum En-route Altitude', |
|
371 | + 'MEHT' => 'Minimum Eye Height Over Threshold', |
|
372 | + 'MET' => 'Meteorological', |
|
373 | + 'MID' => 'Mid-point', |
|
374 | + 'MIL' => 'Military', |
|
375 | + 'MIN' => 'Minutes', |
|
376 | + 'MKR' => 'Marker Radio Beacon', |
|
377 | + 'MLS' => 'Microwave Landing System', |
|
378 | + 'MM' => 'Middle Marker', |
|
379 | + 'MNM' => 'Minimum', |
|
380 | + 'MNPS' => 'Minimum Navigation Performance Specifications', |
|
381 | + 'MNT' => 'Monitor', |
|
382 | + 'MNTN' => 'Maintain', |
|
383 | + 'MOA' => 'Military Operating Area', |
|
384 | + 'MOC' => 'Minimum Obstacle Clearance', |
|
385 | + 'MOD' => 'Moderate', |
|
386 | + 'MON' => 'Monday', |
|
387 | + 'MOPS' => 'Minimum Operational Performance Standards', |
|
388 | + 'MOV' => 'Movement', |
|
389 | + 'MRA' => 'Minimum Reception Altitude', |
|
390 | + 'MRG' => 'Medium Range', |
|
391 | + 'MRP' => 'ATS/MET Reporting Point', |
|
392 | + 'MS' => 'Minus', |
|
393 | + 'MSA' => 'Minimum Sector Altitude', |
|
394 | + 'MSAW' => 'Minimum Safe Altitude Warning', |
|
395 | + 'MSG' => 'Message', |
|
396 | + 'MSSR' => 'Monopulse Secondary Surveillance Radar', |
|
397 | + 'MT' => 'Mountain', |
|
398 | + 'MTU' => 'Metric Units', |
|
399 | + 'MTW' => 'Mountain Waves', |
|
400 | + 'NASC' => 'National AIS System Centre', |
|
401 | + 'NAT' => 'North Atlantic', |
|
402 | + 'NAV' => 'Navigation', |
|
403 | + 'NB' => 'Northbound', |
|
404 | + 'NBFR' => 'Not Before', |
|
405 | + 'NE' => 'North-east', |
|
406 | + 'NEB' => 'North-eastbound', |
|
407 | + 'NEG' => 'Negative', |
|
408 | + 'NGT' => 'Night', |
|
409 | + 'NIL' => 'None', |
|
410 | + 'NML' => 'Normal', |
|
411 | + 'NNE' => 'North-north-east', |
|
412 | + 'NNW' => 'North-north-west', |
|
413 | + 'NOF' => 'International NOTAM Office', |
|
414 | + 'NOV' => 'November', |
|
415 | + 'NOZ' => 'Normal Operating Zone', |
|
416 | + 'NR' => 'Number', |
|
417 | + 'NRH' => 'No Reply Heard', |
|
418 | + 'NTL' => 'National', |
|
419 | + 'NTZ' => 'No Transgression Zone', |
|
420 | + 'NW' => 'North-west', |
|
421 | + 'NWB' => 'North-westbound', |
|
422 | + 'NXT' => 'Next', |
|
423 | + 'O/R' => 'On Request', |
|
424 | + 'OAC' => 'Oceanic Area Control Centre', |
|
425 | + 'OAS' => 'Obstacle Assessment Surface', |
|
426 | + 'OBS' => 'Observe', |
|
427 | + 'OBST' => 'Obstacle', |
|
428 | + 'OBSTS' => 'Obstacles', |
|
429 | + 'OCA' => 'Oceanic Control Area', |
|
430 | + 'OCH' => 'Obstacle Clearance Height', |
|
431 | + 'OCL' => 'Obstacle Clearance Limit', |
|
432 | + 'OCS' => 'Obstacle Clearance Surface', |
|
433 | + 'OCT' => 'October', |
|
434 | + 'OFZ' => 'Obstacle Free Zone', |
|
435 | + 'OGN' => 'Originate', |
|
436 | + 'OHD' => 'Overhead', |
|
437 | + 'OM' => 'Outer Marker', |
|
438 | + 'OPC' => 'Control Indicated Is Operational Control', |
|
439 | + 'OPMET' => 'Operational Meteorological', |
|
440 | + 'OPN' => 'Open', |
|
441 | + 'OPR' => 'Operate', |
|
442 | + 'OPS' => 'Operations', |
|
443 | + 'ORD' => 'Order', |
|
444 | + 'OSV' => 'Ocean Station Vessel', |
|
445 | + 'OTLK' => 'Outlook', |
|
446 | + 'OTP' => 'On Top', |
|
447 | + 'OTS' => 'Organized Track System', |
|
448 | + 'OUBD' => 'Outbound', |
|
449 | + 'PA' => 'Precision Approach', |
|
450 | + 'PALS' => 'Precision Approach Lighting System', |
|
451 | + 'PANS' => 'Procedures for Air Navigation Services', |
|
452 | + 'PAR' => 'Precision Approach Radar', |
|
453 | + 'PARL' => 'Parallel', |
|
454 | + 'PATC' => 'Precision Approach Terrain Chart', |
|
455 | + 'PAX' => 'Passenger(s)', |
|
456 | + 'PCD' => 'Proceed', |
|
457 | + 'PCL' => 'Pilot-controlled Lighting', |
|
458 | + 'PCN' => 'Pavement Classification Number', |
|
459 | + 'PDC' => 'Pre-departure Clearance', |
|
460 | + 'PDG' => 'Procedure Design Gradient', |
|
461 | + 'PER' => 'Performance', |
|
462 | + 'PERM' => 'Permanent', |
|
463 | + 'PIB' => 'Pre-flight Information Bulletin', |
|
464 | + 'PJE' => 'Parachute Jumping Exercise', |
|
465 | + 'PLA' => 'Practice Low Approach', |
|
466 | + 'PLN' => 'Flight Plan', |
|
467 | + 'PLVL' => 'Present Level', |
|
468 | + 'PN' => 'Prior Notice Required', |
|
469 | + 'PNR' => 'Point Of No Return', |
|
470 | + 'POB' => 'Persons On Board', |
|
471 | + 'POSS' => 'Possible', |
|
472 | + 'PPI' => 'Plan Position Indicator', |
|
473 | + 'PPR' => 'Prior Permission Required', |
|
474 | + 'PPSN' => 'Present Position', |
|
475 | + 'PRI' => 'Primary', |
|
476 | + 'PRKG' => 'Parking', |
|
477 | + 'PROB' => 'Probability', |
|
478 | + 'PROC' => 'Procedure', |
|
479 | + 'PROV' => 'Provisional', |
|
480 | + 'PS' => 'Plus', |
|
481 | + 'PSG' => 'Passing', |
|
482 | + 'PSN' => 'Position', |
|
483 | + 'PSNS' => 'Positions', |
|
484 | + 'PSR' => 'Primary Surveillance Radar', |
|
485 | + 'PSYS' => 'Pressure System(s)', |
|
486 | + 'PTN' => 'Procedure Turn', |
|
487 | + 'PTS' => 'Polar Track Structure', |
|
488 | + 'PWR' => 'Power', |
|
489 | + 'QUAD' => 'Quadrant', |
|
490 | + 'RAC' => 'Rules of The Air and Air Traffic Services', |
|
491 | + 'RAG' => 'Runway Arresting Gear', |
|
492 | + 'RAI' => 'Runway Alignment Indicator', |
|
493 | + 'RASC' => 'Regional AIS System Centre', |
|
494 | + 'RASS' => 'Remote Altimeter Setting Source', |
|
495 | + 'RB' => 'Rescue Boat', |
|
496 | + 'RCA' => 'Reach Cruising Altitude', |
|
497 | + 'RCC' => 'Rescue Coordination Centre', |
|
498 | + 'RCF' => 'Radiocommunication Failure', |
|
499 | + 'RCH' => 'Reaching', |
|
500 | + 'RCL' => 'Runway Centre Line', |
|
501 | + 'RCLL' => 'Runway Centre Line Light(s)', |
|
502 | + 'RCLR' => 'Recleared', |
|
503 | + 'RDH' => 'Reference Datum Height', |
|
504 | + 'RDL' => 'Radial', |
|
505 | + 'RDO' => 'Radio', |
|
506 | + 'RE' => 'Recent', |
|
507 | + 'REC' => 'Receiver', |
|
508 | + 'REDL' => 'Runway Edge Light(s)', |
|
509 | + 'REF' => 'Refer To', |
|
510 | + 'REG' => 'Registration', |
|
511 | + 'RENL' => 'Runway End Light(s)', |
|
512 | + 'REP' => 'Report', |
|
513 | + 'REQ' => 'Requested', |
|
514 | + 'RERTE' => 'Re-route', |
|
515 | + 'RESA' => 'Runway End Safety Area', |
|
516 | + 'RG' => 'Range (lights)', |
|
517 | + 'RHC' => 'Right-hand Circuit', |
|
518 | + 'RIF' => 'Reclearance In Flight', |
|
519 | + 'RITE' => 'Right', |
|
520 | + 'RL' => 'Report Leaving', |
|
521 | + 'RLA' => 'Relay To', |
|
522 | + 'RLCE' => 'Request Level Change En Route', |
|
523 | + 'RLLS' => 'Runway Lead-in Lighting System', |
|
524 | + 'RLNA' => 'Request Level Not Available', |
|
525 | + 'RMAC' => 'Radar Minimum Altitude Chart', |
|
526 | + 'RMK' => 'Remark', |
|
527 | + 'RNG' => 'Radio Range', |
|
528 | + 'RNP' => 'Required Navigation Performance', |
|
529 | + 'ROC' => 'Rate Of Climb', |
|
530 | + 'ROD' => 'Rate Of Descent', |
|
531 | + 'ROFOR' => 'Route Forecast', |
|
532 | + 'RON' => 'Receiving Only', |
|
533 | + 'RPI' => 'Radar Position Indicator', |
|
534 | + 'RPL' => 'Repetitive Flight Plan', |
|
535 | + 'RPLC' => 'Replaced', |
|
536 | + 'RPS' => 'Radar Position Symbol', |
|
537 | + 'RQMNTS' => 'Requirements', |
|
538 | + 'RQP' => 'Request Flight Plan', |
|
539 | + 'RQS' => 'Request Supplementary Flight Plan', |
|
540 | + 'RR' => 'Report Reaching', |
|
541 | + 'RSC' => 'Rescue Sub-centre', |
|
542 | + 'RSCD' => 'Runway Surface Condition', |
|
543 | + 'RSP' => 'Responder Beacon', |
|
544 | + 'RSR' => 'En-route Surveillance Radar', |
|
545 | + 'RTE' => 'Route', |
|
546 | + 'RTES' => 'Routes', |
|
547 | + 'RTF' => 'Radiotelephone', |
|
548 | + 'RTG' => 'Radiotelegraph', |
|
549 | + 'RTHL' => 'Runway Threshold Light(s)', |
|
550 | + 'RTN' => 'Return', |
|
551 | + 'RTODAH' => 'Rejected Take-off Distance Available, Helicopter', |
|
552 | + 'RTS' => 'Return To Service', |
|
553 | + 'RTT' => 'Radioteletypewriter', |
|
554 | + 'RTZL' => 'Runway Touchdown Zone Light(s)', |
|
555 | + 'RUT' => 'Standard Regional Route Transmitting Frequencies', |
|
556 | + 'RV' => 'Rescue Vessel', |
|
557 | + 'RVSM' => 'Reduced Vertical Separation Minimum', |
|
558 | + 'RWY' => 'Runway', |
|
559 | + 'RWYS' => 'Runways', |
|
560 | + 'SALS' => 'Simple Approach Lighting System', |
|
561 | + 'SAN' => 'Sanitary', |
|
562 | + 'SAP' => 'As Soon As Possible', |
|
563 | + 'SAR' => 'Search and Rescue', |
|
564 | + 'SARPS' => 'Standards and Recommended Practices', |
|
565 | + 'SAT' => 'Saturday', |
|
566 | + 'SATCOM' => 'Satellite Communication', |
|
567 | + 'SB' => 'Southbound', |
|
568 | + 'SBAS' => 'Satellite-based Augmentation System', |
|
569 | + 'SDBY' => 'Stand by', |
|
570 | + 'SE' => 'South-east', |
|
571 | + 'SEA' => 'Sea', |
|
572 | + 'SEB' => 'South-eastbound', |
|
573 | + 'SEC' => 'Seconds', |
|
574 | + 'SECN' => 'Section', |
|
575 | + 'SECT' => 'Sector', |
|
576 | + 'SELCAL' => 'Selective calling system', |
|
577 | + 'SEP' => 'September', |
|
578 | + 'SER' => 'Service', |
|
579 | + 'SEV' => 'Severe', |
|
580 | + 'SFC' => 'Surface', |
|
581 | + 'SGL' => 'Signal', |
|
582 | + 'SID' => 'Standard Instrument Departure', |
|
583 | + 'SIF' => 'Selective Identification Feature', |
|
584 | + 'SIG' => 'Significant', |
|
585 | + 'SIMUL' => 'Simultaneous', |
|
586 | + 'SKED' => 'Schedule', |
|
587 | + 'SLP' => 'Speed Limiting Point', |
|
588 | + 'SLW' => 'Slow', |
|
589 | + 'SMC' => 'Surface Movement Control', |
|
590 | + 'SMR' => 'Surface Movement Radar', |
|
591 | + 'SPL' => 'Supplementary Flight Plan', |
|
592 | + 'SPOC' => 'SAR Point Of Contact', |
|
593 | + 'SPOT' => 'Spot Wind', |
|
594 | + 'SR' => 'Sunrise', |
|
595 | + 'SRA' => 'Surveillance Radar Approach', |
|
596 | + 'SRE' => 'Surveillance Radar Element Of Precision Approach Radar System', |
|
597 | + 'SRG' => 'Short Range', |
|
598 | + 'SRR' => 'Search and Rescue Region', |
|
599 | + 'SRY' => 'Secondary', |
|
600 | + 'SS' => 'Sunset', |
|
601 | + 'SSE' => 'South-south-east', |
|
602 | + 'SSR' => 'Secondary Surveillance Radar', |
|
603 | + 'SST' => 'Supersonic Transport', |
|
604 | + 'SSW' => 'South-south-west', |
|
605 | + 'STA' => 'Straight-in Approach', |
|
606 | + 'STAR' => 'Standard Instrument Arrival', |
|
607 | + 'STD' => 'Standard', |
|
608 | + 'STN' => 'Station', |
|
609 | + 'STNR' => 'Stationary', |
|
610 | + 'STOL' => 'Short Take-off and Landing', |
|
611 | + 'STS' => 'Status', |
|
612 | + 'STWL' => 'Stopway Light(s)', |
|
613 | + 'SUBJ' => 'Subject To', |
|
614 | + 'SUN' => 'Sunday', |
|
615 | + 'SUP' => 'Supplement', |
|
616 | + 'SUPPS' => 'Regional Supplementary Procedures Service Message', |
|
617 | + 'SVCBL' => 'Serviceable', |
|
618 | + 'SW' => 'South-west', |
|
619 | + 'SWB' => 'South-westbound', |
|
620 | + 'SWY' => 'Stopway', |
|
621 | + 'TA' => 'Transition Altitude', |
|
622 | + 'TAA' => 'Terminal Arrival Altitude', |
|
623 | + 'TAF' => 'Aerodrome Forecast', |
|
624 | + 'TAIL' => 'Tail Wind', |
|
625 | + 'TAR' => 'Terminal Area Surveillance Radar', |
|
626 | + 'TAX' => 'Taxi', |
|
627 | + 'TCAC' => 'Tropical Cyclone Advisory Centre', |
|
628 | + 'TDO' => 'Tornado', |
|
629 | + 'TDZ' => 'Touchdown Zone', |
|
630 | + 'TECR' => 'Technical Reason', |
|
631 | + 'TEMPO' => 'Temporarily', |
|
632 | + 'TFC' => 'Traffic', |
|
633 | + 'TGL' => 'Touch-and-go', |
|
634 | + 'TGS' => 'Taxiing Guidance System', |
|
635 | + 'THR' => 'Threshold', |
|
636 | + 'THRU' => 'Through', |
|
637 | + 'THU' => 'Thursday', |
|
638 | + 'TIBA' => 'Traffic Information Broadcast By Aircraft', |
|
639 | + 'TIL' => 'Until', |
|
640 | + 'TIP' => 'Until Past', |
|
641 | + 'TKOF' => 'Take-off', |
|
642 | + 'TL' => 'Till', |
|
643 | + 'TLOF' => 'Touchdown And Lift-off Area', |
|
644 | + 'TMA' => 'Terminal Control Area', |
|
645 | + 'TNA' => 'Turn Altitude', |
|
646 | + 'TNH' => 'Turn Height', |
|
647 | + 'TOC' => 'Top of Climb', |
|
648 | + 'TODA' => 'Take-off Distance Available', |
|
649 | + 'TODAH' => 'Take-off Distance Available, Helicopter', |
|
650 | + 'TORA' => 'Take-off Run Available', |
|
651 | + 'TP' => 'Turning Point', |
|
652 | + 'TR' => 'Track', |
|
653 | + 'TRA' => 'Temporary Reserved Airspace', |
|
654 | + 'TRANS' => 'Transmitter', |
|
655 | + 'TRL' => 'Transition Level', |
|
656 | + 'TUE' => 'Tuesday', |
|
657 | + 'TURB' => 'Turbulence', |
|
658 | + 'TVOR' => 'Terminal VOR', |
|
659 | + 'TWR' => 'Tower', |
|
660 | + 'TWY' => 'Taxiway', |
|
661 | + 'TWYL' => 'Taxiway-link', |
|
662 | + 'TXT' => 'Text', |
|
663 | + 'TYP' => 'Type of Aircraft', |
|
664 | + 'U/S' => 'Unserviceable', |
|
665 | + 'UAB' => 'Until Advised By', |
|
666 | + 'UAC' => 'Upper Area Control Centre', |
|
667 | + 'UAR' => 'Upper Air Route', |
|
668 | + 'UDA' => 'Upper advisory area', |
|
669 | + 'UFN' => 'Until Further Notice', |
|
670 | + 'UHDT' => 'Unable Higher Due Traffic', |
|
671 | + 'UIC' => 'Upper Information Centre', |
|
672 | + 'UIR' => 'Upper Flight Information Region', |
|
673 | + 'ULR' => 'Ultra Long Range', |
|
674 | + 'UNA' => 'Unable', |
|
675 | + 'UNAP' => 'Unable To Approve', |
|
676 | + 'UNL' => 'Unlimited', |
|
677 | + 'UNREL' => 'Unreliable', |
|
678 | + 'UTA' => 'Upper Control Area', |
|
679 | + 'VAAC' => 'Volcanic Ash Advisory Centre', |
|
680 | + 'VAC' => 'Visual Approach Chart', |
|
681 | + 'VAL' => 'In Valleys', |
|
682 | + 'VAN' => 'Runway Control Van', |
|
683 | + 'VAR' => 'Visual-aural Radio Range', |
|
684 | + 'VC' => 'Vicinity', |
|
685 | + 'VCY' => 'Vicinity', |
|
686 | + 'VER' => 'Vertical', |
|
687 | + 'VIS' => 'Visibility', |
|
688 | + 'VLR' => 'Very Long Range', |
|
689 | + 'VPA' => 'Vertical Path Angle', |
|
690 | + 'VRB' => 'Variable', |
|
691 | + 'VSA' => 'By Visual Reference To The Ground', |
|
692 | + 'VSP' => 'Vertical Speed', |
|
693 | + 'VTOL' => 'Vertical Take-off And Landing', |
|
694 | + 'WAC' => 'World Aeronautical Chart', |
|
695 | + 'WAFC' => 'World Area Forecast Centre', |
|
696 | + 'WB' => 'Westbound', |
|
697 | + 'WBAR' => 'Wing Bar Lights', |
|
698 | + 'WDI' => 'Wind Direction Indicator', |
|
699 | + 'WDSPR' => 'Widespread', |
|
700 | + 'WED' => 'Wednesday', |
|
701 | + 'WEF' => 'Effective From', |
|
702 | + 'WI' => 'Within', |
|
703 | + 'WID' => 'Width', |
|
704 | + 'WIE' => 'Effective Immediately', |
|
705 | + 'WILCO' => 'Will Comply', |
|
706 | + 'WIND' => 'Wind', |
|
707 | + 'WINTEM' => 'Forecast Upper Wind And Temperature For Aviation', |
|
708 | + 'WIP' => 'Work In Progress', |
|
709 | + 'WKN' => 'Weaken', |
|
710 | + 'WNW' => 'West-north-west', |
|
711 | + 'WO' => 'Without', |
|
712 | + 'WPT' => 'Way-point', |
|
713 | + 'WRNG' => 'Warning', |
|
714 | + 'WSW' => 'West-south-west', |
|
715 | + 'WT' => 'Weight', |
|
716 | + 'WWW' => 'Worldwide Web', |
|
717 | + 'WX' => 'Weather', |
|
718 | + 'XBAR' => 'Crossbar', |
|
719 | + 'XNG' => 'Crossing', |
|
720 | + 'XS' => 'Atmospherics', |
|
721 | + 'YCZ' => 'Yellow Caution Zone', |
|
722 | + 'YR' => 'Your'); |
|
723 | 723 | public $code_airspace = array( |
724 | - 'AA' => 'Minimum altitude', |
|
725 | - 'AC' => 'Class B, C, D, or E Surface Area', |
|
726 | - 'AD' => 'Air defense identification zone', |
|
727 | - 'AE' => 'Control area', |
|
728 | - 'AF' => 'Flight information region', |
|
729 | - 'AH' => 'Upper control area', |
|
730 | - 'AL' => 'Minimum usable flight level', |
|
731 | - 'AN' => 'Area navigation route', |
|
732 | - 'AO' => 'Oceanic control area', |
|
733 | - 'AP' => 'Reporting point', |
|
734 | - 'AR' => 'ATS route', |
|
735 | - 'AT' => 'Class B Airspace', |
|
736 | - 'AU' => 'Upper flight information region', |
|
737 | - 'AV' => 'Upper advisory area', |
|
738 | - 'AX' => 'Intersection', |
|
739 | - 'AZ' => 'Aerodrome traffic zone'); |
|
724 | + 'AA' => 'Minimum altitude', |
|
725 | + 'AC' => 'Class B, C, D, or E Surface Area', |
|
726 | + 'AD' => 'Air defense identification zone', |
|
727 | + 'AE' => 'Control area', |
|
728 | + 'AF' => 'Flight information region', |
|
729 | + 'AH' => 'Upper control area', |
|
730 | + 'AL' => 'Minimum usable flight level', |
|
731 | + 'AN' => 'Area navigation route', |
|
732 | + 'AO' => 'Oceanic control area', |
|
733 | + 'AP' => 'Reporting point', |
|
734 | + 'AR' => 'ATS route', |
|
735 | + 'AT' => 'Class B Airspace', |
|
736 | + 'AU' => 'Upper flight information region', |
|
737 | + 'AV' => 'Upper advisory area', |
|
738 | + 'AX' => 'Intersection', |
|
739 | + 'AZ' => 'Aerodrome traffic zone'); |
|
740 | 740 | public $code_comradar = array( |
741 | - 'CA' => 'Air/ground', |
|
742 | - 'CE' => 'En route surveillance radar', |
|
743 | - 'CG' => 'Ground controlled approach system', |
|
744 | - 'CL' => 'Selective calling system', |
|
745 | - 'CM' => 'Surface movement radar', |
|
746 | - 'CP' => 'Precision approach radar', |
|
747 | - 'CR' => 'Surveillance radar element of precision approach radar system', |
|
748 | - 'CS' => 'Secondary surveillance radar', |
|
749 | - 'CT' => 'Terminal area surveillance radar'); |
|
741 | + 'CA' => 'Air/ground', |
|
742 | + 'CE' => 'En route surveillance radar', |
|
743 | + 'CG' => 'Ground controlled approach system', |
|
744 | + 'CL' => 'Selective calling system', |
|
745 | + 'CM' => 'Surface movement radar', |
|
746 | + 'CP' => 'Precision approach radar', |
|
747 | + 'CR' => 'Surveillance radar element of precision approach radar system', |
|
748 | + 'CS' => 'Secondary surveillance radar', |
|
749 | + 'CT' => 'Terminal area surveillance radar'); |
|
750 | 750 | public $code_facilities = array( |
751 | - 'FA' => 'airport', |
|
752 | - 'FB' => 'Braking action measurement equipment', |
|
753 | - 'FC' => 'Ceiling measurement equipment', |
|
754 | - 'FD' => 'Docking system', |
|
755 | - 'FF' => 'Fire fighting and rescue', |
|
756 | - 'FG' => 'Ground movement control', |
|
757 | - 'FH' => 'Helicopter alighting area/platform', |
|
758 | - 'FL' => 'Landing direction indicator', |
|
759 | - 'FM' => 'Meteorological service', |
|
760 | - 'FO' => 'Fog dispersal system', |
|
761 | - 'FP' => 'Heliport', |
|
762 | - 'FS' => 'Snow removal equipment', |
|
763 | - 'FT' => 'Transmissometer', |
|
764 | - 'FU' => 'Fuel availability', |
|
765 | - 'FW' => 'Wind direction indicator', |
|
766 | - 'FZ' => 'Customs'); |
|
751 | + 'FA' => 'airport', |
|
752 | + 'FB' => 'Braking action measurement equipment', |
|
753 | + 'FC' => 'Ceiling measurement equipment', |
|
754 | + 'FD' => 'Docking system', |
|
755 | + 'FF' => 'Fire fighting and rescue', |
|
756 | + 'FG' => 'Ground movement control', |
|
757 | + 'FH' => 'Helicopter alighting area/platform', |
|
758 | + 'FL' => 'Landing direction indicator', |
|
759 | + 'FM' => 'Meteorological service', |
|
760 | + 'FO' => 'Fog dispersal system', |
|
761 | + 'FP' => 'Heliport', |
|
762 | + 'FS' => 'Snow removal equipment', |
|
763 | + 'FT' => 'Transmissometer', |
|
764 | + 'FU' => 'Fuel availability', |
|
765 | + 'FW' => 'Wind direction indicator', |
|
766 | + 'FZ' => 'Customs'); |
|
767 | 767 | public $code_instrumentlanding = array( |
768 | - 'ID' => 'DME associated with ILS', |
|
769 | - 'IG' => 'Glide path', |
|
770 | - 'II' => 'Inner marker', |
|
771 | - 'IL' => 'Localizer', |
|
772 | - 'IM' => 'Middle marker', |
|
773 | - 'IO' => 'Outer marker', |
|
774 | - 'IS' => 'ILS Category I', |
|
775 | - 'IT' => 'ILS Category II', |
|
776 | - 'IU' => 'ILS Category III', |
|
777 | - 'IW' => 'Microwave landing system', |
|
778 | - 'IX' => 'Locator, outer', |
|
779 | - 'IY' => 'Locator, middle'); |
|
768 | + 'ID' => 'DME associated with ILS', |
|
769 | + 'IG' => 'Glide path', |
|
770 | + 'II' => 'Inner marker', |
|
771 | + 'IL' => 'Localizer', |
|
772 | + 'IM' => 'Middle marker', |
|
773 | + 'IO' => 'Outer marker', |
|
774 | + 'IS' => 'ILS Category I', |
|
775 | + 'IT' => 'ILS Category II', |
|
776 | + 'IU' => 'ILS Category III', |
|
777 | + 'IW' => 'Microwave landing system', |
|
778 | + 'IX' => 'Locator, outer', |
|
779 | + 'IY' => 'Locator, middle'); |
|
780 | 780 | public $code_lightingfacilities = array( |
781 | - 'LA' => 'Approach lighting system', |
|
782 | - 'LB' => 'Airport beacon', |
|
783 | - 'LC' => 'Runway center line lights', |
|
784 | - 'LD' => 'Landing direction indicator lights', |
|
785 | - 'LE' => 'Runway edge lights', |
|
786 | - 'LF' => 'Sequenced flashing lights', |
|
787 | - 'LH' => 'High intensity runway lights', |
|
788 | - 'LI' => 'Runway end identifier lights', |
|
789 | - 'LK' => 'Category II components of approach lighting system', |
|
790 | - 'LL' => 'Low intensity runway lights', |
|
791 | - 'LM' => 'Medium intensity runway lights', |
|
792 | - 'LP' => 'Precision approach path indicator', |
|
793 | - 'LR' => 'All landing area lighting facilities', |
|
794 | - 'LS' => 'Stopway lights', |
|
795 | - 'LT' => 'Threshold lights', |
|
796 | - 'LV' => 'Visual approach slope indicator system', |
|
797 | - 'LW' => 'Heliport lighting', |
|
798 | - 'LX' => 'Taxiway center line lights', |
|
799 | - 'LY' => 'Taxiway edge lights', |
|
800 | - 'LZ' => 'Runway touchdown zone lights'); |
|
781 | + 'LA' => 'Approach lighting system', |
|
782 | + 'LB' => 'Airport beacon', |
|
783 | + 'LC' => 'Runway center line lights', |
|
784 | + 'LD' => 'Landing direction indicator lights', |
|
785 | + 'LE' => 'Runway edge lights', |
|
786 | + 'LF' => 'Sequenced flashing lights', |
|
787 | + 'LH' => 'High intensity runway lights', |
|
788 | + 'LI' => 'Runway end identifier lights', |
|
789 | + 'LK' => 'Category II components of approach lighting system', |
|
790 | + 'LL' => 'Low intensity runway lights', |
|
791 | + 'LM' => 'Medium intensity runway lights', |
|
792 | + 'LP' => 'Precision approach path indicator', |
|
793 | + 'LR' => 'All landing area lighting facilities', |
|
794 | + 'LS' => 'Stopway lights', |
|
795 | + 'LT' => 'Threshold lights', |
|
796 | + 'LV' => 'Visual approach slope indicator system', |
|
797 | + 'LW' => 'Heliport lighting', |
|
798 | + 'LX' => 'Taxiway center line lights', |
|
799 | + 'LY' => 'Taxiway edge lights', |
|
800 | + 'LZ' => 'Runway touchdown zone lights'); |
|
801 | 801 | public $code_movementareas = array( |
802 | - 'MA' => 'Movement area', |
|
803 | - 'MB' => 'Bearing strength', |
|
804 | - 'MC' => 'Clearway', |
|
805 | - 'MD' => 'Declared distances', |
|
806 | - 'MG' => 'Taxiing guidance system', |
|
807 | - 'MH' => 'Runway arresting gear', |
|
808 | - 'MK' => 'Parking area', |
|
809 | - 'MM' => 'Daylight markings', |
|
810 | - 'MN' => 'Apron', |
|
811 | - 'MP' => 'Aircraft stands', |
|
812 | - 'MR' => 'Runway', |
|
813 | - 'MS' => 'Stopway', |
|
814 | - 'MT' => 'Threshold', |
|
815 | - 'MU' => 'Runway turning bay', |
|
816 | - 'MW' => 'Strip', |
|
817 | - 'MX' => 'Taxiway'); |
|
802 | + 'MA' => 'Movement area', |
|
803 | + 'MB' => 'Bearing strength', |
|
804 | + 'MC' => 'Clearway', |
|
805 | + 'MD' => 'Declared distances', |
|
806 | + 'MG' => 'Taxiing guidance system', |
|
807 | + 'MH' => 'Runway arresting gear', |
|
808 | + 'MK' => 'Parking area', |
|
809 | + 'MM' => 'Daylight markings', |
|
810 | + 'MN' => 'Apron', |
|
811 | + 'MP' => 'Aircraft stands', |
|
812 | + 'MR' => 'Runway', |
|
813 | + 'MS' => 'Stopway', |
|
814 | + 'MT' => 'Threshold', |
|
815 | + 'MU' => 'Runway turning bay', |
|
816 | + 'MW' => 'Strip', |
|
817 | + 'MX' => 'Taxiway'); |
|
818 | 818 | public $code_terminalfacilities = array( |
819 | - 'NA' => 'All radio navigation facilities', |
|
820 | - 'NB' => 'Non directional beacon', |
|
821 | - 'NC' => 'DECCA', |
|
822 | - 'ND' => 'Distance measuring equipment', |
|
823 | - 'NF' => 'Fan marker', |
|
824 | - 'NL' => 'Locator', |
|
825 | - 'NM' => 'VOR/DME', |
|
826 | - 'NN' => 'TACAN', |
|
827 | - 'NO' => 'OMEGA', |
|
828 | - 'NT' => 'VORTAC', |
|
829 | - 'NV' => 'VOR', |
|
830 | - 'NX' => 'Direction finding station'); |
|
819 | + 'NA' => 'All radio navigation facilities', |
|
820 | + 'NB' => 'Non directional beacon', |
|
821 | + 'NC' => 'DECCA', |
|
822 | + 'ND' => 'Distance measuring equipment', |
|
823 | + 'NF' => 'Fan marker', |
|
824 | + 'NL' => 'Locator', |
|
825 | + 'NM' => 'VOR/DME', |
|
826 | + 'NN' => 'TACAN', |
|
827 | + 'NO' => 'OMEGA', |
|
828 | + 'NT' => 'VORTAC', |
|
829 | + 'NV' => 'VOR', |
|
830 | + 'NX' => 'Direction finding station'); |
|
831 | 831 | public $code_information = array( |
832 | - 'OA' => 'Aeronautical information service', |
|
833 | - 'OB' => 'Obstacle', |
|
834 | - 'OE' => 'Aircraft entry requirements', |
|
835 | - 'OL' => 'Obstacle lights on', |
|
836 | - 'OR' => 'Rescue coordination centre'); |
|
832 | + 'OA' => 'Aeronautical information service', |
|
833 | + 'OB' => 'Obstacle', |
|
834 | + 'OE' => 'Aircraft entry requirements', |
|
835 | + 'OL' => 'Obstacle lights on', |
|
836 | + 'OR' => 'Rescue coordination centre'); |
|
837 | 837 | public $code_airtraffic = array( |
838 | - 'PA' => 'Standard instrument arrival', |
|
839 | - 'PD' => 'Standard instrument departure', |
|
840 | - 'PF' => 'Flow control procedure', |
|
841 | - 'PH' => 'Holding procedure', |
|
842 | - 'PI' => 'Instrument approach procedure', |
|
843 | - 'PL' => 'Obstacle clearance limit', |
|
844 | - 'PM' => 'Aerodrome operating minima', |
|
845 | - 'PO' => 'Obstacle clearance altitude', |
|
846 | - 'PP' => 'Obstacle clearance height', |
|
847 | - 'PR' => 'Radio failure procedure', |
|
848 | - 'PT' => 'Transition altitude', |
|
849 | - 'PU' => 'Missed approach procedure', |
|
850 | - 'PX' => 'Minimum holding altitude', |
|
851 | - 'PZ' => 'ADIZ procedure'); |
|
838 | + 'PA' => 'Standard instrument arrival', |
|
839 | + 'PD' => 'Standard instrument departure', |
|
840 | + 'PF' => 'Flow control procedure', |
|
841 | + 'PH' => 'Holding procedure', |
|
842 | + 'PI' => 'Instrument approach procedure', |
|
843 | + 'PL' => 'Obstacle clearance limit', |
|
844 | + 'PM' => 'Aerodrome operating minima', |
|
845 | + 'PO' => 'Obstacle clearance altitude', |
|
846 | + 'PP' => 'Obstacle clearance height', |
|
847 | + 'PR' => 'Radio failure procedure', |
|
848 | + 'PT' => 'Transition altitude', |
|
849 | + 'PU' => 'Missed approach procedure', |
|
850 | + 'PX' => 'Minimum holding altitude', |
|
851 | + 'PZ' => 'ADIZ procedure'); |
|
852 | 852 | public $code_navigationw = array( |
853 | - 'RA' => 'Airspace reservation', |
|
854 | - 'RD' => 'Danger area', |
|
855 | - 'RO' => 'Overflying of', |
|
856 | - 'RP' => 'Prohibited area', |
|
857 | - 'RR' => 'Restricted area', |
|
858 | - 'RT' => 'Temporary restricted area'); |
|
853 | + 'RA' => 'Airspace reservation', |
|
854 | + 'RD' => 'Danger area', |
|
855 | + 'RO' => 'Overflying of', |
|
856 | + 'RP' => 'Prohibited area', |
|
857 | + 'RR' => 'Restricted area', |
|
858 | + 'RT' => 'Temporary restricted area'); |
|
859 | 859 | public $code_volmet = array( |
860 | - 'SA' => 'Automatic terminal information service', |
|
861 | - 'SB' => 'ATS reporting office', |
|
862 | - 'SC' => 'Area control center', |
|
863 | - 'SE' => 'Flight information service', |
|
864 | - 'SF' => 'Airport flight information service', |
|
865 | - 'SL' => 'Flow control centre', |
|
866 | - 'SO' => 'Oceanic area control centre', |
|
867 | - 'SP' => 'Approach control service', |
|
868 | - 'SS' => 'Flight service station', |
|
869 | - 'ST' => 'Airport control tower', |
|
870 | - 'SU' => 'Upper area control centre', |
|
871 | - 'SV' => 'VOLMET broadcast', |
|
872 | - 'SY' => 'Upper advisory service'); |
|
860 | + 'SA' => 'Automatic terminal information service', |
|
861 | + 'SB' => 'ATS reporting office', |
|
862 | + 'SC' => 'Area control center', |
|
863 | + 'SE' => 'Flight information service', |
|
864 | + 'SF' => 'Airport flight information service', |
|
865 | + 'SL' => 'Flow control centre', |
|
866 | + 'SO' => 'Oceanic area control centre', |
|
867 | + 'SP' => 'Approach control service', |
|
868 | + 'SS' => 'Flight service station', |
|
869 | + 'ST' => 'Airport control tower', |
|
870 | + 'SU' => 'Upper area control centre', |
|
871 | + 'SV' => 'VOLMET broadcast', |
|
872 | + 'SY' => 'Upper advisory service'); |
|
873 | 873 | public $code_warnings = array( |
874 | - 'WA' => 'Air display', |
|
875 | - 'WB' => 'Aerobatics', |
|
876 | - 'WC' => 'Captive balloon or kite', |
|
877 | - 'WD' => 'Demolition of explosives', |
|
878 | - 'WE' => 'Exercises', |
|
879 | - 'WF' => 'Air refueling', |
|
880 | - 'WG' => 'Glider flying', |
|
881 | - 'WJ' => 'Banner/target towing', |
|
882 | - 'WL' => 'Ascent of free balloon', |
|
883 | - 'WM' => 'Missile, gun or rocket firing', |
|
884 | - 'WP' => 'Parachute jumping exercise', |
|
885 | - 'WS' => 'Burning or blowing gas', |
|
886 | - 'WT' => 'Mass movement of aircraft', |
|
887 | - 'WV' => 'Formation flight', |
|
888 | - 'WZ' => 'model flying'); |
|
874 | + 'WA' => 'Air display', |
|
875 | + 'WB' => 'Aerobatics', |
|
876 | + 'WC' => 'Captive balloon or kite', |
|
877 | + 'WD' => 'Demolition of explosives', |
|
878 | + 'WE' => 'Exercises', |
|
879 | + 'WF' => 'Air refueling', |
|
880 | + 'WG' => 'Glider flying', |
|
881 | + 'WJ' => 'Banner/target towing', |
|
882 | + 'WL' => 'Ascent of free balloon', |
|
883 | + 'WM' => 'Missile, gun or rocket firing', |
|
884 | + 'WP' => 'Parachute jumping exercise', |
|
885 | + 'WS' => 'Burning or blowing gas', |
|
886 | + 'WT' => 'Mass movement of aircraft', |
|
887 | + 'WV' => 'Formation flight', |
|
888 | + 'WZ' => 'model flying'); |
|
889 | 889 | public $code_sp_availabity = array( |
890 | - 'AC' => 'Withdrawn for maintenance', |
|
891 | - 'AD' => 'Available for daylight operation', |
|
892 | - 'AF' => 'Flight checked and found reliable', |
|
893 | - 'AG' => 'Operating but ground checked only, awaiting flight check', |
|
894 | - 'AH' => 'Hours of service are now', |
|
895 | - 'AK' => 'Resumed normal operations', |
|
896 | - 'AM' => 'Military operations only', |
|
897 | - 'AN' => 'Available for night operation', |
|
898 | - 'AO' => 'Operational', |
|
899 | - 'AP' => 'Available, prior permission required', |
|
900 | - 'AR' => 'Available on request', |
|
901 | - 'AS' => 'Unserviceable', |
|
902 | - 'AU' => 'Not available', |
|
903 | - 'AW' => 'Completely withdrawn', |
|
904 | - 'AX' => 'Previously promulgated shutdown has been cancelled'); |
|
890 | + 'AC' => 'Withdrawn for maintenance', |
|
891 | + 'AD' => 'Available for daylight operation', |
|
892 | + 'AF' => 'Flight checked and found reliable', |
|
893 | + 'AG' => 'Operating but ground checked only, awaiting flight check', |
|
894 | + 'AH' => 'Hours of service are now', |
|
895 | + 'AK' => 'Resumed normal operations', |
|
896 | + 'AM' => 'Military operations only', |
|
897 | + 'AN' => 'Available for night operation', |
|
898 | + 'AO' => 'Operational', |
|
899 | + 'AP' => 'Available, prior permission required', |
|
900 | + 'AR' => 'Available on request', |
|
901 | + 'AS' => 'Unserviceable', |
|
902 | + 'AU' => 'Not available', |
|
903 | + 'AW' => 'Completely withdrawn', |
|
904 | + 'AX' => 'Previously promulgated shutdown has been cancelled'); |
|
905 | 905 | public $code_sp_changes = array( |
906 | - 'CA' => 'Activated', |
|
907 | - 'CC' => 'Completed', |
|
908 | - 'CD' => 'Deactivated', |
|
909 | - 'CE' => 'Erected', |
|
910 | - 'CF' => 'Operating frequency(ies) changed to', |
|
911 | - 'CG' => 'Downgraded to', |
|
912 | - 'CH' => 'Changed', |
|
913 | - 'CI' => 'dentification or radio call sign changed to', |
|
914 | - 'CL' => 'Realigned', |
|
915 | - 'CM' => 'Displaced', |
|
916 | - 'CO' => 'Operating', |
|
917 | - 'CP' => 'Operating on reduced power', |
|
918 | - 'CR' => 'Temporarily replaced by', |
|
919 | - 'CS' => 'Installed', |
|
920 | - 'CT' => 'On test, do not use'); |
|
906 | + 'CA' => 'Activated', |
|
907 | + 'CC' => 'Completed', |
|
908 | + 'CD' => 'Deactivated', |
|
909 | + 'CE' => 'Erected', |
|
910 | + 'CF' => 'Operating frequency(ies) changed to', |
|
911 | + 'CG' => 'Downgraded to', |
|
912 | + 'CH' => 'Changed', |
|
913 | + 'CI' => 'dentification or radio call sign changed to', |
|
914 | + 'CL' => 'Realigned', |
|
915 | + 'CM' => 'Displaced', |
|
916 | + 'CO' => 'Operating', |
|
917 | + 'CP' => 'Operating on reduced power', |
|
918 | + 'CR' => 'Temporarily replaced by', |
|
919 | + 'CS' => 'Installed', |
|
920 | + 'CT' => 'On test, do not use'); |
|
921 | 921 | public $code_sp_hazardous = array( |
922 | - 'HA' => 'Braking action is', |
|
923 | - 'HB' => 'Braking coefficient is', |
|
924 | - 'HC' => 'Covered by compacted snow to depth of x Ft', |
|
925 | - 'HD' => 'Covered by dry snow to a depth of x Ft', |
|
926 | - 'HE' => 'Covered by water to a depth of x Ft', |
|
927 | - 'HF' => 'Totally free of snow and ice', |
|
928 | - 'HG' => 'Grass cutting in progress', |
|
929 | - 'HH' => 'Hazard due to', |
|
930 | - 'HI' => 'Covered by ice', |
|
931 | - 'HJ' => 'Launch planned', |
|
932 | - 'HK' => 'Migration in progress', |
|
933 | - 'HL' => 'Snow clearance completed', |
|
934 | - 'HM' => 'Marked by', |
|
935 | - 'HN' => 'Covered by wet snow or slush to a depth of x Ft', |
|
936 | - 'HO' => 'Obscured by snow', |
|
937 | - 'HP' => 'Snow clearance in progress', |
|
938 | - 'HQ' => 'Operation cancelled', |
|
939 | - 'HR' => 'Standing water', |
|
940 | - 'HS' => 'Sanding in progress', |
|
941 | - 'HT' => 'Approach according to signal area only', |
|
942 | - 'HU' => 'Launch in progress', |
|
943 | - 'HV' => 'Work completed', |
|
944 | - 'HW' => 'Work in progress', |
|
945 | - 'HX' => 'Concentration of birds', |
|
946 | - 'HY' => 'Snow banks exist', |
|
947 | - 'HZ' => 'Covered by frozen ruts and ridges'); |
|
922 | + 'HA' => 'Braking action is', |
|
923 | + 'HB' => 'Braking coefficient is', |
|
924 | + 'HC' => 'Covered by compacted snow to depth of x Ft', |
|
925 | + 'HD' => 'Covered by dry snow to a depth of x Ft', |
|
926 | + 'HE' => 'Covered by water to a depth of x Ft', |
|
927 | + 'HF' => 'Totally free of snow and ice', |
|
928 | + 'HG' => 'Grass cutting in progress', |
|
929 | + 'HH' => 'Hazard due to', |
|
930 | + 'HI' => 'Covered by ice', |
|
931 | + 'HJ' => 'Launch planned', |
|
932 | + 'HK' => 'Migration in progress', |
|
933 | + 'HL' => 'Snow clearance completed', |
|
934 | + 'HM' => 'Marked by', |
|
935 | + 'HN' => 'Covered by wet snow or slush to a depth of x Ft', |
|
936 | + 'HO' => 'Obscured by snow', |
|
937 | + 'HP' => 'Snow clearance in progress', |
|
938 | + 'HQ' => 'Operation cancelled', |
|
939 | + 'HR' => 'Standing water', |
|
940 | + 'HS' => 'Sanding in progress', |
|
941 | + 'HT' => 'Approach according to signal area only', |
|
942 | + 'HU' => 'Launch in progress', |
|
943 | + 'HV' => 'Work completed', |
|
944 | + 'HW' => 'Work in progress', |
|
945 | + 'HX' => 'Concentration of birds', |
|
946 | + 'HY' => 'Snow banks exist', |
|
947 | + 'HZ' => 'Covered by frozen ruts and ridges'); |
|
948 | 948 | public $code_sp_limitations = array( |
949 | - 'LA' => 'Operating on Auxiliary Power Supply', |
|
950 | - 'LB' => 'Reserved for aircraft based therein', |
|
951 | - 'LC' => 'Closed', |
|
952 | - 'LD' => 'Unsafe', |
|
953 | - 'LE' => 'Operated without auxiliary power supply', |
|
954 | - 'LF' => 'Interference from', |
|
955 | - 'LG' => 'Operating without identification', |
|
956 | - 'LH' => 'Unserviceable for aircraft heavier than', |
|
957 | - 'LI' => 'Close to IFR operations', |
|
958 | - 'LK' => 'Operating as a fixed light', |
|
959 | - 'LL' => 'Usable for lenght of... and width of...', |
|
960 | - 'LN' => 'Close to all night operations', |
|
961 | - 'LP' => 'Prohibited to', |
|
962 | - 'LR' => 'Aircraft restricted to runways and taxiways', |
|
963 | - 'LS' => 'Subject to interruption', |
|
964 | - 'LT' => 'Limited to', |
|
965 | - 'LV' => 'Close to VFR operations', |
|
966 | - 'LW' => 'Will take place', |
|
967 | - 'LX' => 'Operating but caution advised to'); |
|
949 | + 'LA' => 'Operating on Auxiliary Power Supply', |
|
950 | + 'LB' => 'Reserved for aircraft based therein', |
|
951 | + 'LC' => 'Closed', |
|
952 | + 'LD' => 'Unsafe', |
|
953 | + 'LE' => 'Operated without auxiliary power supply', |
|
954 | + 'LF' => 'Interference from', |
|
955 | + 'LG' => 'Operating without identification', |
|
956 | + 'LH' => 'Unserviceable for aircraft heavier than', |
|
957 | + 'LI' => 'Close to IFR operations', |
|
958 | + 'LK' => 'Operating as a fixed light', |
|
959 | + 'LL' => 'Usable for lenght of... and width of...', |
|
960 | + 'LN' => 'Close to all night operations', |
|
961 | + 'LP' => 'Prohibited to', |
|
962 | + 'LR' => 'Aircraft restricted to runways and taxiways', |
|
963 | + 'LS' => 'Subject to interruption', |
|
964 | + 'LT' => 'Limited to', |
|
965 | + 'LV' => 'Close to VFR operations', |
|
966 | + 'LW' => 'Will take place', |
|
967 | + 'LX' => 'Operating but caution advised to'); |
|
968 | 968 | |
969 | 969 | public function __construct($dbc = null) { |
970 | 970 | $Connection = new Connection($dbc); |
@@ -1126,6 +1126,10 @@ discard block |
||
1126 | 1126 | else return array(); |
1127 | 1127 | } |
1128 | 1128 | |
1129 | + /** |
|
1130 | + * @param string $type |
|
1131 | + * @param string $rules |
|
1132 | + */ |
|
1129 | 1133 | public function addNOTAM($ref,$title,$type,$fir,$code,$rules,$scope,$lower_limit,$upper_limit,$center_latitude,$center_longitude,$radius,$date_begin,$date_end,$permanent,$text,$full_notam) { |
1130 | 1134 | $query = "INSERT INTO notam (ref,title,notam_type,fir,code,rules,scope,lower_limit,upper_limit,center_latitude,center_longitude,radius,date_begin,date_end,permanent,notam_text,full_notam) VALUES (:ref,:title,:type,:fir,:code,:rules,:scope,:lower_limit,:upper_limit,:center_latitude,:center_longitude,:radius,:date_begin,:date_end,:permanent,:text,:full_notam)"; |
1131 | 1135 | $query_values = array(':ref' => $ref,':title' => $title,':type' => $type,':fir' => $fir,':code' => $code,':rules' => $rules,':scope' => $scope,':lower_limit' => $lower_limit,':upper_limit' => $upper_limit,':center_latitude' => $center_latitude,':center_longitude' => $center_longitude,':radius' => $radius,':date_begin' => $date_begin,':date_end' => $date_end,':permanent' => $permanent,':text' => $text,':full_notam' => $full_notam); |
@@ -1207,6 +1211,10 @@ discard block |
||
1207 | 1211 | } |
1208 | 1212 | } |
1209 | 1213 | } |
1214 | + |
|
1215 | + /** |
|
1216 | + * @param string $filename |
|
1217 | + */ |
|
1210 | 1218 | public function updateNOTAMfromTextFile($filename) { |
1211 | 1219 | global $globalTransaction, $globalDebug; |
1212 | 1220 | $alldata = $this->parseNOTAMtextFile($filename); |
@@ -1261,6 +1269,9 @@ discard block |
||
1261 | 1269 | } |
1262 | 1270 | } |
1263 | 1271 | |
1272 | + /** |
|
1273 | + * @param string $icao |
|
1274 | + */ |
|
1264 | 1275 | public function downloadNOTAM($icao) { |
1265 | 1276 | date_default_timezone_set("UTC"); |
1266 | 1277 | $Common = new Common(); |
@@ -1416,6 +1427,9 @@ discard block |
||
1416 | 1427 | return $result; |
1417 | 1428 | } |
1418 | 1429 | |
1430 | + /** |
|
1431 | + * @param string $code |
|
1432 | + */ |
|
1419 | 1433 | public function parse_code($code) { |
1420 | 1434 | $code = str_split($code); |
1421 | 1435 | $code_fp = $code[1].$code[2]; |
@@ -1036,8 +1036,11 @@ discard block |
||
1036 | 1036 | public function parseNOTAMtextFile($filename) { |
1037 | 1037 | $data = file_get_contents($filename); |
1038 | 1038 | preg_match_all("/%%(.+?)%%/is", $data, $matches); |
1039 | - if (isset($matches[1])) return $matches[1]; |
|
1040 | - else return array(); |
|
1039 | + if (isset($matches[1])) { |
|
1040 | + return $matches[1]; |
|
1041 | + } else { |
|
1042 | + return array(); |
|
1043 | + } |
|
1041 | 1044 | } |
1042 | 1045 | public function getAllNOTAMbyScope($scope) { |
1043 | 1046 | global $globalDBdriver; |
@@ -1073,7 +1076,9 @@ discard block |
||
1073 | 1076 | $minlong = $maxlong; |
1074 | 1077 | $maxlong = $tmplong; |
1075 | 1078 | } |
1076 | - } else return array(); |
|
1079 | + } else { |
|
1080 | + return array(); |
|
1081 | + } |
|
1077 | 1082 | if ($globalDBdriver == 'mysql') { |
1078 | 1083 | $query = 'SELECT * FROM notam WHERE center_latitude BETWEEN '.$minlat.' AND '.$maxlat.' AND center_longitude BETWEEN '.$minlong.' AND '.$maxlong.' AND radius > 0 AND date_end > UTC_TIMESTAMP() AND date_begin < UTC_TIMESTAMP()'; |
1079 | 1084 | } else { |
@@ -1096,7 +1101,9 @@ discard block |
||
1096 | 1101 | $minlat = filter_var($coord[1],FILTER_SANITIZE_NUMBER_FLOAT,FILTER_FLAG_ALLOW_FRACTION); |
1097 | 1102 | $maxlong = filter_var($coord[2],FILTER_SANITIZE_NUMBER_FLOAT,FILTER_FLAG_ALLOW_FRACTION); |
1098 | 1103 | $maxlat = filter_var($coord[3],FILTER_SANITIZE_NUMBER_FLOAT,FILTER_FLAG_ALLOW_FRACTION); |
1099 | - } else return array(); |
|
1104 | + } else { |
|
1105 | + return array(); |
|
1106 | + } |
|
1100 | 1107 | if ($globalDBdriver == 'mysql') { |
1101 | 1108 | $query = 'SELECT * FROM notam WHERE center_latitude BETWEEN '.$minlat.' AND '.$maxlat.' AND center_longitude BETWEEN '.$minlong.' AND '.$maxlong.' AND radius > 0 AND date_end > UTC_TIMESTAMP() AND date_begin < UTC_TIMESTAMP() AND scope = :scope'; |
1102 | 1109 | } else { |
@@ -1122,8 +1129,11 @@ discard block |
||
1122 | 1129 | return "error : ".$e->getMessage(); |
1123 | 1130 | } |
1124 | 1131 | $all = $sth->fetchAll(PDO::FETCH_ASSOC); |
1125 | - if (isset($all[0])) return $all[0]; |
|
1126 | - else return array(); |
|
1132 | + if (isset($all[0])) { |
|
1133 | + return $all[0]; |
|
1134 | + } else { |
|
1135 | + return array(); |
|
1136 | + } |
|
1127 | 1137 | } |
1128 | 1138 | |
1129 | 1139 | public function addNOTAM($ref,$title,$type,$fir,$code,$rules,$scope,$lower_limit,$upper_limit,$center_latitude,$center_longitude,$radius,$date_begin,$date_end,$permanent,$text,$full_notam) { |
@@ -1201,7 +1211,9 @@ discard block |
||
1201 | 1211 | foreach ($alldata as $initial_data) { |
1202 | 1212 | $data = $this->parse($initial_data); |
1203 | 1213 | $notamref = $this->getNOTAMbyRef($data['ref']); |
1204 | - if (count($notamref) == 0) $this->addNOTAM($data['ref'],$data['title'],'',$data['fir'],$data['code'],'',$data['scope'],$data['lower_limit'],$data['upper_limit'],$data['latitude'],$data['longitude'],$data['radius'],$data['date_begin'],$data['date_end'],$data['permanent'],$data['text'],$data['full_notam']); |
|
1214 | + if (count($notamref) == 0) { |
|
1215 | + $this->addNOTAM($data['ref'],$data['title'],'',$data['fir'],$data['code'],'',$data['scope'],$data['lower_limit'],$data['upper_limit'],$data['latitude'],$data['longitude'],$data['radius'],$data['date_begin'],$data['date_end'],$data['permanent'],$data['text'],$data['full_notam']); |
|
1216 | + } |
|
1205 | 1217 | } |
1206 | 1218 | } |
1207 | 1219 | } |
@@ -1212,20 +1224,28 @@ discard block |
||
1212 | 1224 | $alldata = $this->parseNOTAMtextFile($filename); |
1213 | 1225 | if (count($alldata) > 0) { |
1214 | 1226 | $this->deleteOldNOTAM(); |
1215 | - if ($globalTransaction) $this->db->beginTransaction(); |
|
1227 | + if ($globalTransaction) { |
|
1228 | + $this->db->beginTransaction(); |
|
1229 | + } |
|
1216 | 1230 | $j = 0; |
1217 | 1231 | foreach ($alldata as $initial_data) { |
1218 | 1232 | $j++; |
1219 | 1233 | $data = $this->parse($initial_data); |
1220 | 1234 | $notamref = $this->getNOTAMbyRef($data['ref']); |
1221 | - if (!isset($notamref['notam_id'])) $this->addNOTAM($data['ref'],$data['title'],'',$data['fir'],$data['code'],'',$data['scope'],$data['lower_limit'],$data['upper_limit'],$data['latitude'],$data['longitude'],$data['radius'],$data['date_begin'],$data['date_end'],$data['permanent'],$data['text'],$data['full_notam']); |
|
1235 | + if (!isset($notamref['notam_id'])) { |
|
1236 | + $this->addNOTAM($data['ref'],$data['title'],'',$data['fir'],$data['code'],'',$data['scope'],$data['lower_limit'],$data['upper_limit'],$data['latitude'],$data['longitude'],$data['radius'],$data['date_begin'],$data['date_end'],$data['permanent'],$data['text'],$data['full_notam']); |
|
1237 | + } |
|
1222 | 1238 | if ($globalTransaction && $j % 1000 == 0) { |
1223 | 1239 | $this->db->commit(); |
1224 | - if ($globalDebug) echo '.'; |
|
1240 | + if ($globalDebug) { |
|
1241 | + echo '.'; |
|
1242 | + } |
|
1225 | 1243 | $this->db->beginTransaction(); |
1226 | 1244 | } |
1227 | 1245 | } |
1228 | - if ($globalTransaction) $this->db->commit(); |
|
1246 | + if ($globalTransaction) { |
|
1247 | + $this->db->commit(); |
|
1248 | + } |
|
1229 | 1249 | } |
1230 | 1250 | } |
1231 | 1251 | |
@@ -1236,11 +1256,15 @@ discard block |
||
1236 | 1256 | foreach (array_chunk($allairports,20) as $airport) { |
1237 | 1257 | $airports_icao = array(); |
1238 | 1258 | foreach($airport as $icao) { |
1239 | - if (isset($icao['icao'])) $airports_icao[] = $icao['icao']; |
|
1259 | + if (isset($icao['icao'])) { |
|
1260 | + $airports_icao[] = $icao['icao']; |
|
1261 | + } |
|
1240 | 1262 | } |
1241 | 1263 | $airport_icao = implode(',',$airports_icao); |
1242 | 1264 | $alldata = $this->downloadNOTAM($airport_icao); |
1243 | - if ($globalTransaction) $this->db->beginTransaction(); |
|
1265 | + if ($globalTransaction) { |
|
1266 | + $this->db->beginTransaction(); |
|
1267 | + } |
|
1244 | 1268 | if (count($alldata) > 0) { |
1245 | 1269 | foreach ($alldata as $initial_data) { |
1246 | 1270 | //print_r($initial_data); |
@@ -1249,14 +1273,23 @@ discard block |
||
1249 | 1273 | if (isset($data['ref'])) { |
1250 | 1274 | $notamref = $this->getNOTAMbyRef($data['ref']); |
1251 | 1275 | if (count($notamref) == 0) { |
1252 | - if (isset($data['ref_replaced'])) $this->deleteNOTAMbyRef($data['ref_replaced']); |
|
1253 | - if (isset($data['ref_cancelled'])) $this->deleteNOTAMbyRef($data['ref_cancelled']); |
|
1254 | - elseif (isset($data['latitude']) && isset($data['scope']) && isset($data['text']) && isset($data['permanent'])) echo $this->addNOTAM($data['ref'],'','',$data['fir'],$data['code'],'',$data['scope'],$data['lower_limit'],$data['upper_limit'],$data['latitude'],$data['longitude'],$data['radius'],$data['date_begin'],$data['date_end'],$data['permanent'],$data['text'],$data['full_notam']); |
|
1276 | + if (isset($data['ref_replaced'])) { |
|
1277 | + $this->deleteNOTAMbyRef($data['ref_replaced']); |
|
1278 | + } |
|
1279 | + if (isset($data['ref_cancelled'])) { |
|
1280 | + $this->deleteNOTAMbyRef($data['ref_cancelled']); |
|
1281 | + } elseif (isset($data['latitude']) && isset($data['scope']) && isset($data['text']) && isset($data['permanent'])) { |
|
1282 | + echo $this->addNOTAM($data['ref'],'','',$data['fir'],$data['code'],'',$data['scope'],$data['lower_limit'],$data['upper_limit'],$data['latitude'],$data['longitude'],$data['radius'],$data['date_begin'],$data['date_end'],$data['permanent'],$data['text'],$data['full_notam']); |
|
1283 | + } |
|
1255 | 1284 | } |
1256 | 1285 | } |
1257 | 1286 | } |
1258 | - } else echo 'Error on download. Nothing matches for '.$airport_icao."\n"; |
|
1259 | - if ($globalTransaction) $this->db->commit(); |
|
1287 | + } else { |
|
1288 | + echo 'Error on download. Nothing matches for '.$airport_icao."\n"; |
|
1289 | + } |
|
1290 | + if ($globalTransaction) { |
|
1291 | + $this->db->commit(); |
|
1292 | + } |
|
1260 | 1293 | sleep(5); |
1261 | 1294 | } |
1262 | 1295 | } |
@@ -1269,8 +1302,11 @@ discard block |
||
1269 | 1302 | $data = $Common->getData($url); |
1270 | 1303 | preg_match_all("/<pre>(.+?)<\/pre>/is", $data, $matches); |
1271 | 1304 | //print_r($matches); |
1272 | - if (isset($matches[1])) return $matches[1]; |
|
1273 | - else return array(); |
|
1305 | + if (isset($matches[1])) { |
|
1306 | + return $matches[1]; |
|
1307 | + } else { |
|
1308 | + return array(); |
|
1309 | + } |
|
1274 | 1310 | } |
1275 | 1311 | |
1276 | 1312 | public function parse($data) { |
@@ -1301,99 +1337,156 @@ discard block |
||
1301 | 1337 | $rules = str_split($matches[3]); |
1302 | 1338 | foreach ($rules as $rule) { |
1303 | 1339 | if ($rule == 'I') { |
1304 | - if (isset($result['rules'])) $result['rules'] = $result['rules'].'/IFR'; |
|
1305 | - else $result['rules'] = 'IFR'; |
|
1340 | + if (isset($result['rules'])) { |
|
1341 | + $result['rules'] = $result['rules'].'/IFR'; |
|
1342 | + } else { |
|
1343 | + $result['rules'] = 'IFR'; |
|
1344 | + } |
|
1306 | 1345 | } elseif ($rule == 'V') { |
1307 | - if (isset($result['rules'])) $result['rules'] = $result['rules'].'/VFR'; |
|
1308 | - else $result['rules'] = 'VFR'; |
|
1346 | + if (isset($result['rules'])) { |
|
1347 | + $result['rules'] = $result['rules'].'/VFR'; |
|
1348 | + } else { |
|
1349 | + $result['rules'] = 'VFR'; |
|
1350 | + } |
|
1309 | 1351 | } elseif ($rule == 'K') { |
1310 | - if (isset($result['rules'])) $result['rules'] = $result['rules'].'/Checklist'; |
|
1311 | - else $result['rules'] = 'Checklist'; |
|
1352 | + if (isset($result['rules'])) { |
|
1353 | + $result['rules'] = $result['rules'].'/Checklist'; |
|
1354 | + } else { |
|
1355 | + $result['rules'] = 'Checklist'; |
|
1356 | + } |
|
1312 | 1357 | } |
1313 | 1358 | } |
1314 | 1359 | $attentions = str_split($matches[4]); |
1315 | 1360 | foreach ($attentions as $attention) { |
1316 | 1361 | if ($attention == 'N') { |
1317 | - if (isset($result['attention'])) $result['attention'] = $result['attention'].' / Immediate attention'; |
|
1318 | - else $result['rules'] = 'Immediate attention'; |
|
1362 | + if (isset($result['attention'])) { |
|
1363 | + $result['attention'] = $result['attention'].' / Immediate attention'; |
|
1364 | + } else { |
|
1365 | + $result['rules'] = 'Immediate attention'; |
|
1366 | + } |
|
1319 | 1367 | } elseif ($attention == 'B') { |
1320 | - if (isset($result['attention'])) $result['attention'] = $result['attention'].' / Operational significance'; |
|
1321 | - else $result['rules'] = 'Operational significance'; |
|
1368 | + if (isset($result['attention'])) { |
|
1369 | + $result['attention'] = $result['attention'].' / Operational significance'; |
|
1370 | + } else { |
|
1371 | + $result['rules'] = 'Operational significance'; |
|
1372 | + } |
|
1322 | 1373 | } elseif ($attention == 'O') { |
1323 | - if (isset($result['attention'])) $result['attention'] = $result['attention'].' / Flight operations'; |
|
1324 | - else $result['rules'] = 'Flight operations'; |
|
1374 | + if (isset($result['attention'])) { |
|
1375 | + $result['attention'] = $result['attention'].' / Flight operations'; |
|
1376 | + } else { |
|
1377 | + $result['rules'] = 'Flight operations'; |
|
1378 | + } |
|
1325 | 1379 | } elseif ($attention == 'M') { |
1326 | - if (isset($result['attention'])) $result['attention'] = $result['attention'].' / Misc'; |
|
1327 | - else $result['rules'] = 'Misc'; |
|
1380 | + if (isset($result['attention'])) { |
|
1381 | + $result['attention'] = $result['attention'].' / Misc'; |
|
1382 | + } else { |
|
1383 | + $result['rules'] = 'Misc'; |
|
1384 | + } |
|
1328 | 1385 | } elseif ($attention == 'K') { |
1329 | - if (isset($result['attention'])) $result['attention'] = $result['attention'].' / Checklist'; |
|
1330 | - else $result['rules'] = 'Checklist'; |
|
1386 | + if (isset($result['attention'])) { |
|
1387 | + $result['attention'] = $result['attention'].' / Checklist'; |
|
1388 | + } else { |
|
1389 | + $result['rules'] = 'Checklist'; |
|
1390 | + } |
|
1331 | 1391 | } |
1332 | 1392 | } |
1333 | - if ($matches[5] == 'A') $result['scope'] = 'Airport warning'; |
|
1334 | - elseif ($matches[5] == 'E') $result['scope'] = 'Enroute warning'; |
|
1335 | - elseif ($matches[5] == 'W') $result['scope'] = 'Navigation warning'; |
|
1336 | - elseif ($matches[5] == 'K') $result['scope'] = 'Checklist'; |
|
1337 | - elseif ($matches[5] == 'AE') $result['scope'] = 'Airport/Enroute warning'; |
|
1338 | - elseif ($matches[5] == 'AW') $result['scope'] = 'Airport/Navigation warning'; |
|
1393 | + if ($matches[5] == 'A') { |
|
1394 | + $result['scope'] = 'Airport warning'; |
|
1395 | + } elseif ($matches[5] == 'E') { |
|
1396 | + $result['scope'] = 'Enroute warning'; |
|
1397 | + } elseif ($matches[5] == 'W') { |
|
1398 | + $result['scope'] = 'Navigation warning'; |
|
1399 | + } elseif ($matches[5] == 'K') { |
|
1400 | + $result['scope'] = 'Checklist'; |
|
1401 | + } elseif ($matches[5] == 'AE') { |
|
1402 | + $result['scope'] = 'Airport/Enroute warning'; |
|
1403 | + } elseif ($matches[5] == 'AW') { |
|
1404 | + $result['scope'] = 'Airport/Navigation warning'; |
|
1405 | + } |
|
1339 | 1406 | $result['lower_limit'] = $matches[6]; |
1340 | 1407 | $result['upper_limit'] = $matches[7]; |
1341 | 1408 | $latitude = $Common->convertDec($matches[8],'latitude'); |
1342 | - if ($matches[9] == 'S') $latitude = -$latitude; |
|
1409 | + if ($matches[9] == 'S') { |
|
1410 | + $latitude = -$latitude; |
|
1411 | + } |
|
1343 | 1412 | $longitude = $Common->convertDec($matches[10],'longitude'); |
1344 | - if ($matches[11] == 'W') $longitude = -$longitude; |
|
1413 | + if ($matches[11] == 'W') { |
|
1414 | + $longitude = -$longitude; |
|
1415 | + } |
|
1345 | 1416 | $result['latitude'] = $latitude; |
1346 | 1417 | $result['longitude'] = $longitude; |
1347 | - if ($matches[12] != '') $result['radius'] = intval($matches[12]); |
|
1348 | - else $result['radius'] = 0; |
|
1418 | + if ($matches[12] != '') { |
|
1419 | + $result['radius'] = intval($matches[12]); |
|
1420 | + } else { |
|
1421 | + $result['radius'] = 0; |
|
1422 | + } |
|
1349 | 1423 | $q = true; |
1350 | 1424 | } elseif ($globalDebug) { |
1351 | 1425 | echo 'NOTAM error : '.$result['full_notam']."\n"; |
1352 | 1426 | echo "Can't parse : ".$line."\n"; |
1353 | 1427 | } |
1354 | - } |
|
1355 | - elseif (preg_match('#(^|\s)A\) (.*)#',$line,$matches) && $a === false) { |
|
1428 | + } elseif (preg_match('#(^|\s)A\) (.*)#',$line,$matches) && $a === false) { |
|
1356 | 1429 | $result['icao'] = $matches[2]; |
1357 | 1430 | $a = true; |
1358 | - } |
|
1359 | - elseif (preg_match('#(^|\s)B\) ([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})#',$line,$matches) && $b === false) { |
|
1360 | - if ($matches[1] > 50) $year = '19'.$matches[2]; |
|
1361 | - else $year = '20'.$matches[2]; |
|
1431 | + } elseif (preg_match('#(^|\s)B\) ([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})#',$line,$matches) && $b === false) { |
|
1432 | + if ($matches[1] > 50) { |
|
1433 | + $year = '19'.$matches[2]; |
|
1434 | + } else { |
|
1435 | + $year = '20'.$matches[2]; |
|
1436 | + } |
|
1362 | 1437 | $result['date_begin'] = $year.'/'.$matches[3].'/'.$matches[4].' '.$matches[5].':'.$matches[6]; |
1363 | 1438 | $b = true; |
1364 | - } |
|
1365 | - elseif (preg_match('#(^|\s)C\) ([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})$#',$line,$matches) && $c === false) { |
|
1366 | - if ($matches[2] > 50) $year = '19'.$matches[2]; |
|
1367 | - else $year = '20'.$matches[2]; |
|
1439 | + } elseif (preg_match('#(^|\s)C\) ([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})$#',$line,$matches) && $c === false) { |
|
1440 | + if ($matches[2] > 50) { |
|
1441 | + $year = '19'.$matches[2]; |
|
1442 | + } else { |
|
1443 | + $year = '20'.$matches[2]; |
|
1444 | + } |
|
1368 | 1445 | $result['date_end'] = $year.'/'.$matches[3].'/'.$matches[4].' '.$matches[5].':'.$matches[6]; |
1369 | 1446 | $result['permanent'] = 0; |
1370 | 1447 | $c = true; |
1371 | - } |
|
1372 | - elseif (preg_match('#(^|\s)C\) ([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2}) (EST|PERM)$#',$line,$matches) && $c === false) { |
|
1373 | - if ($matches[2] > 50) $year = '19'.$matches[2]; |
|
1374 | - else $year = '20'.$matches[2]; |
|
1448 | + } elseif (preg_match('#(^|\s)C\) ([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2}) (EST|PERM)$#',$line,$matches) && $c === false) { |
|
1449 | + if ($matches[2] > 50) { |
|
1450 | + $year = '19'.$matches[2]; |
|
1451 | + } else { |
|
1452 | + $year = '20'.$matches[2]; |
|
1453 | + } |
|
1375 | 1454 | $result['date_end'] = $year.'/'.$matches[3].'/'.$matches[4].' '.$matches[5].':'.$matches[6]; |
1376 | - if ($matches[7] == 'EST') $result['estimated'] = 1; |
|
1377 | - else $result['estimated'] = 0; |
|
1378 | - if ($matches[7] == 'PERM') $result['permanent'] = 1; |
|
1379 | - else $result['permanent'] = 0; |
|
1455 | + if ($matches[7] == 'EST') { |
|
1456 | + $result['estimated'] = 1; |
|
1457 | + } else { |
|
1458 | + $result['estimated'] = 0; |
|
1459 | + } |
|
1460 | + if ($matches[7] == 'PERM') { |
|
1461 | + $result['permanent'] = 1; |
|
1462 | + } else { |
|
1463 | + $result['permanent'] = 0; |
|
1464 | + } |
|
1380 | 1465 | $c = true; |
1381 | - } |
|
1382 | - elseif (preg_match('#(^|\s)C\) (EST|PERM)$#',$line,$matches) && $c === false) { |
|
1466 | + } elseif (preg_match('#(^|\s)C\) (EST|PERM)$#',$line,$matches) && $c === false) { |
|
1383 | 1467 | $result['date_end'] = '2030/12/20 12:00'; |
1384 | - if ($matches[2] == 'EST') $result['estimated'] = 1; |
|
1385 | - else $result['estimated'] = 0; |
|
1386 | - if ($matches[2] == 'PERM') $result['permanent'] = 1; |
|
1387 | - else $result['permanent'] = 0; |
|
1468 | + if ($matches[2] == 'EST') { |
|
1469 | + $result['estimated'] = 1; |
|
1470 | + } else { |
|
1471 | + $result['estimated'] = 0; |
|
1472 | + } |
|
1473 | + if ($matches[2] == 'PERM') { |
|
1474 | + $result['permanent'] = 1; |
|
1475 | + } else { |
|
1476 | + $result['permanent'] = 0; |
|
1477 | + } |
|
1388 | 1478 | $c = true; |
1389 | - } |
|
1390 | - elseif (preg_match('#(^|\s)E\) (.*)#',$line,$matches) && $e === false) { |
|
1479 | + } elseif (preg_match('#(^|\s)E\) (.*)#',$line,$matches) && $e === false) { |
|
1391 | 1480 | $rtext = array(); |
1392 | 1481 | $text = explode(' ',$matches[2]); |
1393 | 1482 | foreach ($text as $word) { |
1394 | - if (isset($this->abbr[$word])) $rtext[] = strtoupper($this->abbr[$word]); |
|
1395 | - elseif (ctype_digit(strval(substr($word,3))) && isset($this->abbr[substr($word,0,3)])) $rtext[] = strtoupper($this->abbr[substr($word,0,3)]).' '.substr($word,3); |
|
1396 | - else $rtext[] = $word; |
|
1483 | + if (isset($this->abbr[$word])) { |
|
1484 | + $rtext[] = strtoupper($this->abbr[$word]); |
|
1485 | + } elseif (ctype_digit(strval(substr($word,3))) && isset($this->abbr[substr($word,0,3)])) { |
|
1486 | + $rtext[] = strtoupper($this->abbr[substr($word,0,3)]).' '.substr($word,3); |
|
1487 | + } else { |
|
1488 | + $rtext[] = $word; |
|
1489 | + } |
|
1397 | 1490 | } |
1398 | 1491 | $result['text'] = implode(' ',$rtext); |
1399 | 1492 | $e = true; |
@@ -1402,7 +1495,9 @@ discard block |
||
1402 | 1495 | } elseif (preg_match('#(NOTAMN|NOTAMR|NOTAMC)#',$line,$matches)) { |
1403 | 1496 | $text = explode(' ',$line); |
1404 | 1497 | $result['ref'] = $text[0]; |
1405 | - if ($matches[1] == 'NOTAMN') $result['type'] = 'new'; |
|
1498 | + if ($matches[1] == 'NOTAMN') { |
|
1499 | + $result['type'] = 'new'; |
|
1500 | + } |
|
1406 | 1501 | if ($matches[1] == 'NOTAMC') { |
1407 | 1502 | $result['type'] = 'cancel'; |
1408 | 1503 | $result['ref_cancelled'] = $text[2]; |
@@ -1424,69 +1519,101 @@ discard block |
||
1424 | 1519 | switch ($code[1]) { |
1425 | 1520 | case 'A': |
1426 | 1521 | $result = 'Airspace organization '; |
1427 | - if (isset($this->code_airspace[$code_fp])) $result .= $this->code_airspace[$code_fp]; |
|
1522 | + if (isset($this->code_airspace[$code_fp])) { |
|
1523 | + $result .= $this->code_airspace[$code_fp]; |
|
1524 | + } |
|
1428 | 1525 | break; |
1429 | 1526 | case 'C': |
1430 | 1527 | $result = 'Communications and radar facilities '; |
1431 | - if (isset($this->code_comradar[$code_fp])) $result .= $this->code_comradar[$code_fp]; |
|
1528 | + if (isset($this->code_comradar[$code_fp])) { |
|
1529 | + $result .= $this->code_comradar[$code_fp]; |
|
1530 | + } |
|
1432 | 1531 | break; |
1433 | 1532 | case 'F': |
1434 | 1533 | $result = 'Facilities and services '; |
1435 | - if (isset($this->code_facilities[$code_fp])) $result .= $this->code_facilities[$code_fp]; |
|
1534 | + if (isset($this->code_facilities[$code_fp])) { |
|
1535 | + $result .= $this->code_facilities[$code_fp]; |
|
1536 | + } |
|
1436 | 1537 | break; |
1437 | 1538 | case 'I': |
1438 | 1539 | $result = 'Instrument and Microwave Landing System '; |
1439 | - if (isset($this->code_instrumentlanding[$code_fp])) $result .= $this->code_instrumentlanding[$code_fp]; |
|
1540 | + if (isset($this->code_instrumentlanding[$code_fp])) { |
|
1541 | + $result .= $this->code_instrumentlanding[$code_fp]; |
|
1542 | + } |
|
1440 | 1543 | break; |
1441 | 1544 | case 'L': |
1442 | 1545 | $result = 'Lighting facilities '; |
1443 | - if (isset($this->code_lightingfacilities[$code_fp])) $result .= $this->code_lightingfacilities[$code_fp]; |
|
1546 | + if (isset($this->code_lightingfacilities[$code_fp])) { |
|
1547 | + $result .= $this->code_lightingfacilities[$code_fp]; |
|
1548 | + } |
|
1444 | 1549 | break; |
1445 | 1550 | case 'M': |
1446 | 1551 | $result = 'Movement and landing areas '; |
1447 | - if (isset($this->code_movementareas[$code_fp])) $result .= $this->code_movementareas[$code_fp]; |
|
1552 | + if (isset($this->code_movementareas[$code_fp])) { |
|
1553 | + $result .= $this->code_movementareas[$code_fp]; |
|
1554 | + } |
|
1448 | 1555 | break; |
1449 | 1556 | case 'N': |
1450 | 1557 | $result = 'Terminal and En Route Navigation Facilities '; |
1451 | - if (isset($this->code_terminalfacilities[$code_fp])) $result .= $this->code_terminalfacilities[$code_fp]; |
|
1558 | + if (isset($this->code_terminalfacilities[$code_fp])) { |
|
1559 | + $result .= $this->code_terminalfacilities[$code_fp]; |
|
1560 | + } |
|
1452 | 1561 | break; |
1453 | 1562 | case 'O': |
1454 | 1563 | $result = 'Other information '; |
1455 | - if (isset($this->code_information[$code_fp])) $result .= $this->code_information[$code_fp]; |
|
1564 | + if (isset($this->code_information[$code_fp])) { |
|
1565 | + $result .= $this->code_information[$code_fp]; |
|
1566 | + } |
|
1456 | 1567 | break; |
1457 | 1568 | case 'P': |
1458 | 1569 | $result = 'Air Traffic procedures '; |
1459 | - if (isset($this->code_airtraffic[$code_fp])) $result .= $this->code_airtraffic[$code_fp]; |
|
1570 | + if (isset($this->code_airtraffic[$code_fp])) { |
|
1571 | + $result .= $this->code_airtraffic[$code_fp]; |
|
1572 | + } |
|
1460 | 1573 | break; |
1461 | 1574 | case 'R': |
1462 | 1575 | $result = 'Navigation Warnings: Airspace Restrictions '; |
1463 | - if (isset($this->code_navigationw[$code_fp])) $result .= $this->code_navigationw[$code_fp]; |
|
1576 | + if (isset($this->code_navigationw[$code_fp])) { |
|
1577 | + $result .= $this->code_navigationw[$code_fp]; |
|
1578 | + } |
|
1464 | 1579 | break; |
1465 | 1580 | case 'S': |
1466 | 1581 | $result = 'Air Traffic and VOLMET Services '; |
1467 | - if (isset($this->code_volmet[$code_fp])) $result .= $this->code_volmet[$code_fp]; |
|
1582 | + if (isset($this->code_volmet[$code_fp])) { |
|
1583 | + $result .= $this->code_volmet[$code_fp]; |
|
1584 | + } |
|
1468 | 1585 | break; |
1469 | 1586 | case 'W': |
1470 | 1587 | $result = 'Navigation Warnings: Warnings '; |
1471 | - if (isset($this->code_warnings[$code_fp])) $result .= $this->code_warnings[$code_fp]; |
|
1588 | + if (isset($this->code_warnings[$code_fp])) { |
|
1589 | + $result .= $this->code_warnings[$code_fp]; |
|
1590 | + } |
|
1472 | 1591 | break; |
1473 | 1592 | } |
1474 | 1593 | switch ($code[3]) { |
1475 | 1594 | case 'A': |
1476 | 1595 | // Availability |
1477 | - if (isset($this->code_sp_availabity[$code_sp])) $result .= ' '.$this->code_sp_availabity[$code_sp]; |
|
1596 | + if (isset($this->code_sp_availabity[$code_sp])) { |
|
1597 | + $result .= ' '.$this->code_sp_availabity[$code_sp]; |
|
1598 | + } |
|
1478 | 1599 | break; |
1479 | 1600 | case 'C': |
1480 | 1601 | // Changes |
1481 | - if (isset($this->code_sp_changes[$code_sp])) $result .= ' '.$this->code_sp_changes[$code_sp]; |
|
1602 | + if (isset($this->code_sp_changes[$code_sp])) { |
|
1603 | + $result .= ' '.$this->code_sp_changes[$code_sp]; |
|
1604 | + } |
|
1482 | 1605 | break; |
1483 | 1606 | case 'H': |
1484 | 1607 | // Hazardous conditions |
1485 | - if (isset($this->code_sp_hazardous[$code_sp])) $result .= ' '.$this->code_sp_hazardous[$code_sp]; |
|
1608 | + if (isset($this->code_sp_hazardous[$code_sp])) { |
|
1609 | + $result .= ' '.$this->code_sp_hazardous[$code_sp]; |
|
1610 | + } |
|
1486 | 1611 | break; |
1487 | 1612 | case 'L': |
1488 | 1613 | // Limitations |
1489 | - if (isset($this->code_sp_limitations[$code_sp])) $result .= ' '.$this->code_sp_limitations[$code_sp]; |
|
1614 | + if (isset($this->code_sp_limitations[$code_sp])) { |
|
1615 | + $result .= ' '.$this->code_sp_limitations[$code_sp]; |
|
1616 | + } |
|
1490 | 1617 | break; |
1491 | 1618 | case 'X': |
1492 | 1619 | // Other Information |
@@ -988,7 +988,7 @@ discard block |
||
988 | 988 | try { |
989 | 989 | $sth = $this->db->prepare($query); |
990 | 990 | $sth->execute($query_values); |
991 | - } catch(PDOException $e) { |
|
991 | + } catch (PDOException $e) { |
|
992 | 992 | echo "error : ".$e->getMessage(); |
993 | 993 | return array(); |
994 | 994 | } |
@@ -1006,7 +1006,7 @@ discard block |
||
1006 | 1006 | try { |
1007 | 1007 | $sth = $this->db->prepare($query); |
1008 | 1008 | $sth->execute($query_values); |
1009 | - } catch(PDOException $e) { |
|
1009 | + } catch (PDOException $e) { |
|
1010 | 1010 | echo "error : ".$e->getMessage(); |
1011 | 1011 | return array(); |
1012 | 1012 | } |
@@ -1014,12 +1014,12 @@ discard block |
||
1014 | 1014 | return $all; |
1015 | 1015 | } |
1016 | 1016 | public function getAllNOTAMtext() { |
1017 | - $query = 'SELECT full_notam FROM notam'; |
|
1017 | + $query = 'SELECT full_notam FROM notam'; |
|
1018 | 1018 | $query_values = array(); |
1019 | 1019 | try { |
1020 | 1020 | $sth = $this->db->prepare($query); |
1021 | 1021 | $sth->execute($query_values); |
1022 | - } catch(PDOException $e) { |
|
1022 | + } catch (PDOException $e) { |
|
1023 | 1023 | echo "error : ".$e->getMessage(); |
1024 | 1024 | return array(); |
1025 | 1025 | } |
@@ -1029,12 +1029,12 @@ discard block |
||
1029 | 1029 | public function createNOTAMtextFile($filename) { |
1030 | 1030 | $allnotam_result = $this->getAllNOTAMtext(); |
1031 | 1031 | $notamtext = ''; |
1032 | - foreach($allnotam_result as $notam) { |
|
1032 | + foreach ($allnotam_result as $notam) { |
|
1033 | 1033 | $notamtext .= '%%'."\n"; |
1034 | 1034 | $notamtext .= $notam['full_notam']; |
1035 | 1035 | $notamtext .= "\n".'%%'."\n"; |
1036 | 1036 | } |
1037 | - file_put_contents($filename,$notamtext); |
|
1037 | + file_put_contents($filename, $notamtext); |
|
1038 | 1038 | } |
1039 | 1039 | public function parseNOTAMtextFile($filename) { |
1040 | 1040 | $data = file_get_contents($filename); |
@@ -1053,7 +1053,7 @@ discard block |
||
1053 | 1053 | try { |
1054 | 1054 | $sth = $this->db->prepare($query); |
1055 | 1055 | $sth->execute($query_values); |
1056 | - } catch(PDOException $e) { |
|
1056 | + } catch (PDOException $e) { |
|
1057 | 1057 | echo "error : ".$e->getMessage(); |
1058 | 1058 | return array(); |
1059 | 1059 | } |
@@ -1063,10 +1063,10 @@ discard block |
||
1063 | 1063 | public function getAllNOTAMbyCoord($coord) { |
1064 | 1064 | global $globalDBdriver; |
1065 | 1065 | if (is_array($coord)) { |
1066 | - $minlong = filter_var($coord[0],FILTER_SANITIZE_NUMBER_FLOAT,FILTER_FLAG_ALLOW_FRACTION); |
|
1067 | - $minlat = filter_var($coord[1],FILTER_SANITIZE_NUMBER_FLOAT,FILTER_FLAG_ALLOW_FRACTION); |
|
1068 | - $maxlong = filter_var($coord[2],FILTER_SANITIZE_NUMBER_FLOAT,FILTER_FLAG_ALLOW_FRACTION); |
|
1069 | - $maxlat = filter_var($coord[3],FILTER_SANITIZE_NUMBER_FLOAT,FILTER_FLAG_ALLOW_FRACTION); |
|
1066 | + $minlong = filter_var($coord[0], FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION); |
|
1067 | + $minlat = filter_var($coord[1], FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION); |
|
1068 | + $maxlong = filter_var($coord[2], FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION); |
|
1069 | + $maxlat = filter_var($coord[3], FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION); |
|
1070 | 1070 | if ($minlat > $maxlat) { |
1071 | 1071 | $tmplat = $minlat; |
1072 | 1072 | $minlat = $maxlat; |
@@ -1087,20 +1087,20 @@ discard block |
||
1087 | 1087 | try { |
1088 | 1088 | $sth = $this->db->prepare($query); |
1089 | 1089 | $sth->execute($query_values); |
1090 | - } catch(PDOException $e) { |
|
1090 | + } catch (PDOException $e) { |
|
1091 | 1091 | echo "error : ".$e->getMessage(); |
1092 | 1092 | return array(); |
1093 | 1093 | } |
1094 | 1094 | $all = $sth->fetchAll(PDO::FETCH_ASSOC); |
1095 | 1095 | return $all; |
1096 | 1096 | } |
1097 | - public function getAllNOTAMbyCoordScope($coord,$scope) { |
|
1097 | + public function getAllNOTAMbyCoordScope($coord, $scope) { |
|
1098 | 1098 | global $globalDBdriver; |
1099 | 1099 | if (is_array($coord)) { |
1100 | - $minlong = filter_var($coord[0],FILTER_SANITIZE_NUMBER_FLOAT,FILTER_FLAG_ALLOW_FRACTION); |
|
1101 | - $minlat = filter_var($coord[1],FILTER_SANITIZE_NUMBER_FLOAT,FILTER_FLAG_ALLOW_FRACTION); |
|
1102 | - $maxlong = filter_var($coord[2],FILTER_SANITIZE_NUMBER_FLOAT,FILTER_FLAG_ALLOW_FRACTION); |
|
1103 | - $maxlat = filter_var($coord[3],FILTER_SANITIZE_NUMBER_FLOAT,FILTER_FLAG_ALLOW_FRACTION); |
|
1100 | + $minlong = filter_var($coord[0], FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION); |
|
1101 | + $minlat = filter_var($coord[1], FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION); |
|
1102 | + $maxlong = filter_var($coord[2], FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION); |
|
1103 | + $maxlat = filter_var($coord[3], FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION); |
|
1104 | 1104 | } else return array(); |
1105 | 1105 | if ($globalDBdriver == 'mysql') { |
1106 | 1106 | $query = 'SELECT * FROM notam WHERE center_latitude BETWEEN '.$minlat.' AND '.$maxlat.' AND center_longitude BETWEEN '.$minlong.' AND '.$maxlong.' AND radius > 0 AND date_end > UTC_TIMESTAMP() AND date_begin < UTC_TIMESTAMP() AND scope = :scope'; |
@@ -1111,7 +1111,7 @@ discard block |
||
1111 | 1111 | try { |
1112 | 1112 | $sth = $this->db->prepare($query); |
1113 | 1113 | $sth->execute($query_values); |
1114 | - } catch(PDOException $e) { |
|
1114 | + } catch (PDOException $e) { |
|
1115 | 1115 | echo "error : ".$e->getMessage(); |
1116 | 1116 | return array(); |
1117 | 1117 | } |
@@ -1124,7 +1124,7 @@ discard block |
||
1124 | 1124 | try { |
1125 | 1125 | $sth = $this->db->prepare($query); |
1126 | 1126 | $sth->execute($query_values); |
1127 | - } catch(PDOException $e) { |
|
1127 | + } catch (PDOException $e) { |
|
1128 | 1128 | return "error : ".$e->getMessage(); |
1129 | 1129 | } |
1130 | 1130 | $all = $sth->fetchAll(PDO::FETCH_ASSOC); |
@@ -1132,13 +1132,13 @@ discard block |
||
1132 | 1132 | else return array(); |
1133 | 1133 | } |
1134 | 1134 | |
1135 | - public function addNOTAM($ref,$title,$type,$fir,$code,$rules,$scope,$lower_limit,$upper_limit,$center_latitude,$center_longitude,$radius,$date_begin,$date_end,$permanent,$text,$full_notam) { |
|
1135 | + public function addNOTAM($ref, $title, $type, $fir, $code, $rules, $scope, $lower_limit, $upper_limit, $center_latitude, $center_longitude, $radius, $date_begin, $date_end, $permanent, $text, $full_notam) { |
|
1136 | 1136 | $query = "INSERT INTO notam (ref,title,notam_type,fir,code,rules,scope,lower_limit,upper_limit,center_latitude,center_longitude,radius,date_begin,date_end,permanent,notam_text,full_notam) VALUES (:ref,:title,:type,:fir,:code,:rules,:scope,:lower_limit,:upper_limit,:center_latitude,:center_longitude,:radius,:date_begin,:date_end,:permanent,:text,:full_notam)"; |
1137 | - $query_values = array(':ref' => $ref,':title' => $title,':type' => $type,':fir' => $fir,':code' => $code,':rules' => $rules,':scope' => $scope,':lower_limit' => $lower_limit,':upper_limit' => $upper_limit,':center_latitude' => $center_latitude,':center_longitude' => $center_longitude,':radius' => $radius,':date_begin' => $date_begin,':date_end' => $date_end,':permanent' => $permanent,':text' => $text,':full_notam' => $full_notam); |
|
1137 | + $query_values = array(':ref' => $ref, ':title' => $title, ':type' => $type, ':fir' => $fir, ':code' => $code, ':rules' => $rules, ':scope' => $scope, ':lower_limit' => $lower_limit, ':upper_limit' => $upper_limit, ':center_latitude' => $center_latitude, ':center_longitude' => $center_longitude, ':radius' => $radius, ':date_begin' => $date_begin, ':date_end' => $date_end, ':permanent' => $permanent, ':text' => $text, ':full_notam' => $full_notam); |
|
1138 | 1138 | try { |
1139 | 1139 | $sth = $this->db->prepare($query); |
1140 | 1140 | $sth->execute($query_values); |
1141 | - } catch(PDOException $e) { |
|
1141 | + } catch (PDOException $e) { |
|
1142 | 1142 | return "error : ".$e->getMessage(); |
1143 | 1143 | } |
1144 | 1144 | return ''; |
@@ -1150,7 +1150,7 @@ discard block |
||
1150 | 1150 | try { |
1151 | 1151 | $sth = $this->db->prepare($query); |
1152 | 1152 | $sth->execute($query_values); |
1153 | - } catch(PDOException $e) { |
|
1153 | + } catch (PDOException $e) { |
|
1154 | 1154 | return "error : ".$e->getMessage(); |
1155 | 1155 | } |
1156 | 1156 | return ''; |
@@ -1166,7 +1166,7 @@ discard block |
||
1166 | 1166 | try { |
1167 | 1167 | $sth = $this->db->prepare($query); |
1168 | 1168 | $sth->execute($query_values); |
1169 | - } catch(PDOException $e) { |
|
1169 | + } catch (PDOException $e) { |
|
1170 | 1170 | return "error : ".$e->getMessage(); |
1171 | 1171 | } |
1172 | 1172 | return ''; |
@@ -1177,7 +1177,7 @@ discard block |
||
1177 | 1177 | try { |
1178 | 1178 | $sth = $this->db->prepare($query); |
1179 | 1179 | $sth->execute($query_values); |
1180 | - } catch(PDOException $e) { |
|
1180 | + } catch (PDOException $e) { |
|
1181 | 1181 | return "error : ".$e->getMessage(); |
1182 | 1182 | } |
1183 | 1183 | return ''; |
@@ -1187,7 +1187,7 @@ discard block |
||
1187 | 1187 | try { |
1188 | 1188 | $sth = $this->db->prepare($query); |
1189 | 1189 | $sth->execute(); |
1190 | - } catch(PDOException $e) { |
|
1190 | + } catch (PDOException $e) { |
|
1191 | 1191 | return "error : ".$e->getMessage(); |
1192 | 1192 | } |
1193 | 1193 | return ''; |
@@ -1197,7 +1197,7 @@ discard block |
||
1197 | 1197 | try { |
1198 | 1198 | $sth = $this->db->prepare($query); |
1199 | 1199 | $sth->execute(); |
1200 | - } catch(PDOException $e) { |
|
1200 | + } catch (PDOException $e) { |
|
1201 | 1201 | return "error : ".$e->getMessage(); |
1202 | 1202 | } |
1203 | 1203 | return ''; |
@@ -1206,14 +1206,14 @@ discard block |
||
1206 | 1206 | public function updateNOTAM() { |
1207 | 1207 | global $globalNOTAMAirports; |
1208 | 1208 | if (isset($globalNOTAMAirports) && is_array($globalNOTAMAirports) && count($globalNOTAMAirports) > 0) { |
1209 | - foreach (array_chunk($globalNOTAMAirports,10) as $airport) { |
|
1210 | - $airport_icao = implode(',',$airport); |
|
1209 | + foreach (array_chunk($globalNOTAMAirports, 10) as $airport) { |
|
1210 | + $airport_icao = implode(',', $airport); |
|
1211 | 1211 | $alldata = $this->downloadNOTAM($airport_icao); |
1212 | 1212 | if (count($alldata) > 0) { |
1213 | 1213 | foreach ($alldata as $initial_data) { |
1214 | 1214 | $data = $this->parse($initial_data); |
1215 | 1215 | $notamref = $this->getNOTAMbyRef($data['ref']); |
1216 | - if (count($notamref) == 0) $this->addNOTAM($data['ref'],$data['title'],'',$data['fir'],$data['code'],'',$data['scope'],$data['lower_limit'],$data['upper_limit'],$data['latitude'],$data['longitude'],$data['radius'],$data['date_begin'],$data['date_end'],$data['permanent'],$data['text'],$data['full_notam']); |
|
1216 | + if (count($notamref) == 0) $this->addNOTAM($data['ref'], $data['title'], '', $data['fir'], $data['code'], '', $data['scope'], $data['lower_limit'], $data['upper_limit'], $data['latitude'], $data['longitude'], $data['radius'], $data['date_begin'], $data['date_end'], $data['permanent'], $data['text'], $data['full_notam']); |
|
1217 | 1217 | } |
1218 | 1218 | } |
1219 | 1219 | } |
@@ -1230,8 +1230,8 @@ discard block |
||
1230 | 1230 | $j++; |
1231 | 1231 | $data = $this->parse($initial_data); |
1232 | 1232 | $notamref = $this->getNOTAMbyRef($data['ref']); |
1233 | - if (!isset($notamref['notam_id'])) $this->addNOTAM($data['ref'],$data['title'],'',$data['fir'],$data['code'],'',$data['scope'],$data['lower_limit'],$data['upper_limit'],$data['latitude'],$data['longitude'],$data['radius'],$data['date_begin'],$data['date_end'],$data['permanent'],$data['text'],$data['full_notam']); |
|
1234 | - if ($globalTransaction && $j % 1000 == 0) { |
|
1233 | + if (!isset($notamref['notam_id'])) $this->addNOTAM($data['ref'], $data['title'], '', $data['fir'], $data['code'], '', $data['scope'], $data['lower_limit'], $data['upper_limit'], $data['latitude'], $data['longitude'], $data['radius'], $data['date_begin'], $data['date_end'], $data['permanent'], $data['text'], $data['full_notam']); |
|
1234 | + if ($globalTransaction && $j%1000 == 0) { |
|
1235 | 1235 | $this->db->commit(); |
1236 | 1236 | if ($globalDebug) echo '.'; |
1237 | 1237 | $this->db->beginTransaction(); |
@@ -1245,12 +1245,12 @@ discard block |
||
1245 | 1245 | global $globalTransaction; |
1246 | 1246 | $Spotter = new Spotter($this->db); |
1247 | 1247 | $allairports = $Spotter->getAllAirportInfo(); |
1248 | - foreach (array_chunk($allairports,20) as $airport) { |
|
1248 | + foreach (array_chunk($allairports, 20) as $airport) { |
|
1249 | 1249 | $airports_icao = array(); |
1250 | - foreach($airport as $icao) { |
|
1250 | + foreach ($airport as $icao) { |
|
1251 | 1251 | if (isset($icao['icao'])) $airports_icao[] = $icao['icao']; |
1252 | 1252 | } |
1253 | - $airport_icao = implode(',',$airports_icao); |
|
1253 | + $airport_icao = implode(',', $airports_icao); |
|
1254 | 1254 | $alldata = $this->downloadNOTAM($airport_icao); |
1255 | 1255 | if ($globalTransaction) $this->db->beginTransaction(); |
1256 | 1256 | if (count($alldata) > 0) { |
@@ -1263,7 +1263,7 @@ discard block |
||
1263 | 1263 | if (count($notamref) == 0) { |
1264 | 1264 | if (isset($data['ref_replaced'])) $this->deleteNOTAMbyRef($data['ref_replaced']); |
1265 | 1265 | if (isset($data['ref_cancelled'])) $this->deleteNOTAMbyRef($data['ref_cancelled']); |
1266 | - elseif (isset($data['latitude']) && isset($data['scope']) && isset($data['text']) && isset($data['permanent'])) echo $this->addNOTAM($data['ref'],'','',$data['fir'],$data['code'],'',$data['scope'],$data['lower_limit'],$data['upper_limit'],$data['latitude'],$data['longitude'],$data['radius'],$data['date_begin'],$data['date_end'],$data['permanent'],$data['text'],$data['full_notam']); |
|
1266 | + elseif (isset($data['latitude']) && isset($data['scope']) && isset($data['text']) && isset($data['permanent'])) echo $this->addNOTAM($data['ref'], '', '', $data['fir'], $data['code'], '', $data['scope'], $data['lower_limit'], $data['upper_limit'], $data['latitude'], $data['longitude'], $data['radius'], $data['date_begin'], $data['date_end'], $data['permanent'], $data['text'], $data['full_notam']); |
|
1267 | 1267 | } |
1268 | 1268 | } |
1269 | 1269 | } |
@@ -1277,7 +1277,7 @@ discard block |
||
1277 | 1277 | date_default_timezone_set("UTC"); |
1278 | 1278 | $Common = new Common(); |
1279 | 1279 | //$url = str_replace('{icao}',$icao,'https://pilotweb.nas.faa.gov/PilotWeb/notamRetrievalByICAOAction.do?method=displayByICAOs&reportType=RAW&formatType=DOMESTIC&retrieveLocId={icao}&actionType=notamRetrievalByICAOs'); |
1280 | - $url = str_replace('{icao}',$icao,'https://pilotweb.nas.faa.gov/PilotWeb/notamRetrievalByICAOAction.do?method=displayByICAOs&reportType=RAW&formatType=ICAO&retrieveLocId={icao}&actionType=notamRetrievalByICAOs'); |
|
1280 | + $url = str_replace('{icao}', $icao, 'https://pilotweb.nas.faa.gov/PilotWeb/notamRetrievalByICAOAction.do?method=displayByICAOs&reportType=RAW&formatType=ICAO&retrieveLocId={icao}&actionType=notamRetrievalByICAOs'); |
|
1281 | 1281 | $data = $Common->getData($url); |
1282 | 1282 | preg_match_all("/<pre>(.+?)<\/pre>/is", $data, $matches); |
1283 | 1283 | //print_r($matches); |
@@ -1294,8 +1294,8 @@ discard block |
||
1294 | 1294 | $result['permanent'] = ''; |
1295 | 1295 | $result['date_begin'] = NULL; |
1296 | 1296 | $result['date_end'] = NULL; |
1297 | - $data = str_ireplace(array("\r","\n",'\r','\n'),' ',$data); |
|
1298 | - $data = preg_split('#\s(?=([A-Z]\)\s))#',$data); |
|
1297 | + $data = str_ireplace(array("\r", "\n", '\r', '\n'), ' ', $data); |
|
1298 | + $data = preg_split('#\s(?=([A-Z]\)\s))#', $data); |
|
1299 | 1299 | $q = false; |
1300 | 1300 | $a = false; |
1301 | 1301 | $b = false; |
@@ -1303,9 +1303,9 @@ discard block |
||
1303 | 1303 | $e = false; |
1304 | 1304 | foreach ($data as $line) { |
1305 | 1305 | $line = trim($line); |
1306 | - if (preg_match('#(^|\s)Q\) (.*)#',$line,$matches) && $q === false) { |
|
1307 | - $line = str_replace(' ','',$line); |
|
1308 | - if (preg_match('#Q\)([A-Z]{3,4})\/([A-Z]{5})\/(IV|I|V)\/([A-Z]{1,3})\/([A-Z]{1,2})\/([0-9]{3})\/([0-9]{3})\/([0-9]{4})(N|S)([0-9]{5})(E|W)([0-9]{3}|)#',$line,$matches)) { |
|
1306 | + if (preg_match('#(^|\s)Q\) (.*)#', $line, $matches) && $q === false) { |
|
1307 | + $line = str_replace(' ', '', $line); |
|
1308 | + if (preg_match('#Q\)([A-Z]{3,4})\/([A-Z]{5})\/(IV|I|V)\/([A-Z]{1,3})\/([A-Z]{1,2})\/([0-9]{3})\/([0-9]{3})\/([0-9]{4})(N|S)([0-9]{5})(E|W)([0-9]{3}|)#', $line, $matches)) { |
|
1309 | 1309 | //if (preg_match('#Q\)([A-Z]{4})\/([A-Z]{5})\/(IV|I|V)\/([A-Z]{1,3})\/([A-Z]{1,2})\/([0-9]{3})\/([0-9]{3})\/([0-9]{4})(N|S)([0-9]{5})(E|W)([0-9]{3})#',$line,$matches)) { |
1310 | 1310 | $result['fir'] = $matches[1]; |
1311 | 1311 | $result['code'] = $matches[2]; |
@@ -1350,9 +1350,9 @@ discard block |
||
1350 | 1350 | elseif ($matches[5] == 'AW') $result['scope'] = 'Airport/Navigation warning'; |
1351 | 1351 | $result['lower_limit'] = $matches[6]; |
1352 | 1352 | $result['upper_limit'] = $matches[7]; |
1353 | - $latitude = $Common->convertDec($matches[8],'latitude'); |
|
1353 | + $latitude = $Common->convertDec($matches[8], 'latitude'); |
|
1354 | 1354 | if ($matches[9] == 'S') $latitude = -$latitude; |
1355 | - $longitude = $Common->convertDec($matches[10],'longitude'); |
|
1355 | + $longitude = $Common->convertDec($matches[10], 'longitude'); |
|
1356 | 1356 | if ($matches[11] == 'W') $longitude = -$longitude; |
1357 | 1357 | $result['latitude'] = $latitude; |
1358 | 1358 | $result['longitude'] = $longitude; |
@@ -1364,24 +1364,24 @@ discard block |
||
1364 | 1364 | echo "Can't parse : ".$line."\n"; |
1365 | 1365 | } |
1366 | 1366 | } |
1367 | - elseif (preg_match('#(^|\s)A\) (.*)#',$line,$matches) && $a === false) { |
|
1367 | + elseif (preg_match('#(^|\s)A\) (.*)#', $line, $matches) && $a === false) { |
|
1368 | 1368 | $result['icao'] = $matches[2]; |
1369 | 1369 | $a = true; |
1370 | 1370 | } |
1371 | - elseif (preg_match('#(^|\s)B\) ([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})#',$line,$matches) && $b === false) { |
|
1371 | + elseif (preg_match('#(^|\s)B\) ([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})#', $line, $matches) && $b === false) { |
|
1372 | 1372 | if ($matches[1] > 50) $year = '19'.$matches[2]; |
1373 | 1373 | else $year = '20'.$matches[2]; |
1374 | 1374 | $result['date_begin'] = $year.'/'.$matches[3].'/'.$matches[4].' '.$matches[5].':'.$matches[6]; |
1375 | 1375 | $b = true; |
1376 | 1376 | } |
1377 | - elseif (preg_match('#(^|\s)C\) ([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})$#',$line,$matches) && $c === false) { |
|
1377 | + elseif (preg_match('#(^|\s)C\) ([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})$#', $line, $matches) && $c === false) { |
|
1378 | 1378 | if ($matches[2] > 50) $year = '19'.$matches[2]; |
1379 | 1379 | else $year = '20'.$matches[2]; |
1380 | 1380 | $result['date_end'] = $year.'/'.$matches[3].'/'.$matches[4].' '.$matches[5].':'.$matches[6]; |
1381 | 1381 | $result['permanent'] = 0; |
1382 | 1382 | $c = true; |
1383 | 1383 | } |
1384 | - elseif (preg_match('#(^|\s)C\) ([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2}) (EST|PERM)$#',$line,$matches) && $c === false) { |
|
1384 | + elseif (preg_match('#(^|\s)C\) ([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2}) (EST|PERM)$#', $line, $matches) && $c === false) { |
|
1385 | 1385 | if ($matches[2] > 50) $year = '19'.$matches[2]; |
1386 | 1386 | else $year = '20'.$matches[2]; |
1387 | 1387 | $result['date_end'] = $year.'/'.$matches[3].'/'.$matches[4].' '.$matches[5].':'.$matches[6]; |
@@ -1391,7 +1391,7 @@ discard block |
||
1391 | 1391 | else $result['permanent'] = 0; |
1392 | 1392 | $c = true; |
1393 | 1393 | } |
1394 | - elseif (preg_match('#(^|\s)C\) (EST|PERM)$#',$line,$matches) && $c === false) { |
|
1394 | + elseif (preg_match('#(^|\s)C\) (EST|PERM)$#', $line, $matches) && $c === false) { |
|
1395 | 1395 | $result['date_end'] = '2030/12/20 12:00'; |
1396 | 1396 | if ($matches[2] == 'EST') $result['estimated'] = 1; |
1397 | 1397 | else $result['estimated'] = 0; |
@@ -1399,20 +1399,20 @@ discard block |
||
1399 | 1399 | else $result['permanent'] = 0; |
1400 | 1400 | $c = true; |
1401 | 1401 | } |
1402 | - elseif (preg_match('#(^|\s)E\) (.*)#',$line,$matches) && $e === false) { |
|
1402 | + elseif (preg_match('#(^|\s)E\) (.*)#', $line, $matches) && $e === false) { |
|
1403 | 1403 | $rtext = array(); |
1404 | - $text = explode(' ',$matches[2]); |
|
1404 | + $text = explode(' ', $matches[2]); |
|
1405 | 1405 | foreach ($text as $word) { |
1406 | 1406 | if (isset($this->abbr[$word])) $rtext[] = strtoupper($this->abbr[$word]); |
1407 | - elseif (ctype_digit(strval(substr($word,3))) && isset($this->abbr[substr($word,0,3)])) $rtext[] = strtoupper($this->abbr[substr($word,0,3)]).' '.substr($word,3); |
|
1407 | + elseif (ctype_digit(strval(substr($word, 3))) && isset($this->abbr[substr($word, 0, 3)])) $rtext[] = strtoupper($this->abbr[substr($word, 0, 3)]).' '.substr($word, 3); |
|
1408 | 1408 | else $rtext[] = $word; |
1409 | 1409 | } |
1410 | - $result['text'] = implode(' ',$rtext); |
|
1410 | + $result['text'] = implode(' ', $rtext); |
|
1411 | 1411 | $e = true; |
1412 | 1412 | //} elseif (preg_match('#F\) (.*)#',$line,$matches)) { |
1413 | 1413 | //} elseif (preg_match('#G\) (.*)#',$line,$matches)) { |
1414 | - } elseif (preg_match('#(NOTAMN|NOTAMR|NOTAMC)#',$line,$matches)) { |
|
1415 | - $text = explode(' ',$line); |
|
1414 | + } elseif (preg_match('#(NOTAMN|NOTAMR|NOTAMC)#', $line, $matches)) { |
|
1415 | + $text = explode(' ', $line); |
|
1416 | 1416 | $result['ref'] = $text[0]; |
1417 | 1417 | if ($matches[1] == 'NOTAMN') $result['type'] = 'new'; |
1418 | 1418 | if ($matches[1] == 'NOTAMC') { |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | date_default_timezone_set('UTC'); |
43 | 43 | //waypoint plotting |
44 | 44 | $output .= '{"type": "Feature",'; |
45 | - $output .= '"properties": {'; |
|
45 | + $output .= '"properties": {'; |
|
46 | 46 | $output .= '"ref": "'.$spotter_item['ref'].'",'; |
47 | 47 | $output .= '"title": "'.$spotter_item['title'].'",'; |
48 | 48 | $output .= '"fir": "'.$spotter_item['fir'].'",'; |
@@ -61,28 +61,28 @@ discard block |
||
61 | 61 | // $output .= '"photo": "'.$spotter_item['image_thumbnail'].'",'; |
62 | 62 | // if ($spotter_item['radius'] > 30) $spotter_item['radius'] = 30; |
63 | 63 | if ($spotter_item['scope'] == 'Airport warning') { |
64 | - $output .= '"color": "#EACC04",'; |
|
64 | + $output .= '"color": "#EACC04",'; |
|
65 | 65 | } elseif ($spotter_item['scope'] == 'Airport/Enroute warning') { |
66 | - $output .= '"color": "#EA7D00",'; |
|
66 | + $output .= '"color": "#EA7D00",'; |
|
67 | 67 | } elseif ($spotter_item['scope'] == 'Airport/Navigation warning') { |
68 | - $output .= '"color": "#DBEA00",'; |
|
68 | + $output .= '"color": "#DBEA00",'; |
|
69 | 69 | } elseif ($spotter_item['scope'] == 'Navigation warning') { |
70 | - $output .= '"color": "#BBEA00",'; |
|
70 | + $output .= '"color": "#BBEA00",'; |
|
71 | 71 | } else { |
72 | - $output .= '"color": "#FF0000",'; |
|
72 | + $output .= '"color": "#FF0000",'; |
|
73 | 73 | } |
74 | 74 | $radius = $spotter_item['radius']*1852; |
75 | 75 | $output .= '"radiusm": "'.$radius.'",'; |
76 | 76 | $output .= '"radiusnm": "'.$spotter_item['radius'].'",'; |
77 | 77 | if ($radius > 25000) $radius = 25000; |
78 | 78 | $output .= '"radius": '.$radius.''; |
79 | - $output .= '},'; |
|
80 | - $output .= '"geometry": {'; |
|
79 | + $output .= '},'; |
|
80 | + $output .= '"geometry": {'; |
|
81 | 81 | $output .= '"type": "Point",'; |
82 | 82 | $output .= '"coordinates": ['; |
83 | - $output .= $spotter_item['center_longitude'].', '.$spotter_item['center_latitude']; |
|
83 | + $output .= $spotter_item['center_longitude'].', '.$spotter_item['center_latitude']; |
|
84 | 84 | $output .= ']'; |
85 | - $output .= '}'; |
|
85 | + $output .= '}'; |
|
86 | 86 | $output .= '},'; |
87 | 87 | } |
88 | 88 | $output = substr($output, 0, -1); |
@@ -74,7 +74,9 @@ |
||
74 | 74 | $radius = $spotter_item['radius']*1852; |
75 | 75 | $output .= '"radiusm": "'.$radius.'",'; |
76 | 76 | $output .= '"radiusnm": "'.$spotter_item['radius'].'",'; |
77 | - if ($radius > 25000) $radius = 25000; |
|
77 | + if ($radius > 25000) { |
|
78 | + $radius = 25000; |
|
79 | + } |
|
78 | 80 | $output .= '"radius": '.$radius.''; |
79 | 81 | $output .= '},'; |
80 | 82 | $output .= '"geometry": {'; |
@@ -10,24 +10,24 @@ discard block |
||
10 | 10 | |
11 | 11 | if (isset($_GET['coord'])) |
12 | 12 | { |
13 | - $coords = explode(',',$_GET['coord']); |
|
13 | + $coords = explode(',', $_GET['coord']); |
|
14 | 14 | if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] != '' && $_COOKIE['notamscope'] != 'All') { |
15 | - $scope = filter_var($_COOKIE['notamscope'],FILTER_SANITIZE_STRING); |
|
16 | - $spotter_array = $NOTAM->getAllNOTAMbyCoordScope($coords,$scope); |
|
15 | + $scope = filter_var($_COOKIE['notamscope'], FILTER_SANITIZE_STRING); |
|
16 | + $spotter_array = $NOTAM->getAllNOTAMbyCoordScope($coords, $scope); |
|
17 | 17 | } elseif (isset($_GET['scope']) && $_GET['scope'] != '' && $_GET['scope'] != 'All') { |
18 | - $scope = filter_input(INPUT_GET,'scope',FILTER_SANITIZE_STRING); |
|
19 | - $spotter_array = $NOTAM->getAllNOTAMbyCoordScope($coords,$scope); |
|
18 | + $scope = filter_input(INPUT_GET, 'scope', FILTER_SANITIZE_STRING); |
|
19 | + $spotter_array = $NOTAM->getAllNOTAMbyCoordScope($coords, $scope); |
|
20 | 20 | } else { |
21 | 21 | $spotter_array = $NOTAM->getAllNOTAMbyCoord($coords); |
22 | 22 | } |
23 | 23 | // $spotter_array = $NOTAM->getAllNOTAM(); |
24 | 24 | } else { |
25 | 25 | if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] != '' && $_COOKIE['notamscope'] != 'All') { |
26 | - $scope = filter_var($_COOKIE['notamscope'],FILTER_SANITIZE_STRING); |
|
26 | + $scope = filter_var($_COOKIE['notamscope'], FILTER_SANITIZE_STRING); |
|
27 | 27 | $spotter_array = $NOTAM->getAllNOTAMbyScope($scope); |
28 | 28 | } elseif (isset($_GET['scope']) && $_GET['scope'] != '' && $_GET['scope'] != 'All') { |
29 | - $scope = filter_input(INPUT_GET,'scope',FILTER_SANITIZE_STRING); |
|
30 | - $spotter_array = $NOTAM->getAllNOTAMbyCoordScope($coords,$scope); |
|
29 | + $scope = filter_input(INPUT_GET, 'scope', FILTER_SANITIZE_STRING); |
|
30 | + $spotter_array = $NOTAM->getAllNOTAMbyCoordScope($coords, $scope); |
|
31 | 31 | } else { |
32 | 32 | $spotter_array = $NOTAM->getAllNOTAM(); |
33 | 33 | } |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | |
38 | 38 | if (!empty($spotter_array)) |
39 | 39 | { |
40 | - foreach($spotter_array as $spotter_item) |
|
40 | + foreach ($spotter_array as $spotter_item) |
|
41 | 41 | { |
42 | 42 | date_default_timezone_set('UTC'); |
43 | 43 | //waypoint plotting |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | $output .= '"ref": "'.$spotter_item['ref'].'",'; |
47 | 47 | $output .= '"title": "'.$spotter_item['title'].'",'; |
48 | 48 | $output .= '"fir": "'.$spotter_item['fir'].'",'; |
49 | - $output .= '"text": "'.str_replace(array("\r\n", "\r", "\n"),'<br />',str_replace(array('"',"\t"), '',$spotter_item['notam_text'])).'",'; |
|
49 | + $output .= '"text": "'.str_replace(array("\r\n", "\r", "\n"), '<br />', str_replace(array('"', "\t"), '', $spotter_item['notam_text'])).'",'; |
|
50 | 50 | $output .= '"latitude": '.$spotter_item['center_latitude'].','; |
51 | 51 | $output .= '"longitude": '.$spotter_item['center_longitude'].','; |
52 | 52 | $output .= '"lower_limit": '.$spotter_item['lower_limit'].','; |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | $output .= '}'; |
86 | 86 | $output .= '},'; |
87 | 87 | } |
88 | - $output = substr($output, 0, -1); |
|
88 | + $output = substr($output, 0, -1); |
|
89 | 89 | } |
90 | 90 | $output .= ']}'; |
91 | 91 |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | date_default_timezone_set('UTC'); |
27 | 27 | //waypoint plotting |
28 | 28 | $output .= '{"type": "Feature",'; |
29 | - $output .= '"properties": {'; |
|
29 | + $output .= '"properties": {'; |
|
30 | 30 | $output .= '"segment_name": "'.$spotter_item['segment_name'].'",'; |
31 | 31 | $output .= '"base": "'.$spotter_item['base'].'",'; |
32 | 32 | $output .= '"top": "'.$spotter_item['top'].'",'; |
@@ -49,15 +49,15 @@ discard block |
||
49 | 49 | $output .= '"stroke": "#f0f0f0",'; |
50 | 50 | $output .= '"stroke-width": 2'; |
51 | 51 | // } |
52 | - $output .= '},'; |
|
53 | - $output .= '"geometry": {'; |
|
52 | + $output .= '},'; |
|
53 | + $output .= '"geometry": {'; |
|
54 | 54 | $output .= '"type": "LineString",'; |
55 | 55 | $output .= '"coordinates": ['; |
56 | - //$output .= '['.$spotter_item['longitude_begin'].', '.$spotter_item['latitude_begin'].'], ['.$spotter_item['longitude_end'].', '.$spotter_item['latitude_end'].'], ['.$spotter_item['longitude_end_seg2'].', '.$spotter_item['latitude_end_seg2'].']'; |
|
57 | - $output .= '['.$spotter_item['longitude_begin'].', '.$spotter_item['latitude_begin'].','.round($spotter_item['base']*100*0.3048).'], ['.$spotter_item['longitude_end'].', '.$spotter_item['latitude_end'].','.round($spotter_item['base']*100*0.3048).']'; |
|
56 | + //$output .= '['.$spotter_item['longitude_begin'].', '.$spotter_item['latitude_begin'].'], ['.$spotter_item['longitude_end'].', '.$spotter_item['latitude_end'].'], ['.$spotter_item['longitude_end_seg2'].', '.$spotter_item['latitude_end_seg2'].']'; |
|
57 | + $output .= '['.$spotter_item['longitude_begin'].', '.$spotter_item['latitude_begin'].','.round($spotter_item['base']*100*0.3048).'], ['.$spotter_item['longitude_end'].', '.$spotter_item['latitude_end'].','.round($spotter_item['base']*100*0.3048).']'; |
|
58 | 58 | // $output .= '['.$spotter_item['latitude_begin'].', '.$spotter_item['longitude_begin'].'], ['.$spotter_item['latitude_end'].', '.$spotter_item['longitude_end'].']'; |
59 | 59 | $output .= ']'; |
60 | - $output .= '}'; |
|
60 | + $output .= '}'; |
|
61 | 61 | /* $output .= '"geometry": {'; |
62 | 62 | $output .= '"type": "Point",'; |
63 | 63 | $output .= '"coordinates": ['; |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | $output .= '},'; |
69 | 69 | //waypoint plotting |
70 | 70 | $output .= '{"type": "Feature",'; |
71 | - $output .= '"properties": {'; |
|
71 | + $output .= '"properties": {'; |
|
72 | 72 | $output .= '"ident": "'.$spotter_item['name_begin'].'",'; |
73 | 73 | $output .= '"high": "'.$spotter_item['high'].'",'; |
74 | 74 | $output .= '"alt": "'.$spotter_item['base'].'",'; |
@@ -98,17 +98,17 @@ discard block |
||
98 | 98 | $output .= '"marker-size": "small",'; |
99 | 99 | $output .= '"marker-color": "#0000ff"'; |
100 | 100 | } |
101 | - $output .= '},'; |
|
102 | - $output .= '"geometry": {'; |
|
101 | + $output .= '},'; |
|
102 | + $output .= '"geometry": {'; |
|
103 | 103 | $output .= '"type": "Point",'; |
104 | 104 | $output .= '"coordinates": ['; |
105 | - $output .= $spotter_item['longitude_begin'].', '.$spotter_item['latitude_begin'].', '.round($spotter_item['base']*100*0.3048);; |
|
105 | + $output .= $spotter_item['longitude_begin'].', '.$spotter_item['latitude_begin'].', '.round($spotter_item['base']*100*0.3048);; |
|
106 | 106 | $output .= ']'; |
107 | - $output .= '}'; |
|
107 | + $output .= '}'; |
|
108 | 108 | |
109 | 109 | $output .= '},'; |
110 | 110 | $output .= '{"type": "Feature",'; |
111 | - $output .= '"properties": {'; |
|
111 | + $output .= '"properties": {'; |
|
112 | 112 | $output .= '"ident": "'.$spotter_item['name_end'].'",'; |
113 | 113 | $output .= '"high": "'.$spotter_item['high'].'",'; |
114 | 114 | $output .= '"alt": "'.$spotter_item['top'].'",'; |
@@ -145,13 +145,13 @@ discard block |
||
145 | 145 | $output .= '"marker-size": "small",'; |
146 | 146 | $output .= '"marker-color": "#0000ff"'; |
147 | 147 | } |
148 | - $output .= '},'; |
|
149 | - $output .= '"geometry": {'; |
|
148 | + $output .= '},'; |
|
149 | + $output .= '"geometry": {'; |
|
150 | 150 | $output .= '"type": "Point",'; |
151 | 151 | $output .= '"coordinates": ['; |
152 | - $output .= $spotter_item['longitude_end'].', '.$spotter_item['latitude_end'].', '.round($spotter_item['base']*100*0.3048); |
|
152 | + $output .= $spotter_item['longitude_end'].', '.$spotter_item['latitude_end'].', '.round($spotter_item['base']*100*0.3048); |
|
153 | 153 | $output .= ']'; |
154 | - $output .= '}'; |
|
154 | + $output .= '}'; |
|
155 | 155 | |
156 | 156 | $output .= '},'; |
157 | 157 | } |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | |
11 | 11 | if (isset($_GET['coord'])) |
12 | 12 | { |
13 | - $coords = explode(',',$_GET['coord']); |
|
13 | + $coords = explode(',', $_GET['coord']); |
|
14 | 14 | $spotter_array = $Spotter->getAllWaypointsInfobyCoord($coords); |
15 | 15 | } else { |
16 | 16 | die; |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | if (!empty($spotter_array)) |
22 | 22 | { |
23 | 23 | // print_r($spotter_array); |
24 | - foreach($spotter_array as $spotter_item) |
|
24 | + foreach ($spotter_array as $spotter_item) |
|
25 | 25 | { |
26 | 26 | date_default_timezone_set('UTC'); |
27 | 27 | //waypoint plotting |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | $output .= '"geometry": {'; |
103 | 103 | $output .= '"type": "Point",'; |
104 | 104 | $output .= '"coordinates": ['; |
105 | - $output .= $spotter_item['longitude_begin'].', '.$spotter_item['latitude_begin'].', '.round($spotter_item['base']*100*0.3048);; |
|
105 | + $output .= $spotter_item['longitude_begin'].', '.$spotter_item['latitude_begin'].', '.round($spotter_item['base']*100*0.3048); ; |
|
106 | 106 | $output .= ']'; |
107 | 107 | $output .= '}'; |
108 | 108 |
@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | <button type="button" class="close">×</button> |
8 | 8 | <?php |
9 | 9 | |
10 | -$airspaceid = filter_input(INPUT_GET,'airspace',FILTER_SANITIZE_NUMBER_INT); |
|
10 | +$airspaceid = filter_input(INPUT_GET, 'airspace', FILTER_SANITIZE_NUMBER_INT); |
|
11 | 11 | //$notamref = urldecode($notamref); |
12 | 12 | if ($globalDBdriver == 'mysql') { |
13 | 13 | $query = "SELECT * FROM airspace WHERE ogr_fid = :id"; |
@@ -18,10 +18,10 @@ discard block |
||
18 | 18 | try { |
19 | 19 | $sth = $Connection->db->prepare($query); |
20 | 20 | $sth->execute(array(':id' => $airspaceid)); |
21 | -} catch(PDOException $e) { |
|
21 | +} catch (PDOException $e) { |
|
22 | 22 | echo "error"; |
23 | 23 | } |
24 | -$result=$sth->fetchAll(PDO::FETCH_ASSOC); |
|
24 | +$result = $sth->fetchAll(PDO::FETCH_ASSOC); |
|
25 | 25 | $airspace = $result[0]; |
26 | 26 | date_default_timezone_set('UTC'); |
27 | 27 | print '<div class="top">'; |
@@ -25,7 +25,9 @@ discard block |
||
25 | 25 | $airspace = $result[0]; |
26 | 26 | date_default_timezone_set('UTC'); |
27 | 27 | print '<div class="top">'; |
28 | -if (isset($airspace['name'])) $airspace['title'] = $airspace['name']; |
|
28 | +if (isset($airspace['name'])) { |
|
29 | + $airspace['title'] = $airspace['name']; |
|
30 | +} |
|
29 | 31 | print '<div class="right"><div class="callsign-details"><div class="callsign">'.$airspace['title'].'</a></div>'; |
30 | 32 | print '</div>'; |
31 | 33 | print '<div class="details">'; |
@@ -44,13 +46,17 @@ discard block |
||
44 | 46 | print '</div>'; |
45 | 47 | } |
46 | 48 | |
47 | -if (isset($airspace['ceiling'])) $airspace['tops'] = $airspace['ceiling']; |
|
49 | +if (isset($airspace['ceiling'])) { |
|
50 | + $airspace['tops'] = $airspace['ceiling']; |
|
51 | +} |
|
48 | 52 | print '<div>'; |
49 | 53 | print '<span>'._("Tops").'</span>'; |
50 | 54 | print $airspace['tops']; |
51 | 55 | print '</div>'; |
52 | 56 | |
53 | -if (isset($airspace['floor'])) $airspace['base'] = $airspace['floor']; |
|
57 | +if (isset($airspace['floor'])) { |
|
58 | + $airspace['base'] = $airspace['floor']; |
|
59 | +} |
|
54 | 60 | print '<div>'; |
55 | 61 | print '<span>'._("Base").'</span>'; |
56 | 62 | print $airspace['base']; |
@@ -11,27 +11,27 @@ |
||
11 | 11 | die(); |
12 | 12 | } |
13 | 13 | $query = 'select * from vam_live_flights rc, gvausers gu where gu.gvauser_id = rc.gvauser_id'; |
14 | -$json_data=array(); |
|
14 | +$json_data = array(); |
|
15 | 15 | $result = $db->query($query); |
16 | 16 | while ($rec = $result->fetch_assoc()) |
17 | 17 | { |
18 | - $json_array['gvauser_id']=$rec['gvauser_id']; // users "pilot unique ID" "40" |
|
19 | - $json_array['flight_id']=$rec['flight_id']; // flight_id |
|
20 | - $json_array['pilot_id']=$rec['callsign']; // users pilot_id "VAM500" |
|
21 | - $json_array['callsign']=substr($rec['flight_id'],-7); // substr icao Flight "AFR524" |
|
22 | - $json_array['pilot_name']=$rec['name'] .' '.$rec['surname'] ; // Users "name + surname" |
|
23 | - $json_array['plane_type']=$rec['plane_type']; // type Plane "B739" |
|
24 | - $json_array['departure']=$rec['departure']; // departure ICAO |
|
25 | - $json_array['arrival']=$rec['arrival']; // arrival Ident |
|
26 | - $json_array['latitude']=$rec['latitude']; // return 55.7328860921521 |
|
27 | - $json_array['longitude']=$rec['longitude']; // return 8.87433614409404 |
|
28 | - $json_array['altitude']=$rec['altitude']; // return "147" |
|
29 | - $json_array['heading']=$rec['heading']; // return "307" |
|
30 | - $json_array['ias']=$rec['ias']; // return speed "IAS" |
|
31 | - $json_array['gs']=$rec['gs']; // return speed "GS" |
|
18 | + $json_array['gvauser_id'] = $rec['gvauser_id']; // users "pilot unique ID" "40" |
|
19 | + $json_array['flight_id'] = $rec['flight_id']; // flight_id |
|
20 | + $json_array['pilot_id'] = $rec['callsign']; // users pilot_id "VAM500" |
|
21 | + $json_array['callsign'] = substr($rec['flight_id'], -7); // substr icao Flight "AFR524" |
|
22 | + $json_array['pilot_name'] = $rec['name'].' '.$rec['surname']; // Users "name + surname" |
|
23 | + $json_array['plane_type'] = $rec['plane_type']; // type Plane "B739" |
|
24 | + $json_array['departure'] = $rec['departure']; // departure ICAO |
|
25 | + $json_array['arrival'] = $rec['arrival']; // arrival Ident |
|
26 | + $json_array['latitude'] = $rec['latitude']; // return 55.7328860921521 |
|
27 | + $json_array['longitude'] = $rec['longitude']; // return 8.87433614409404 |
|
28 | + $json_array['altitude'] = $rec['altitude']; // return "147" |
|
29 | + $json_array['heading'] = $rec['heading']; // return "307" |
|
30 | + $json_array['ias'] = $rec['ias']; // return speed "IAS" |
|
31 | + $json_array['gs'] = $rec['gs']; // return speed "GS" |
|
32 | 32 | // $json_array['routes']=$rec['routes']; // (unusable) |
33 | - $json_array['flight_status']=$rec['flight_status']; // "return Status" |
|
34 | - $json_array['last_update']=$rec['last_update']; // return "DateTime" |
|
33 | + $json_array['flight_status'] = $rec['flight_status']; // "return Status" |
|
34 | + $json_array['last_update'] = $rec['last_update']; // return "DateTime" |
|
35 | 35 | $json_data[] = $json_array; |
36 | 36 | } |
37 | 37 | echo json_encode($json_data); |
@@ -24,7 +24,9 @@ |
||
24 | 24 | print '<option></option>'; |
25 | 25 | $Stats = new Stats(); |
26 | 26 | $aircraft_types = $Stats->getAllAircraftTypes(); |
27 | - if (empty($aircraft_types)) $aircraft_types = $Spotter->getAllAircraftTypes(); |
|
27 | + if (empty($aircraft_types)) { |
|
28 | + $aircraft_types = $Spotter->getAllAircraftTypes(); |
|
29 | + } |
|
28 | 30 | foreach($aircraft_types as $aircrafttype) |
29 | 31 | { |
30 | 32 | if($aircraft_type == $aircrafttype['aircraft_icao']) |
@@ -9,13 +9,13 @@ discard block |
||
9 | 9 | header('Location: '.$globalURL.'/aircraft'); |
10 | 10 | die(); |
11 | 11 | } |
12 | -$aircraft_type = filter_input(INPUT_GET,'aircraft_type',FILTER_SANITIZE_STRING); |
|
13 | -$spotter_array = $Spotter->getSpotterDataByAircraft($aircraft_type,"0,1",""); |
|
12 | +$aircraft_type = filter_input(INPUT_GET, 'aircraft_type', FILTER_SANITIZE_STRING); |
|
13 | +$spotter_array = $Spotter->getSpotterDataByAircraft($aircraft_type, "0,1", ""); |
|
14 | 14 | |
15 | 15 | |
16 | 16 | if (!empty($spotter_array)) |
17 | 17 | { |
18 | - $title = sprintf(_("Most Common Airlines by Country from %s (%s)"),$spotter_array[0]['aircraft_name'],$spotter_array[0]['aircraft_type']); |
|
18 | + $title = sprintf(_("Most Common Airlines by Country from %s (%s)"), $spotter_array[0]['aircraft_name'], $spotter_array[0]['aircraft_type']); |
|
19 | 19 | require_once('header.php'); |
20 | 20 | |
21 | 21 | print '<div class="select-item">'; |
@@ -25,9 +25,9 @@ discard block |
||
25 | 25 | $Stats = new Stats(); |
26 | 26 | $aircraft_types = $Stats->getAllAircraftTypes(); |
27 | 27 | if (empty($aircraft_types)) $aircraft_types = $Spotter->getAllAircraftTypes(); |
28 | - foreach($aircraft_types as $aircrafttype) |
|
28 | + foreach ($aircraft_types as $aircrafttype) |
|
29 | 29 | { |
30 | - if($aircraft_type == $aircrafttype['aircraft_icao']) |
|
30 | + if ($aircraft_type == $aircrafttype['aircraft_icao']) |
|
31 | 31 | { |
32 | 32 | print '<option value="'.$aircrafttype['aircraft_icao'].'" selected="selected">'.$aircrafttype['aircraft_name'].' ('.$aircrafttype['aircraft_icao'].')</option>'; |
33 | 33 | } else { |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | include('aircraft-sub-menu.php'); |
54 | 54 | print '<div class="column">'; |
55 | 55 | print '<h2>'._("Most Common Airlines by Country").'</h2>'; |
56 | - print '<p>'.sprintf(_("The statistic below shows the most common airlines by Country of origin of flights from <strong>%s (%s)</strong>."),$spotter_array[0]['aircraft_name'],$spotter_array[0]['aircraft_type']).'</p>'; |
|
56 | + print '<p>'.sprintf(_("The statistic below shows the most common airlines by Country of origin of flights from <strong>%s (%s)</strong>."), $spotter_array[0]['aircraft_name'], $spotter_array[0]['aircraft_type']).'</p>'; |
|
57 | 57 | |
58 | 58 | $airline_array = $Spotter->countAllAirlineCountriesByAircraft($aircraft_type); |
59 | 59 | print '<script type="text/javascript" src="'.$globalURL.'/js/d3.min.js"></script>'; |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | print '<div id="chartCountry" class="chart" width="100%"></div><script>'; |
63 | 63 | print 'var series = ['; |
64 | 64 | $country_data = ''; |
65 | - foreach($airline_array as $airline_item) |
|
65 | + foreach ($airline_array as $airline_item) |
|
66 | 66 | { |
67 | 67 | $country_data .= '[ "'.$airline_item['airline_country_iso3'].'",'.$airline_item['airline_country_count'].'],'; |
68 | 68 | } |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | print '</thead>'; |
110 | 110 | print '<tbody>'; |
111 | 111 | $i = 1; |
112 | - foreach($airline_array as $airline_item) |
|
112 | + foreach ($airline_array as $airline_item) |
|
113 | 113 | { |
114 | 114 | print '<tr>'; |
115 | 115 | print '<td><strong>'.$i.'</strong></td>'; |
@@ -21,18 +21,18 @@ discard block |
||
21 | 21 | print '<div class="select-item">'; |
22 | 22 | print '<form action="'.$globalURL.'/aircraft" method="get">'; |
23 | 23 | print '<select name="aircraft_type" class="selectpicker" data-live-search="true">'; |
24 | - print '<option></option>'; |
|
25 | - $Stats = new Stats(); |
|
26 | - $aircraft_types = $Stats->getAllAircraftTypes(); |
|
27 | - if (empty($aircraft_types)) $aircraft_types = $Spotter->getAllAircraftTypes(); |
|
28 | - foreach($aircraft_types as $aircrafttype) |
|
29 | - { |
|
30 | - if($aircraft_type == $aircrafttype['aircraft_icao']) |
|
31 | - { |
|
32 | - print '<option value="'.$aircrafttype['aircraft_icao'].'" selected="selected">'.$aircrafttype['aircraft_name'].' ('.$aircrafttype['aircraft_icao'].')</option>'; |
|
33 | - } else { |
|
34 | - print '<option value="'.$aircrafttype['aircraft_icao'].'">'.$aircrafttype['aircraft_name'].' ('.$aircrafttype['aircraft_icao'].')</option>'; |
|
35 | - } |
|
24 | + print '<option></option>'; |
|
25 | + $Stats = new Stats(); |
|
26 | + $aircraft_types = $Stats->getAllAircraftTypes(); |
|
27 | + if (empty($aircraft_types)) $aircraft_types = $Spotter->getAllAircraftTypes(); |
|
28 | + foreach($aircraft_types as $aircrafttype) |
|
29 | + { |
|
30 | + if($aircraft_type == $aircrafttype['aircraft_icao']) |
|
31 | + { |
|
32 | + print '<option value="'.$aircrafttype['aircraft_icao'].'" selected="selected">'.$aircrafttype['aircraft_name'].' ('.$aircrafttype['aircraft_icao'].')</option>'; |
|
33 | + } else { |
|
34 | + print '<option value="'.$aircrafttype['aircraft_icao'].'">'.$aircrafttype['aircraft_name'].' ('.$aircrafttype['aircraft_icao'].')</option>'; |
|
35 | + } |
|
36 | 36 | } |
37 | 37 | print '</select>'; |
38 | 38 | print '<button type="submit"><i class="fa fa-angle-double-right"></i></button>'; |
@@ -61,18 +61,18 @@ discard block |
||
61 | 61 | print '<script type="text/javascript" src="'.$globalURL.'/js/datamaps.world.min.js"></script>'; |
62 | 62 | print '<div id="chartCountry" class="chart" width="100%"></div><script>'; |
63 | 63 | print 'var series = ['; |
64 | - $country_data = ''; |
|
64 | + $country_data = ''; |
|
65 | 65 | foreach($airline_array as $airline_item) |
66 | 66 | { |
67 | 67 | $country_data .= '[ "'.$airline_item['airline_country_iso3'].'",'.$airline_item['airline_country_count'].'],'; |
68 | 68 | } |
69 | - $country_data = substr($country_data, 0, -1); |
|
70 | - print $country_data; |
|
71 | - print '];'; |
|
72 | - print 'var dataset = {};var onlyValues = series.map(function(obj){ return obj[1]; });var minValue = Math.min.apply(null, onlyValues), maxValue = Math.max.apply(null, onlyValues);'; |
|
73 | - print 'var paletteScale = d3.scale.log().domain([minValue,maxValue]).range(["#EFEFFF","#001830"]);'; |
|
74 | - print 'series.forEach(function(item){var iso = item[0], value = item[1]; dataset[iso] = { numberOfThings: value, fillColor: paletteScale(value) };});'; |
|
75 | - print 'new Datamap({ |
|
69 | + $country_data = substr($country_data, 0, -1); |
|
70 | + print $country_data; |
|
71 | + print '];'; |
|
72 | + print 'var dataset = {};var onlyValues = series.map(function(obj){ return obj[1]; });var minValue = Math.min.apply(null, onlyValues), maxValue = Math.max.apply(null, onlyValues);'; |
|
73 | + print 'var paletteScale = d3.scale.log().domain([minValue,maxValue]).range(["#EFEFFF","#001830"]);'; |
|
74 | + print 'series.forEach(function(item){var iso = item[0], value = item[1]; dataset[iso] = { numberOfThings: value, fillColor: paletteScale(value) };});'; |
|
75 | + print 'new Datamap({ |
|
76 | 76 | element: document.getElementById("chartCountry"), |
77 | 77 | projection: "mercator", // big world map |
78 | 78 | fills: { defaultFill: "#F5F5F5" }, |
@@ -23,7 +23,9 @@ |
||
23 | 23 | print '<option></option>'; |
24 | 24 | $Stats = new Stats(); |
25 | 25 | $aircraft_types = $Stats->getAllAircraftTypes(); |
26 | - if (empty($aircraft_types)) $aircraft_types = $Spotter->getAllAircraftTypes(); |
|
26 | + if (empty($aircraft_types)) { |
|
27 | + $aircraft_types = $Spotter->getAllAircraftTypes(); |
|
28 | + } |
|
27 | 29 | foreach($aircraft_types as $aircrafttype) |
28 | 30 | { |
29 | 31 | if($aircraft_type == $aircrafttype['aircraft_icao']) |
@@ -8,14 +8,14 @@ discard block |
||
8 | 8 | header('Location: '.$globalURL.'/aircraft'); |
9 | 9 | die(); |
10 | 10 | } |
11 | -$aircraft_type = filter_input(INPUT_GET,'aircraft_type',FILTER_SANITIZE_STRING); |
|
11 | +$aircraft_type = filter_input(INPUT_GET, 'aircraft_type', FILTER_SANITIZE_STRING); |
|
12 | 12 | $Spotter = new Spotter(); |
13 | -$spotter_array = $Spotter->getSpotterDataByAircraft($aircraft_type,"0,1",""); |
|
13 | +$spotter_array = $Spotter->getSpotterDataByAircraft($aircraft_type, "0,1", ""); |
|
14 | 14 | |
15 | 15 | |
16 | 16 | if (!empty($spotter_array)) |
17 | 17 | { |
18 | - $title = sprintf(_("Most Common Airlines from %s (%s)"),$spotter_array[0]['aircraft_name'],$spotter_array[0]['aircraft_type']); |
|
18 | + $title = sprintf(_("Most Common Airlines from %s (%s)"), $spotter_array[0]['aircraft_name'], $spotter_array[0]['aircraft_type']); |
|
19 | 19 | require_once('header.php'); |
20 | 20 | print '<div class="select-item">'; |
21 | 21 | print '<form action="'.$globalURL.'/aircraft" method="get">'; |
@@ -24,9 +24,9 @@ discard block |
||
24 | 24 | $Stats = new Stats(); |
25 | 25 | $aircraft_types = $Stats->getAllAircraftTypes(); |
26 | 26 | if (empty($aircraft_types)) $aircraft_types = $Spotter->getAllAircraftTypes(); |
27 | - foreach($aircraft_types as $aircrafttype) |
|
27 | + foreach ($aircraft_types as $aircrafttype) |
|
28 | 28 | { |
29 | - if($aircraft_type == $aircrafttype['aircraft_icao']) |
|
29 | + if ($aircraft_type == $aircrafttype['aircraft_icao']) |
|
30 | 30 | { |
31 | 31 | print '<option value="'.$aircrafttype['aircraft_icao'].'" selected="selected">'.$aircrafttype['aircraft_name'].' ('.$aircrafttype['aircraft_icao'].')</option>'; |
32 | 32 | } else { |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | include('aircraft-sub-menu.php'); |
53 | 53 | print '<div class="column">'; |
54 | 54 | print '<h2>'._("Most Common Airlines").'</h2>'; |
55 | - print '<p>'.sprintf(_("The statistic below shows the most common airlines of flights from <strong>%s (%s)</strong>."),$spotter_array[0]['aircraft_name'],$spotter_array[0]['aircraft_type']).'</p>'; |
|
55 | + print '<p>'.sprintf(_("The statistic below shows the most common airlines of flights from <strong>%s (%s)</strong>."), $spotter_array[0]['aircraft_name'], $spotter_array[0]['aircraft_type']).'</p>'; |
|
56 | 56 | |
57 | 57 | $airline_array = $Spotter->countAllAirlinesByAircraft($aircraft_type); |
58 | 58 | |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | print '</thead>'; |
71 | 71 | print '<tbody>'; |
72 | 72 | $i = 1; |
73 | - foreach($airline_array as $airline_item) |
|
73 | + foreach ($airline_array as $airline_item) |
|
74 | 74 | { |
75 | 75 | print '<tr>'; |
76 | 76 | print '<td><strong>'.$i.'</strong></td>'; |