-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathswim.php
More file actions
833 lines (782 loc) · 29.1 KB
/
swim.php
File metadata and controls
833 lines (782 loc) · 29.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
<?php
/**
* VATSWIM API - Reference & Announcement Page
*
* Landing page for the SWIM (System Wide Information Management) API.
* Includes release announcement, capabilities overview, getting started guide,
* and use case documentation by role.
*
* @package PERTI
* @subpackage SWIM
* @version 1.0.0
*/
/**
* OPTIMIZED: Public page - no DB needed
*/
include("sessions/handler.php");
include("load/config.php");
include("load/i18n.php");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php
$page_title = __('swim.pageTitle');
include("load/header.php");
?>
<style>
/* SWIM Reference Page - Technical/Functional Styling */
/* Section styling */
.section-header {
margin-bottom: 30px;
}
.section-header h2 {
color: #1a1a2e;
font-weight: 600;
margin-bottom: 8px;
font-size: 1.5rem;
}
.section-header p {
color: #6c757d;
font-size: 0.95rem;
}
.section-divider {
border-top: 1px solid #dee2e6;
margin: 40px 0;
}
/* Feature cards - simpler */
.feature-card {
background: #fff;
border: 1px solid #dee2e6;
border-radius: 6px;
padding: 20px;
height: 100%;
}
.feature-card h5 {
color: #1a1a2e;
font-weight: 600;
font-size: 1rem;
margin-bottom: 8px;
}
.feature-card h5 i {
color: #5dade2;
margin-right: 8px;
}
.feature-card p {
color: #6c757d;
font-size: 0.85rem;
margin-bottom: 0;
}
/* Getting started cards */
.getting-started-step {
background: #f8f9fa;
border: 1px solid #dee2e6;
border-radius: 6px;
padding: 20px;
height: 100%;
}
.step-number {
display: inline-block;
width: 28px;
height: 28px;
background: #5dade2;
border-radius: 50%;
text-align: center;
line-height: 28px;
font-weight: 600;
color: #fff;
font-size: 0.9rem;
margin-bottom: 12px;
}
.getting-started-step h5 {
color: #1a1a2e;
font-weight: 600;
font-size: 1rem;
margin-bottom: 10px;
}
.getting-started-step p {
color: #6c757d;
font-size: 0.85rem;
}
/* Code blocks - dark terminal style */
.code-block {
background: #1a1a2e !important;
border: 1px solid #333 !important;
border-radius: 4px;
padding: 15px;
overflow-x: auto;
margin: 12px 0;
}
.code-block pre {
margin: 0;
background: transparent !important;
color: #e0e0e0 !important;
font-family: 'Inconsolata', 'Courier New', monospace;
font-size: 0.8rem;
line-height: 1.4;
}
.code-block .keyword { color: #c792ea; }
.code-block .string { color: #c3e88d; }
.code-block .comment { color: #6a9955; }
.code-block .variable { color: #f07178; }
.code-block .function { color: #82aaff; }
/* Use case tabs - simpler */
.use-case-tabs .nav-link {
color: #495057;
border: 1px solid #dee2e6;
border-bottom: none;
padding: 10px 18px;
font-weight: 500;
font-size: 0.9rem;
border-radius: 4px 4px 0 0;
background: #f8f9fa;
margin-right: 2px;
}
.use-case-tabs .nav-link:hover {
color: #5dade2;
background: #e9ecef;
}
.use-case-tabs .nav-link.active {
color: #fff;
background: #5dade2;
border-color: #5dade2;
}
.use-case-content {
background: #fff;
border: 1px solid #dee2e6;
border-radius: 0 4px 4px 4px;
padding: 25px;
}
.use-case-content h5 {
color: #1a1a2e;
font-weight: 600;
font-size: 0.95rem;
margin-bottom: 12px;
}
.use-case-content ul {
padding-left: 20px;
margin-bottom: 0;
}
.use-case-content li {
margin-bottom: 6px;
color: #495057;
font-size: 0.9rem;
}
/* Endpoint table - TBFM style */
.endpoint-table {
background: #fff;
border: 1px solid #dee2e6;
border-radius: 4px;
overflow: hidden;
}
.endpoint-table th {
background: linear-gradient(180deg, #3a4a5c 0%, #2c3e50 100%);
color: #fff;
font-weight: 600;
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.03em;
padding: 10px 12px;
}
.endpoint-table td {
padding: 10px 12px;
border-bottom: 1px solid #e9ecef;
vertical-align: middle;
font-size: 0.9rem;
}
.endpoint-table code {
background: #e9ecef;
color: #1a1a2e;
padding: 2px 6px;
border-radius: 3px;
font-size: 0.8rem;
}
.method-badge {
display: inline-block;
padding: 3px 8px;
border-radius: 3px;
font-size: 0.7rem;
font-weight: 600;
text-transform: uppercase;
}
.method-get { background: #5dade2; color: #fff; }
.method-post { background: #28a745; color: #fff; }
/* Tier comparison table */
.tier-table {
width: 100%;
background: #fff;
border: 1px solid #dee2e6;
border-radius: 4px;
overflow: hidden;
}
.tier-table th, .tier-table td {
padding: 10px 12px;
text-align: center;
border-bottom: 1px solid #e9ecef;
font-size: 0.85rem;
}
.tier-table thead th {
background: #f8f9fa;
font-weight: 600;
color: #1a1a2e;
}
.tier-table th:first-child, .tier-table td:first-child {
text-align: left;
}
.tier-header {
padding: 4px 10px;
border-radius: 3px;
font-weight: 600;
font-size: 0.75rem;
}
.tier-public { background: #d4edda; color: #155724; }
.tier-developer { background: #cce5ff; color: #004085; }
.tier-partner { background: #fff3cd; color: #856404; }
.tier-system { background: #f8d7da; color: #721c24; }
/* SDK cards - mark as coming soon */
.sdk-card {
background: #f8f9fa;
border: 1px solid #dee2e6;
border-radius: 4px;
padding: 15px;
text-align: center;
opacity: 0.6;
}
.sdk-card i {
font-size: 2rem;
margin-bottom: 8px;
color: #6c757d;
}
.sdk-card h6 {
color: #495057;
font-weight: 600;
font-size: 0.9rem;
margin-bottom: 4px;
}
.sdk-card small {
color: #6c757d;
font-size: 0.75rem;
}
/* CTA section */
.cta-section {
background: #252540;
border-radius: 6px;
padding: 35px 30px;
text-align: center;
color: #fff;
}
.cta-section h3 {
font-weight: 600;
font-size: 1.3rem;
margin-bottom: 10px;
}
.cta-section p {
color: #b0bec5;
font-size: 0.95rem;
margin-bottom: 20px;
}
.cta-section .btn {
padding: 10px 25px;
font-weight: 500;
border-radius: 4px;
margin: 4px;
}
/* Resources grid */
.resource-link {
display: flex;
align-items: center;
background: #f8f9fa;
border: 1px solid #dee2e6;
border-radius: 4px;
padding: 15px;
text-decoration: none;
color: #1a1a2e;
height: 100%;
}
.resource-link:hover {
background: #e9ecef;
text-decoration: none;
color: #1a1a2e;
border-color: #5dade2;
}
.resource-link i {
font-size: 1.3rem;
color: #5dade2;
margin-right: 12px;
width: 30px;
text-align: center;
}
.resource-link span {
font-weight: 500;
font-size: 0.9rem;
}
.resource-link small {
display: block;
color: #6c757d;
font-size: 0.75rem;
}
/* Responsive adjustments */
@media (max-width: 768px) {
.feature-card, .getting-started-step {
margin-bottom: 15px;
}
}
</style>
</head>
<body>
<?php include('load/nav_public.php'); ?>
<!-- Hero Section -->
<section class="perti-hero perti-hero--dark-tool" data-jarallax data-speed="0.3">
<div class="container-fluid pt-2 pb-4 py-lg-5">
<img class="jarallax-img" src="assets/img/jumbotron/main.png" alt="" style="opacity: 50%;">
<center>
<h1><i class="fas fa-database mr-2"></i><?= __('swim.page.title') ?></h1>
<h4 class="text-white pl-1"><?= __('swim.page.subtitle') ?></h4>
<p class="text-muted mb-3"><?= __('swim.page.version') ?> • <?= __('swim.page.productionReady') ?></p>
<div>
<a href="swim-keys" class="btn btn-success mr-2">
<i class="fas fa-key mr-1"></i><?= __('swim.page.getApiKey') ?>
</a>
<a href="docs/swim/" class="btn btn-outline-light" target="_blank">
<i class="fas fa-book mr-1"></i><?= __('swim.page.documentation') ?>
</a>
</div>
</center>
</div>
</section>
<!-- Main Content -->
<div class="container py-4">
<!-- What is SWIM Section -->
<div class="section-header">
<h2><?= __('swim.page.whatIsSwim') ?></h2>
<p><?= __('swim.page.whatIsSwimDesc') ?></p>
</div>
<div class="row mb-4">
<div class="col-md-6 col-lg-3 mb-3">
<div class="feature-card">
<h5><i class="fas fa-bolt"></i><?= __('swim.page.restApi') ?></h5>
<p><?= __('swim.page.restApiDesc') ?></p>
</div>
</div>
<div class="col-md-6 col-lg-3 mb-3">
<div class="feature-card">
<h5><i class="fas fa-broadcast-tower"></i><?= __('swim.page.webSocket') ?></h5>
<p><?= __('swim.page.webSocketDesc') ?></p>
</div>
</div>
<div class="col-md-6 col-lg-3 mb-3">
<div class="feature-card">
<h5><i class="fas fa-map-marked-alt"></i><?= __('swim.page.geoJson') ?></h5>
<p><?= __('swim.page.geoJsonDesc') ?></p>
</div>
</div>
<div class="col-md-6 col-lg-3 mb-3">
<div class="feature-card">
<h5><i class="fas fa-traffic-light"></i><?= __('swim.page.tmiData') ?></h5>
<p><?= __('swim.page.tmiDataDesc') ?></p>
</div>
</div>
</div>
<div class="section-divider"></div>
<!-- Getting Started Section -->
<div class="section-header">
<h2><?= __('swim.page.gettingStarted') ?></h2>
<p><?= __('swim.page.gettingStartedDesc') ?></p>
</div>
<div class="row mb-4">
<div class="col-md-4 mb-3">
<div class="getting-started-step">
<div class="step-number">1</div>
<h5><?= __('swim.page.step1Title') ?></h5>
<p><?= __('swim.page.step1Desc') ?></p>
</div>
</div>
<div class="col-md-4 mb-3">
<div class="getting-started-step">
<div class="step-number">2</div>
<h5><?= __('swim.page.step2Title') ?></h5>
<p><?= __('swim.page.step2Desc') ?></p>
<div class="code-block">
<pre><span class="keyword">curl</span> -H <span class="string">"Authorization: Bearer YOUR_KEY"</span> \
https://perti.vatcscc.org/api/swim/v1/flights</pre>
</div>
</div>
</div>
<div class="col-md-4 mb-3">
<div class="getting-started-step">
<div class="step-number">3</div>
<h5><?= __('swim.page.step3Title') ?></h5>
<p><?= __('swim.page.step3Desc') ?></p>
</div>
</div>
</div>
<div class="section-divider"></div>
<!-- API Access Tiers -->
<div class="section-header">
<h2><?= __('swim.page.accessTiers') ?></h2>
<p><?= __('swim.page.accessTiersDesc') ?></p>
</div>
<div class="table-responsive mb-5">
<table class="tier-table">
<thead>
<tr>
<th><?= __('swim.page.feature') ?></th>
<th><span class="tier-header tier-public"><?= __('swim.page.public') ?></span></th>
<th><span class="tier-header tier-developer"><?= __('swim.page.developer') ?></span></th>
<th><span class="tier-header tier-partner"><?= __('swim.page.partner') ?></span></th>
<th><span class="tier-header tier-system"><?= __('swim.page.system') ?></span></th>
</tr>
</thead>
<tbody>
<tr>
<td><strong><?= __('swim.page.rateLimit') ?></strong></td>
<td>100 req/min</td>
<td>300 req/min</td>
<td>3,000 req/min</td>
<td>30,000 req/min</td>
</tr>
<tr>
<td><strong><?= __('swim.page.webSocketConnections') ?></strong></td>
<td>5</td>
<td>50</td>
<td>500</td>
<td>10,000</td>
</tr>
<tr>
<td><strong><?= __('swim.page.writeAccess') ?></strong></td>
<td><i class="fas fa-times text-danger"></i></td>
<td><i class="fas fa-times text-danger"></i></td>
<td><i class="fas fa-check text-warning"></i> Limited</td>
<td><i class="fas fa-check text-success"></i> Full</td>
</tr>
<tr>
<td><strong><?= __('swim.page.selfService') ?></strong></td>
<td><i class="fas fa-check text-success"></i></td>
<td><i class="fas fa-check text-success"></i></td>
<td><i class="fas fa-times text-muted"></i> Contact Us</td>
<td><i class="fas fa-times text-muted"></i> Contact Us</td>
</tr>
<tr>
<td><strong><?= __('swim.page.bestFor') ?></strong></td>
<td><?= __('swim.page.personalProjects') ?></td>
<td><?= __('swim.page.devTesting') ?></td>
<td><?= __('swim.page.virtualAirlines') ?></td>
<td>vNAS, CRC, SimTraffic</td>
</tr>
</tbody>
</table>
</div>
<div class="section-divider"></div>
<!-- API Endpoints -->
<div class="section-header">
<h2><?= __('swim.page.apiEndpoints') ?></h2>
<p><?= __('swim.page.apiEndpointsDesc') ?></p>
</div>
<div class="endpoint-table mb-5">
<table class="table mb-0">
<thead>
<tr>
<th style="width: 100px;"><?= __('swim.page.method') ?></th>
<th><?= __('swim.page.endpoint') ?></th>
<th><?= __('swim.page.description') ?></th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="method-badge method-get">GET</span></td>
<td><code>/api/swim/v1/flights</code></td>
<td><?= __('swim.page.flightsEndpoint') ?></td>
</tr>
<tr>
<td><span class="method-badge method-get">GET</span></td>
<td><code>/api/swim/v1/flight</code></td>
<td><?= __('swim.page.flightEndpoint') ?></td>
</tr>
<tr>
<td><span class="method-badge method-get">GET</span></td>
<td><code>/api/swim/v1/positions</code></td>
<td><?= __('swim.page.positionsEndpoint') ?></td>
</tr>
<tr>
<td><span class="method-badge method-get">GET</span></td>
<td><code>/api/swim/v1/tmi/programs</code></td>
<td><?= __('swim.page.tmiProgramsEndpoint') ?></td>
</tr>
<tr>
<td><span class="method-badge method-get">GET</span></td>
<td><code>/api/swim/v1/tmi/controlled</code></td>
<td><?= __('swim.page.tmiControlledEndpoint') ?></td>
</tr>
<tr>
<td><span class="method-badge method-post">POST</span></td>
<td><code>/api/swim/v1/ingest/adl</code></td>
<td><?= __('swim.page.ingestAdlEndpoint') ?></td>
</tr>
<tr>
<td><span class="method-badge method-post">POST</span></td>
<td><code>/api/swim/v1/ingest/track</code></td>
<td><?= __('swim.page.ingestTrackEndpoint') ?></td>
</tr>
</tbody>
</table>
</div>
<div class="section-divider"></div>
<!-- Use Cases by Role -->
<div class="section-header">
<h2><?= __('swim.page.useCasesByRole') ?></h2>
<p><?= __('swim.page.useCasesByRoleDesc') ?></p>
</div>
<ul class="nav nav-tabs use-case-tabs mb-0" id="useCaseTabs" role="tablist">
<li class="nav-item">
<a class="nav-link active" id="va-tab" data-toggle="tab" href="#va-content" role="tab">
<i class="fas fa-plane mr-1"></i> Virtual Airlines
</a>
</li>
<li class="nav-item">
<a class="nav-link" id="dev-tab" data-toggle="tab" href="#dev-content" role="tab">
<i class="fas fa-code mr-1"></i> Developers
</a>
</li>
<li class="nav-item">
<a class="nav-link" id="atc-tab" data-toggle="tab" href="#atc-content" role="tab">
<i class="fas fa-headset mr-1"></i> ATC Facilities
</a>
</li>
<li class="nav-item">
<a class="nav-link" id="pilot-tab" data-toggle="tab" href="#pilot-content" role="tab">
<i class="fas fa-user-pilot mr-1"></i> Pilots
</a>
</li>
</ul>
<div class="tab-content use-case-content mb-5" id="useCaseTabContent">
<!-- Virtual Airlines Tab -->
<div class="tab-pane fade show active" id="va-content" role="tabpanel">
<div class="row">
<div class="col-md-6">
<h5><i class="fas fa-check-circle text-success mr-2"></i>Key Capabilities</h5>
<ul>
<li>Real-time fleet tracking via WebSocket</li>
<li>Push OOOI times from ACARS/AOC systems</li>
<li>Receive TMI notifications affecting your flights</li>
<li>Export flight data for on-time performance analysis</li>
<li>Integrate schedule data (STD/STA) per CDM specs</li>
</ul>
</div>
<div class="col-md-6">
<h5><i class="fas fa-terminal text-primary mr-2"></i>Example Queries</h5>
<div class="code-block">
<pre><span class="comment"># Track all flights with your prefix</span>
GET /flights?callsign=DAL*
<span class="comment"># Get TMI-controlled flights to your hub</span>
GET /tmi/controlled?dest=KATL
<span class="comment"># Push OOOI times (Partner tier)</span>
POST /ingest/adl
{<span class="string">"flights"</span>: [{<span class="string">"callsign"</span>: <span class="string">"DAL123"</span>, <span class="string">"off_utc"</span>: <span class="string">"..."</span>}]}</pre>
</div>
</div>
</div>
</div>
<!-- Developers Tab -->
<div class="tab-pane fade" id="dev-content" role="tabpanel">
<div class="row">
<div class="col-md-6">
<h5><i class="fas fa-check-circle text-success mr-2"></i>Key Capabilities</h5>
<ul>
<li>Build flight tracking applications</li>
<li>Create statistics dashboards and analytics tools</li>
<li>Integrate live flight data into existing software</li>
<li>Stream real-time positions via WebSocket</li>
<li>Access GeoJSON-formatted data for mapping</li>
</ul>
</div>
<div class="col-md-6">
<h5><i class="fas fa-terminal text-primary mr-2"></i>Example Code</h5>
<div class="code-block">
<pre><span class="comment">// JavaScript - WebSocket subscription</span>
<span class="keyword">const</span> ws = <span class="keyword">new</span> <span class="function">WebSocket</span>(<span class="string">'wss://perti.vatcscc.org/api/swim/v1/ws'</span>);
ws.<span class="function">onopen</span> = () => {
ws.<span class="function">send</span>(JSON.<span class="function">stringify</span>({
action: <span class="string">'subscribe'</span>,
channels: [<span class="string">'flight.positions'</span>],
filters: { airports: [<span class="string">'KJFK'</span>] }
}));
};</pre>
</div>
</div>
</div>
</div>
<!-- ATC Facilities Tab -->
<div class="tab-pane fade" id="atc-content" role="tabpanel">
<div class="row">
<div class="col-md-6">
<h5><i class="fas fa-check-circle text-success mr-2"></i>Key Capabilities</h5>
<ul>
<li>Monitor sector traffic loads in real-time</li>
<li>Track TMI-controlled flights and EDCT compliance</li>
<li>Access demand forecasts for arrival/departure planning</li>
<li>Push track data from radar simulation (System tier)</li>
<li>Integrate with metering systems</li>
</ul>
</div>
<div class="col-md-6">
<h5><i class="fas fa-terminal text-primary mr-2"></i>Example Queries</h5>
<div class="code-block">
<pre><span class="comment"># All flights in your ARTCC</span>
GET /flights?artcc=ZDC
<span class="comment"># Flights destined to your airspace</span>
GET /flights?fp_dest_artcc=ZNY
<span class="comment"># Active TMI programs</span>
GET /tmi/programs
<span class="comment"># Controlled flights at your airport</span>
GET /tmi/controlled?airport=KJFK</pre>
</div>
</div>
</div>
</div>
<!-- Pilots Tab -->
<div class="tab-pane fade" id="pilot-content" role="tabpanel">
<div class="row">
<div class="col-md-6">
<h5><i class="fas fa-check-circle text-success mr-2"></i>Key Capabilities</h5>
<ul>
<li>Look up any active flight on VATSIM</li>
<li>Check if your flight is affected by ground stops</li>
<li>View real-time positions and ETAs</li>
<li>Build personal flight tracking displays</li>
<li>Monitor traffic at your destination</li>
</ul>
</div>
<div class="col-md-6">
<h5><i class="fas fa-terminal text-primary mr-2"></i>Example Queries</h5>
<div class="code-block">
<pre><span class="comment"># Find your flight</span>
GET /flights?callsign=N172SP
<span class="comment"># Check ground stops at destination</span>
GET /tmi/programs?airport=KJFK
<span class="comment"># Traffic at your destination</span>
GET /flights?dest_icao=KORD&phase=enroute
<span class="comment"># Flights in a geographic area</span>
GET /positions?bounds=-76,39,-72,42</pre>
</div>
</div>
</div>
</div>
</div>
<div class="section-divider"></div>
<!-- Client SDKs -->
<div class="section-header">
<h2><?= __('swim.page.clientSdks') ?></h2>
<p><?= __('swim.page.clientSdksDesc') ?></p>
</div>
<div class="row mb-4">
<div class="col-6 col-md-3 mb-3">
<div class="sdk-card">
<i class="fab fa-python"></i>
<h6>Python</h6>
<small><?= __('swim.page.comingSoon') ?></small>
</div>
</div>
<div class="col-6 col-md-3 mb-3">
<div class="sdk-card">
<i class="fab fa-js-square"></i>
<h6>JavaScript</h6>
<small><?= __('swim.page.comingSoon') ?></small>
</div>
</div>
<div class="col-6 col-md-3 mb-3">
<div class="sdk-card">
<i class="fab fa-microsoft"></i>
<h6>C# / .NET</h6>
<small><?= __('swim.page.comingSoon') ?></small>
</div>
</div>
<div class="col-6 col-md-3 mb-3">
<div class="sdk-card">
<i class="fab fa-java"></i>
<h6>Java</h6>
<small><?= __('swim.page.comingSoon') ?></small>
</div>
</div>
</div>
<div class="section-divider"></div>
<!-- Resources -->
<div class="section-header">
<h2><?= __('swim.page.resources') ?></h2>
<p><?= __('swim.page.resourcesDesc') ?></p>
</div>
<div class="row mb-5">
<div class="col-md-6 col-lg-4 mb-3">
<a href="swim-keys" class="resource-link">
<i class="fas fa-key"></i>
<div>
<span><?= __('swim.page.apiKeyPortal') ?></span>
<small><?= __('swim.page.apiKeyPortalDesc') ?></small>
</div>
</a>
</div>
<div class="col-md-6 col-lg-4 mb-3">
<a href="docs/swim/" class="resource-link" target="_blank">
<i class="fas fa-book"></i>
<div>
<span><?= __('swim.page.interactiveDocs') ?></span>
<small><?= __('swim.page.interactiveDocsDesc') ?></small>
</div>
</a>
</div>
<div class="col-md-6 col-lg-4 mb-3">
<a href="docs/swim/openapi.yaml" class="resource-link" target="_blank">
<i class="fas fa-code"></i>
<div>
<span><?= __('swim.page.openApiSpec') ?></span>
<small><?= __('swim.page.openApiSpecDesc') ?></small>
</div>
</a>
</div>
<div class="col-md-6 col-lg-4 mb-3">
<a href="https://vats.im/CommandCenter" class="resource-link" target="_blank">
<i class="fab fa-discord"></i>
<div>
<span><?= __('swim.page.discordCommunity') ?></span>
<small><?= __('swim.page.discordCommunityDesc') ?></small>
</div>
</a>
</div>
<div class="col-md-6 col-lg-4 mb-3">
<a href="mailto:dev@vatcscc.org" class="resource-link">
<i class="fas fa-envelope"></i>
<div>
<span><?= __('swim.page.contactSupport') ?></span>
<small>dev@vatcscc.org</small>
</div>
</a>
</div>
</div>
<!-- CTA Section -->
<div class="cta-section">
<h3><?= __('swim.page.ctaTitle') ?></h3>
<p><?= __('swim.page.ctaDesc') ?></p>
<a href="swim-keys" class="btn btn-success">
<i class="fas fa-key mr-2"></i><?= __('swim.page.getYourApiKey') ?>
</a>
<a href="docs/swim/" class="btn btn-outline-light" target="_blank">
<i class="fas fa-book mr-2"></i><?= __('swim.page.readTheDocs') ?>
</a>
</div>
</div>
<?php include('load/footer.php'); ?>
<script>
$(document).ready(function() {
// Smooth scroll for anchor links (exclude tabs which use data-toggle)
$('a[href^="#"]:not([data-toggle])').on('click', function(e) {
e.preventDefault();
var target = $(this.hash);
if (target.length) {
$('html, body').animate({
scrollTop: target.offset().top - 80
}, 500);
}
});
});
</script>
</body>
</html>