Skip to content

Commit 70f30e2

Browse files
Merge pull request #95 from Navigraph/asrn
Add ASRN definitions
2 parents 593f0d0 + 126a92f commit 70f30e2

File tree

6 files changed

+431
-9
lines changed

6 files changed

+431
-9
lines changed

.changeset/slow-pumas-cheer.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@navigraph/amdb": major
3+
"navigraph": minor
4+
---
5+
6+
Added ASRN to amdb

examples/playground/src/components/map/amdbStyle.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,16 @@ const amdbStyle: StyleFunction = (_feature): PathOptions | CircleOptions => {
206206
radius: 15,
207207
color: "white",
208208
}
209+
case FeatureType.AsrnEdge:
210+
return {
211+
fill: false,
212+
color: "green",
213+
}
214+
case FeatureType.AsrnNode:
215+
return {
216+
radius: 5,
217+
color: "red",
218+
}
209219
case FeatureType.RunwayThreshold:
210220
case FeatureType.FinalApproachAndTakeoffArea:
211221
case FeatureType.HelipadThreshold:

packages/amdb/src/types/enums.ts

Lines changed: 84 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/* eslint-disable @typescript-eslint/no-unused-vars */
2+
import {
3+
ApronBoundaryNode,
4+
AsrnNode,
5+
HoldingPositionNode,
6+
ParkingBoundaryNode,
7+
ParkingStandArea,
8+
RunwayBoundaryNode,
9+
RunwayExitLineNode,
10+
RunwayIntersectionNode,
11+
StandNode,
12+
TaxiwayLinkNode,
13+
TaxiwayNode,
14+
} from "./features"
15+
116
export enum FeatureType {
217
RunwayElement = 0,
318
RunwayIntersection = 1,
@@ -43,10 +58,8 @@ export enum FeatureType {
4358
// RunwayCenterlinePoint = 37,
4459
// Not provided
4560
// ArrestingSystemLocation = 38,
46-
// Not provided yet
47-
// AsrnEdge = 39
48-
// Not provided yet
49-
// AsrnNode = 40
61+
AsrnEdge = 39,
62+
AsrnNode = 40,
5063
}
5164

5265
export enum SurfaceType {
@@ -265,3 +278,70 @@ export enum LineStructureType {
265278
NotApplicable = -32765,
266279
Unknown = -32767,
267280
}
281+
282+
/**
283+
* Descriptions of each NodeType can be found in the associated interface
284+
*
285+
* See {@link AsrnNode}
286+
*/
287+
export enum NodeType {
288+
Taxiway,
289+
HoldingPosition,
290+
RunwayBoundary,
291+
RunwayExitLine,
292+
RunwayIntersection,
293+
ParkingBoundary,
294+
ApronBoundary,
295+
TaxiwayLink,
296+
Deicing,
297+
Stand,
298+
}
299+
300+
export enum EdgeType {
301+
/**
302+
* An edge running along a taxiway, or connecting two taxiways while crossing a runway
303+
*
304+
* Can connect to {@link TaxiwayNode}s, {@link HoldingPositionNode}s, {@link RunwayBoundaryNode}s, {@link ApronBoundaryNode}s, or {@link TaxiwayLinkNode}s (in any order or combination)
305+
*/
306+
Taxiway,
307+
/**
308+
* An edge running along the center of a runway
309+
*
310+
* Can connect {@link RunwayExitLineNode}s and {@link RunwayIntersectionNode}s (in any order or combination)
311+
*/
312+
Runway,
313+
/**
314+
* An edge running from the centerline of a runway to a taxiway
315+
*
316+
* Will connect a {@link RunwayExitLineNode} to a {@link RunwayBoundaryNode}
317+
*/
318+
RunwayExit,
319+
/**
320+
* Forms the portion of a stand entry occuring outside of the {@link ParkingStandArea}
321+
*
322+
* Will connect a {@link TaxiwayNode} to a {@link ParkingBoundaryNode}
323+
*/
324+
TaxiwayLink,
325+
/**
326+
* Not yet implemented
327+
*/
328+
Deicing = 5,
329+
/**
330+
* An edge running along an apron taxiline
331+
*
332+
* Can connect {@link ApronBoundaryNode}s and {@link TaxiwayNode}s
333+
*/
334+
Apron,
335+
/**
336+
* An edge running along a {@link ParkingStandArea} to form the main body of a stand line
337+
*
338+
* Will connect a {@link StandNode} to a {@link ParkingBoundaryNode}
339+
*/
340+
Stand,
341+
}
342+
343+
export enum EdgeDerivation {
344+
FullyAbstract,
345+
PartiallyAbstract,
346+
FullyDerived,
347+
}

0 commit comments

Comments
 (0)