Skip to content

Commit 5245f12

Browse files
feat: apron typings
Update aprons.ts
1 parent 0fb4f2f commit 5245f12

File tree

4 files changed

+434
-1
lines changed

4 files changed

+434
-1
lines changed

packages/amdb/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This package is part of the Navigraph SDK, and is intended to be used in conjuct
44
See the [navigraph](https://www.npmjs.com/package/navigraph) package for usage.
55

66
> [!WARNING]
7-
> ### When real number or integer (non enumerated) values in AMDB feature properties have no value, it is represented with one of the three following default values:
7+
> ### When real number or integer values in AMDB feature properties have no value, it is represented with one of the three following default values:
88
> | Data Type | Null | Unknown | Not Applicable | Not Entered |
99
> | --------- | ------ | ------- | -------------- | ----------- |
1010
> | Value | -32768 | -32767 | -32765 | -32764 |

packages/amdb/src/types/enums.ts

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@ export enum FeatureType {
1919
TaxiwayHoldingPosition = 18,
2020
RunwayExitLine = 19,
2121
FrequencyArea = 20,
22+
ApronElement = 21,
23+
StandGuidanceLine = 22,
24+
ParkingStandLocation = 23,
25+
ParkingStandArea = 24,
26+
DeicingArea = 25,
2227
BlastPad = 33,
28+
ServiceRoad = 34,
2329
AerodromeReferencePoint = 26,
2430
}
2531

@@ -61,6 +67,7 @@ export enum PapiVasi {
6167
Apapi,
6268
Vasis,
6369
Avasis,
70+
NotApplicable = -32765,
6471
}
6572

6673
export enum LandingCategory {
@@ -70,12 +77,16 @@ export enum LandingCategory {
7077
Cat3A,
7178
Cat3B,
7279
Cat3C,
80+
Unknown = -32767,
81+
NotApplicable = -32765,
7382
}
7483

7584
export enum StopbarCategory {
7685
None,
7786
Cat1,
7887
Cat2Or3,
88+
Unknown = -32767,
89+
NotApplicable = -32765,
7990
}
8091

8192
export enum ThresholdType {
@@ -103,29 +114,74 @@ export enum GroundSurfaceType {
103114
LandingMats,
104115
Membrane,
105116
Wood,
117+
Unknown = -32767,
106118
}
107119

108120
export enum LineColor {
109121
Yellow,
110122
Orange,
111123
Blue,
112124
White,
125+
Unknown = -32767,
113126
}
114127

115128
export enum LineStyle {
116129
Solid,
117130
Dashed,
118131
Dotted,
132+
Unknown = -32767,
119133
}
120134

121135
export enum LineDirection {
122136
Bidirectional,
123137
StartToEndpoint,
124138
EndToStartpoint,
139+
Unknown = -32767,
125140
}
126141

127142
export enum BridgeType {
128143
None,
129144
Underpass,
130145
Overpass,
146+
Unknown = -32767,
147+
}
148+
149+
export enum Availability {
150+
Unavailable,
151+
Available,
152+
Unknown = -32767,
153+
}
154+
155+
export enum FuelType {
156+
JetA1 = "1",
157+
Avgas100LL = "2",
158+
Mogas = "3",
159+
JetB = "4",
160+
"73Oct" = "5",
161+
"80-87" = "6",
162+
"100-130" = "7",
163+
"115-145" = "8",
164+
Jet = "9",
165+
JetA = "10",
166+
JetAPlus = "11",
167+
JP4 = "12",
168+
}
169+
170+
export enum BaseFeature {
171+
NoOverlap,
172+
ServiceRoad,
173+
ApronElement,
174+
TaxiwayElement,
175+
ParkingStandArea,
176+
Stopway = 5,
177+
RunwayElement = 7, // Thats just how it is
178+
RunwayIntersection,
179+
RunwayShoulder,
180+
FinalApproachAndTakeoffArea,
181+
TouchDownLiftOffArea,
182+
TaxiwayShoulder,
183+
DeicingArea,
184+
ConstructionArea,
185+
Blastpad,
186+
RunwayDisplacedArea,
131187
}

0 commit comments

Comments
 (0)