-
Notifications
You must be signed in to change notification settings - Fork 89
/
apiary.apib
5817 lines (5509 loc) · 231 KB
/
apiary.apib
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
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
FORMAT: 1A
HOST: https://avwx.rest/api
# AVWX
The AVWX REST API is a publically-available, open-source REST API for aviation weather.
## Authentication
AVWX uses bearer tokens for user authentication. Create an account at [account.avwx.rest](https://account.avwx.rest) to generate your token and include it in your requests.
The API looks for tokens in two places:
- `"Authorization"` header. The token value can have any prefix (`"TOKEN abcde"`, `"BEARER abcde"`, etc) or just the token value itself
- `"?token=abcde"` URL parameter
The header value will supercede the URL parameter if both are found. All examples in the documentation use the header method.
Some features require paid plans to be associated with the supplied token. Feature availability is listed on the [Account Page](https://account.avwx.rest).
## Airport Codes
Airports and reporting stations can have four possible identifying codes assigned to them:
- ICAO: 4-letter code assigned by the International Civil Aviation Organization
- IATA: 3-letter code assigned by the International Air Transport Association
- GPS: 4-letter code used for in-flight GPS navigation
- Local: The 3 or 4-letter code assigned by the regional governing authority
AVWX matches the airport to your supplied station code by: ICAO, IATA, then GPS. The local code is information only.
Most airports do not have an official ICAO or IATA code. If they do, it should always match the GPS code. Additionally, most stations have a GPS code, but not all. For example, weather buoys have an ICAO but no GPS.
## Flight Path Routing
This API can return results based on a given flight route. These points can be:
- ICAO station idents: KJFK, EGLL, PHNL
- IATA airport idents: MIA, LGA, HNL
- Navaids like VOR and NDB: ATL, ORL, PQ
- Lat,Lon coordinates: 30.35,-81.013
The flight path combines these elements with semicolons to look like:
`KLEX;ATL;30.2,-82.1;ORL;KMCO`
This path starts at Blue Grass Airport in Lexington, KY, down to the Atlanta VOR, a coordinate near Jacksonville, FL, the Orlando VOR, and ends at Orlando International Airport.
Unlike ICAO idents, navaid idents are not globally unique. AVWX determines the most likely coordinate pair based on the next known coordinate. If the final coordinate is still multiple choice, it will pick the two nearest ones and start backfilling. It is highly recommended to bookend each flight path with either ICAO idents or coordinate pairs, but VOR to VOR navigation will still work.
Because there are many overlaps between navaid and IATA codes and the navaids are more useful for flight routing purposes, IATA codes are deprioritized when calculating the flight path. It's recommended to use the airport's ICAO, GPS, or coordinate values if known.
Each routing response will include the resolved coordinates used for determining the flight path.
## aviowiki Airport Data
AVWX has partnered with [aviowiki](https://www.aviowiki.com) to provide a reliable, constantly verified source of airport informaion. If you've added the [aviowiki addon](https://account.avwx.rest/plans) to your account, you'll instantly start receiving this new vetted data. This will replace the open source - but sometimes out-of-date - information compiled from [OurAirports](https://ourairports.com) and other locations. If you are using AVWX for mission-critical applications, it is highly reccomended that you enable this addon.
The served data includes general airport information and all landing surfaces including runways, helipads, etc. For more information, check out [aviowiki's API Docs](https://docs.aviowiki.com/data-models/airport). Additional fields can be requested by contacting us.
```json
{
"icao": "KLEX",
"iata": "LEX",
"faa": "LEX",
"localIdentifier": "LEX",
"name": "Blue Grass Airport",
"servedCity": "Lexington, KY",
"servedCityGoverningDistrict": {
"code": "US-KY",
"name": "Kentucky",
"administrativeType": "State"
},
"administrativeCity": null,
"administrativeCityGoverningDistrict": null,
"elevation": 298.4,
"coordinates": {
"latitude": 38.03675,
"longitude": -84.6086389
},
"variation": -4.0,
"country": {
"iso2": "US",
"iso3": "USA",
"isoNumeric": 840,
"name": "United States",
"officialName": "United States of America",
"localIdentifierName": null
},
"timeZone": "America/New_York",
"perimeter": null,
"type": "AIRPORT",
"operator": "PUBLIC",
"accessibleFor": [
"TRAINING",
"HELICOPTER",
"MILITARY",
"GENERAL_AVIATION",
"BUSINESS_AVIATION",
"SCHEDULED",
"NON_SCHEDULED"
],
"ifr": null,
"nonScheduledPermission": "NONE",
"nonScheduledPermissionNotes": null,
"mandatoryHandling": null,
"mandatoryQualification": null,
"qualificationLink": null,
"qualificationNotes": null,
"weightLimit": null,
"wingspanLimit": null,
"paxLimit": null,
"referenceWeatherStation": null,
"aid": "APT-D9FK-4BKT",
"runways": [
{
"helipad": null,
"identifier": "04",
"magneticBearing": 46.0,
"trueBearing": 42.0,
"standardPattern": true,
"thresholdElevation": 286.51,
"width": 45.72,
"tora": 2134.82,
"toda": 2134.82,
"asda": 2134.82,
"lda": 2012.9,
"surface": "ASPHALT",
"pcnNumerical": 59,
"pcnType": "F",
"pcnStrength": "B",
"pcnTirePressure": "W",
"pcnMethod": "T",
"edgeLights": true,
"thresholdLights": null,
"endLights": null,
"centerLights": true,
"centerLightsSpacing": null,
"touchDownZoneLights": true,
"visualApproachSlopeIndicator": "P4L",
"approachLightConfiguration": "MALSR",
"instrumental": true,
"precision": true,
"separate": null,
"thresholdCoordinates": {
"latitude": 38.0276904,
"longitude": -84.6151088
},
"slope": null,
"grooved": true,
"parent": "APT-D9FK-4BKT",
"aid": "RWY-I42U-U7GL"
},
...
]
}
```
## Station [/station/{ident}{?format,remove,filter}]
Returns station information for an airfield or other location by ICAO ident. This is the same information provided when incluing the `info` option with weather requests.
+ Parameters
+ ident: `KJFK` (string) - ICAO & IATA station code
+ format (string, optional) - Desired response format
+ Supported: `json`, `xml`, `yaml`
+ Default: `json`
+ remove (string, optional) - Remove unused keys from the response, recursive
+ Examples: `spoken,repr`, `runways`
+ filter (string, optional) - Only include these keys in the response, recursive
+ Examples: `sanitized`, `flight_rules,altimeter,value`
### Get Station Information [GET]
This example shows station information for JKF International in New York City.
+ Request
+ Headers
Authorization: Token my_secret_api_token
+ Response 200 (application/json)
{
"city": "New York",
"country": "US",
"elevation_ft": 13,
"elevation_m": 4,
"gps": "KJFK",
"iata": "JFK",
"icao": "KJFK",
"latitude": 40.63980103,
"local": "JFK",
"longitude": -73.77890015,
"name": "John F Kennedy International Airport",
"note": "Manhattan, New York City, NYC, Idlewild",
"reporting": true,
"runways": [
{
"length_ft": 14572,
"width_ft": 150,
"ident1": "13R",
"ident2": "31L"
},
{
"length_ft": 11351,
"width_ft": 150,
"ident1": "04L",
"ident2": "22R"
},
{
"length_ft": 10000,
"width_ft": 150,
"ident1": "13L",
"ident2": "31R"
},
{
"length_ft": 8400,
"width_ft": 200,
"ident1": "04R",
"ident2": "22L"
}
],
"state": "NY",
"type": "large_airport",
"website": "http://www.panynj.gov/CommutingTravel/airports/html/kennedy.html",
"wiki": "http://en.wikipedia.org/wiki/John_F._Kennedy_International_Airport"
}
## Nearest Stations [/station/near/{coord}{?n,airport,reporting,format,remove,filter}]
Returns the nearest stations to a coordinate pair. By default, these are only reporting stations, but this can be disabled to return smaller airports with non-reporting AWOS/ASOS as well. This endpoint is available to free plans, but the `n` parameter is limitted to 10 while paid plans can go up to 200.
+ Parameters
+ coord: `28.1,-81` (string) - Coordinate pair
+ n: 3 (number, optional) - Number of stations to return
+ Default: 10
+ airport (boolean, optional) - Only include airports
+ Default: true
+ reporting (boolean, optional) - Only include reporting stations
+ Default: true
+ format (string, optional) - Desired response format
+ Supported: `json`, `xml`, `yaml`
+ Default: `json`
+ remove (string, optional) - Remove unused keys from the response, recursive
+ Examples: `spoken,repr`, `runways`
+ filter (string, optional) - Only include these keys in the response, recursive
+ Examples: `sanitized`, `flight_rules,altimeter,value`
### Get Stations around a coordinate [GET]
This example returns reporting stations around Melbourne Beach, FL
+ Request
+ Headers
Authorization: Token my_secret_api_token
+ Response 200 (application/json)
[
{
"station": {
"city": "Melbourne",
"country": "US",
"elevation_ft": 33,
"elevation_m": 10,
"gps": "KMLB",
"iata": "MLB",
"icao": "KMLB",
"latitude": 28.102800369262695,
"local": "MLB",
"longitude": -80.64530181884766,
"name": "Melbourne International Airport",
"note": null,
"reporting": true,
"runways": [
{
"length_ft": 10181,
"width_ft": 150,
"ident1": "09R",
"ident2": "27L"
},
{
"length_ft": 6000,
"width_ft": 150,
"ident1": "09L",
"ident2": "27R"
},
{
"length_ft": 3001,
"width_ft": 75,
"ident1": "05",
"ident2": "23"
}
],
"state": "FL",
"type": "medium_airport",
"website": null,
"wiki": "http://en.wikipedia.org/wiki/Melbourne_International_Airport"
},
"coordinate_distance": 0.35470923554481676,
"nautical_miles": 18.786513433151878,
"miles": 21.619133558889384,
"kilometers": 34.79262287819728
},
{
"station": {
"city": "Cocoa Beach",
"country": "US",
"elevation_ft": 8,
"elevation_m": 2,
"gps": "KCOF",
"iata": "COF",
"icao": "KCOF",
"latitude": 28.2348995209,
"local": "COF",
"longitude": -80.6100997925,
"name": "Patrick Air Force Base",
"note": "Naval Air Station Banana River",
"reporting": true,
"runways": [
{
"length_ft": 9023,
"width_ft": 200,
"ident1": "03",
"ident2": "21"
},
{
"length_ft": 4000,
"width_ft": 200,
"ident1": "11",
"ident2": "29"
}
],
"state": "FL",
"type": "medium_airport",
"website": "http://www.patrick.af.mil/",
"wiki": "http://en.wikipedia.org/wiki/Patrick_Air_Force_Base"
},
"coordinate_distance": 0.41257732917308576,
"nautical_miles": 22.16988896743564,
"miles": 25.51265258868881,
"kilometers": 41.05863436769081
},
{
"station": {
"city": "Orlando",
"country": "US",
"elevation_ft": 96,
"elevation_m": 29,
"gps": "KMCO",
"iata": "MCO",
"icao": "KMCO",
"latitude": 28.429399490356445,
"local": "MCO",
"longitude": -81.30899810791016,
"name": "Orlando International Airport",
"note": "Disney World,Epcot Center",
"reporting": true,
"runways": [
{
"length_ft": 12005,
"width_ft": 200,
"ident1": "18L",
"ident2": "36R"
},
{
"length_ft": 12004,
"width_ft": 200,
"ident1": "18R",
"ident2": "36L"
},
{
"length_ft": 10000,
"width_ft": 150,
"ident1": "17R",
"ident2": "35L"
},
{
"length_ft": 9000,
"width_ft": 150,
"ident1": "17L",
"ident2": "35R"
}
],
"state": "FL",
"type": "large_airport",
"website": "http://www.orlandoairports.net/",
"wiki": "http://en.wikipedia.org/wiki/Orlando_International_Airport"
},
"coordinate_distance": 0.4516457183890284,
"nautical_miles": 25.654425899340257,
"miles": 29.522586075803655,
"kilometers": 47.51199676557816
}
]
## Station Search [/search/station{?text,n,airport,reporting,format,remove,filter}]
Text search for stations by ICAO, IATA, name, city, and state. By default, these are only reporting stations, but this can be disabled to return smaller airports with non-reporting AWOS/ASOS as well.
+ Parameters
+ text: `lihue%20hi` (string) - Search text
+ n: 2 (number, optional) - Max results to return. Smaller numbers are more likely to not reach max
+ Default: 10
+ airport (boolean, optional) - Only include airports
+ Default: true
+ reporting (boolean, optional) - Only include reporting stations
+ Default: true
+ format (string, optional) - Desired response format
+ Supported: `json`, `xml`, `yaml`
+ Default: `json`
+ remove (string, optional) - Remove unused keys from the response, recursive
+ Examples: `spoken,repr`, `runways`
+ filter (string, optional) - Only include these keys in the response, recursive
+ Examples: `sanitized`, `flight_rules,altimeter,value`
### Get stations via text search [GET]
This example returns reporting stations for "lihue hi"
+ Request
+ Headers
Authorization: Token my_secret_api_token
+ Response 200 (application/json)
[
{
"city": "Lihue",
"country": "US",
"elevation_ft": 153,
"elevation_m": 47,
"gps": "PHLI",
"iata": "LIH",
"icao": "PHLI",
"latitude": 21.97599983215332,
"local": "LIH",
"longitude": -159.33900451660156,
"name": "Lihue Airport",
"note": null,
"reporting": true,
"runways": [
{
"length_ft": 6500,
"width_ft": 150,
"surface": "asphalt",
"lights": true,
"ident1": "03",
"ident2": "21",
"bearing1": 45.0,
"bearing2": 225.0
},
{
"length_ft": 6500,
"width_ft": 150,
"surface": "asphalt",
"lights": true,
"ident1": "17",
"ident2": "35",
"bearing1": 180.0,
"bearing2": 360.0
}
],
"state": "HI",
"type": "medium_airport",
"website": null,
"wiki": "https://en.wikipedia.org/wiki/Lihu'e_Airport"
},
{
"city": "Honolulu",
"country": "US",
"elevation_ft": 13,
"elevation_m": 4,
"gps": "PHNL",
"iata": "HNL",
"icao": "PHNL",
"latitude": 21.32062,
"local": "HNL",
"longitude": -157.924228,
"name": "Daniel K Inouye International Airport",
"note": "Hickam Air Force Base, HIK, PHIK, KHNL, Honolulu International",
"reporting": true,
"runways": [
{
"length_ft": 12300,
"width_ft": 150,
"surface": "asphalt",
"lights": false,
"ident1": "08L",
"ident2": "26R",
"bearing1": 90.0,
"bearing2": 270.0
},
{
"length_ft": 12000,
"width_ft": 200,
"surface": "asphalt",
"lights": false,
"ident1": "08R",
"ident2": "26L",
"bearing1": 90.0,
"bearing2": 270.0
},
{
"length_ft": 9000,
"width_ft": 150,
"surface": "asphalt",
"lights": false,
"ident1": "04R",
"ident2": "22L",
"bearing1": 53.0,
"bearing2": 233.0
},
{
"length_ft": 6952,
"width_ft": 150,
"surface": "asphalt",
"lights": false,
"ident1": "04L",
"ident2": "22R",
"bearing1": 53.0,
"bearing2": 233.0
},
{
"length_ft": 5000,
"width_ft": 300,
"surface": "water",
"lights": false,
"ident1": "08W",
"ident2": "26W",
"bearing1": 91.0,
"bearing2": 271.0
},
{
"length_ft": 3000,
"width_ft": 150,
"surface": "water",
"lights": false,
"ident1": "04W",
"ident2": "22W",
"bearing1": 51.0,
"bearing2": 231.0
}
],
"state": "HI",
"type": "large_airport",
"website": "http://airports.hawaii.gov/hnl/",
"wiki": "https://en.wikipedia.org/wiki/Daniel_K._Inouye_International_Airport"
},
{
"city": "Kekaha",
"country": "US",
"elevation_ft": 23,
"elevation_m": 7,
"gps": "PHBK",
"iata": "BKH",
"icao": "PHBK",
"latitude": 22.022800445599998,
"local": "BKH",
"longitude": -159.785003662,
"name": "Barking Sands Airport",
"note": "Pacific Missle Range Facility Barking Sands, Kauai",
"reporting": true,
"runways": [
{
"length_ft": 6006,
"width_ft": 146,
"surface": "asphalt",
"lights": true,
"ident1": "16",
"ident2": "34",
"bearing1": 170.0,
"bearing2": 350.0
}
],
"state": "HI",
"type": "medium_airport",
"website": null,
"wiki": "https://en.wikipedia.org/wiki/Pacific_Missile_Range_Facility"
}
]
## Station Routing [/path/station{?route,distance,format,remove,filter}]
Find reporting stations along a flight path. See notes on routing above.
+ Parameters
+ route: `KMCO;ORL;KDAB` (string) - Flight route with ICAO, navaid, and coordinate components
+ distance: 5 (number) - Distance in statue miles from route centerline
+ format (string, optional) - Desired response format
+ Supported: `json`, `xml`, `yaml`
+ Default: `json`
+ remove (string, optional) - Remove unused keys from the response, recursive
+ Examples: `spoken,repr`, `runways`
+ filter (string, optional) - Only include these keys in the response, recursive
+ Examples: `sanitized`, `flight_rules,altimeter,value`
### Get stations along a flight path [GET]
This example returns reporting stations along a flight path from Orlando to Daytona Beach, FL.
+ Request
+ Headers
Authorization: Token my_secret_api_token
+ Response 200 (application/json)
{
"meta": {
"timestamp": "2021-04-01T17:42:48.831526Z",
"stations_updated": "2021-03-26"
},
"route": [
{
"lat": 28.429399490356445,
"lon":-81.30899810791016,
"repr": "KMCO"
},
{
"lat": 28.542699813842773,
"lon": -81.33499908447266,
"repr": "ORL"
},
{
"lat": 29.179899,
"lon": -81.058098,
"repr": "KDAB"
}
],
"results": [
{
"city": "Orlando",
"country": "US",
"elevation_ft": 113,
"elevation_m": 34,
"gps": "KORL",
"iata": "ORL",
"icao": "KORL",
"latitude": 28.5455,
"local": "ORL",
"longitude": -81.332901,
"name": "Orlando Executive Airport",
"note": "Herndon Airport, Orlando Executive Airport, KORL, ORL, Orlando Municipal Airport, Orlando Army Air Base, Orlando Air Force Base, Naval Training Center Orlando",
"reporting": true,
"runways": [
{
"length_ft": 6003,
"width_ft": 150,
"surface": "asphalt",
"lights": true,
"ident1": "07",
"ident2": "25",
"bearing1": 67.0,
"bearing2": 247.0
},
{
"length_ft": 4638,
"width_ft": 100,
"surface": "asphalt",
"lights": true,
"ident1": "13",
"ident2": "31",
"bearing1": 130.8,
"bearing2": 310.8
}
],
"state": "FL",
"type": "small_airport",
"website": null,
"wiki": "https://en.wikipedia.org/wiki/Orlando_Executive_Airport"
},
{
"city": "Orlando",
"country": "US",
"elevation_ft": 96,
"elevation_m": 29,
"gps": "KMCO",
"iata": "MCO",
"icao": "KMCO",
"latitude": 28.429399490356445,
"local": "MCO",
"longitude": -81.30899810791016,
"name": "Orlando International Airport",
"note": "Disney World,Epcot Center",
"reporting": true,
"runways": [
{
"length_ft": 12005,
"width_ft": 200,
"surface": "concrete",
"lights": true,
"ident1": "18L",
"ident2": "36R",
"bearing1": 179.0,
"bearing2": 359.0
},
{
"length_ft": 12004,
"width_ft": 200,
"surface": "concrete",
"lights": true,
"ident1": "18R",
"ident2": "36L",
"bearing1": 179.0,
"bearing2": 359.0
},
{
"length_ft": 10000,
"width_ft": 150,
"surface": "concrete",
"lights": true,
"ident1": "17R",
"ident2": "35L",
"bearing1": 179.0,
"bearing2": 359.0
},
{
"length_ft": 9000,
"width_ft": 150,
"surface": "asphalt",
"lights": true,
"ident1": "17L",
"ident2": "35R",
"bearing1": 179.5,
"bearing2": 359.5
}
],
"state": "FL",
"type": "large_airport",
"website": "http://www.orlandoairports.net/",
"wiki": "https://en.wikipedia.org/wiki/Orlando_International_Airport"
},
{
"city": "Orlando",
"country": "US",
"elevation_ft": 55,
"elevation_m": 17,
"gps": "KSFB",
"iata": "SFB",
"icao": "KSFB",
"latitude": 28.777599334716797,
"local": "SFB",
"longitude": -81.23750305175781,
"name": "Orlando Sanford International Airport",
"note": null,
"reporting": true,
"runways": [
{
"length_ft": 9600,
"width_ft": 150,
"surface": "asphalt",
"lights": true,
"ident1": "09L",
"ident2": "27R",
"bearing1": 90.0,
"bearing2": 270.0
},
{
"length_ft": 6003,
"width_ft": 150,
"surface": "concrete",
"lights": true,
"ident1": "18",
"ident2": "36",
"bearing1": 180.0,
"bearing2": 360.0
},
{
"length_ft": 3578,
"width_ft": 75,
"surface": "asphalt",
"lights": true,
"ident1": "09C",
"ident2": "27C",
"bearing1": 90.0,
"bearing2": 270.0
},
{
"length_ft": 3500,
"width_ft": 75,
"surface": "asphalt",
"lights": true,
"ident1": "09R",
"ident2": "27L",
"bearing1": 89.9,
"bearing2": 269.9
}
],
"state": "FL",
"type": "large_airport",
"website": null,
"wiki": "https://en.wikipedia.org/wiki/Orlando_Sanford_International_Airport"
},
{
"city": "Daytona Beach",
"country": "US",
"elevation_ft": 34,
"elevation_m": 10,
"gps": "KDAB",
"iata": "DAB",
"icao": "KDAB",
"latitude": 29.179899,
"local": "DAB",
"longitude": -81.058098,
"name": "Daytona Beach International Airport",
"note": null,
"reporting": true,
"runways": [
{
"length_ft": 10500,
"width_ft": 150,
"surface": "asphalt",
"lights": true,
"ident1": "07L",
"ident2": "25R",
"bearing1": 65.0,
"bearing2": 245.0
},
{
"length_ft": 6001,
"width_ft": 150,
"surface": "asphalt",
"lights": true,
"ident1": "16",
"ident2": "34",
"bearing1": 157.0,
"bearing2": 337.0
},
{
"length_ft": 3195,
"width_ft": 100,
"surface": "asphalt",
"lights": true,
"ident1": "07R",
"ident2": "25L",
"bearing1": 65.0,
"bearing2": 245.0
}
],
"state": "FL",
"type": "large_airport",
"website": null,
"wiki": "https://en.wikipedia.org/wiki/Daytona_Beach_International_Airport"
}
]
}
## Summary [/summary/{location}{?options,format,remove,filter,onfail}]
The summary provides the current and future flight conditions as well as a few other elements to explain them. For many developers, this is probably all you need. The API pulls this info from the METAR and TAF reports. If you need more info, you can still use those endpoints directly.
+ Parameters
+ location: `KJFK` (string) - ICAO & IATA station code or coordinate pair
+ Examples: `EGLL`, `51.47,-0.4`
+ options (string, optional) - Additional options to include as comma-separated string
+ Supported: `info`, `translate`, `summary`, `speech`
+ Example: `info,speech`
+ format (string, optional) - Desired response format
+ Supported: `json`, `xml`, `yaml`
+ Default: `json`
+ remove (string, optional) - Remove unused keys from the response, recursive
+ Examples: `spoken,repr`, `runways`
+ filter (string, optional) - Only include these keys in the response, recursive
+ Examples: `sanitized`, `flight_rules,altimeter,value`
+ onfail (string, optional) - Error, use out-of-date cache, or check nearest station when unable to fetch report
+ Supported: `cache`, `error`, `nearest`
+ Default: `cache`
### Get Summary Status [GET]
Get the current and forecasted flight conditions for a specific station by ICAO & IATA station code or a lat,lon coordinate pair. The API will return the station nearest to those coordinates. Include `info` in the options to get details about the selected station.
+ Request
+ Headers
Authorization: Token my_secret_api_token
+ Response 200 (application/json)
{
"meta": {
"timestamp": "2022-09-06T03:30:17.558193+00:00Z"
},
"metar": {
"time": "2022-09-06T02:51:00Z",
"flight_rules": "VFR",
"wx_codes": [
{
"repr": "-RA",
"value": "Light Rain"
}
],
"visibility": {
"repr": "10",
"value": 10,
"spoken": "one zero"
},
"ceiling": {
"repr": "BKN048",
"type": "BKN",
"altitude": 48,
"modifier": null
}
},
"taf": {
"time": "2022-09-06T02:32:00Z",
"forecast": [
{
"start_time": "2022-09-06T03:00:00Z",
"end_time": "2022-09-06T09:00:00Z",
"flight_rules": "VFR"
},
{
"start_time": "2022-09-06T09:00:00Z",
"end_time": "2022-09-06T14:00:00Z",
"flight_rules": "MVFR"
},
{
"start_time": "2022-09-06T14:00:00Z",
"end_time": "2022-09-06T21:00:00Z",
"flight_rules": "IFR"
},
{
"start_time": "2022-09-06T21:00:00Z",
"end_time": "2022-09-07T00:00:00Z",
"flight_rules": "IFR"
},
{
"start_time": "2022-09-07T00:00:00Z",
"end_time": "2022-09-07T06:00:00Z",
"flight_rules": "IFR"
}
]
}
}
## METAR [/metar/{location}{?options,airport,reporting,format,remove,filter,onfail}]
METAR reports are surface observations for a particular airfield or other station location. There are two standard formats: International and North American. The parser works with both, but it is up to the developer to do the correct interpretation of the data. Use the 'Units' key for labling and conversions.
Field notes:
- Relative humidity is a percentage coded as 0 to 1
- Pressure and density altitude of the airport are always returned in feet to match with cloud layers. You may want to convert into meters when displaying to your users
+ Parameters
+ location: `KJFK` (string) - ICAO & IATA station code or coordinate pair
+ Examples: `EGLL`, `51.47,-0.4`
+ options (string, optional) - Additional options to include as comma-separated string
+ Supported: `info`, `translate`, `summary`, `speech`
+ Example: `info,speech`
+ airport (boolean, optional) - Only include airports when performing a coordinate search
+ Default: true
+ reporting (boolean, optional) - Only include reporting stations when performing a coordinate search
+ Default: true
+ format (string, optional) - Desired response format
+ Supported: `json`, `xml`, `yaml`
+ Default: `json`
+ remove (string, optional) - Remove unused keys from the response, recursive
+ Examples: `spoken,repr`, `runways`
+ filter (string, optional) - Only include these keys in the response, recursive
+ Examples: `sanitized`, `flight_rules,altimeter,value`
+ onfail (string, optional) - Error, use out-of-date cache, or check nearest station when unable to fetch report
+ Supported: `cache`, `error`, `nearest`
+ Default: `cache`
### Get METAR Report [GET]
Get the METAR for a specific station by ICAO & IATA station code or a lat,lon coordinate pair. The API will return the station nearest to those coordinates. Include `info` in the options to get details about the selected station.
+ Request
+ Headers
Authorization: Token my_secret_api_token
+ Response 200 (application/json)
{
"meta": {
"timestamp": "2020-04-03T16:50:17.558193+00:00Z"
},
"altimeter": {
"repr": "A2966",
"value": 29.66,
"spoken": "two nine point six six"
},
"clouds": [
{
"repr": "FEW024",
"type": "FEW",