Skip to content

Commit

Permalink
fix altitude restrictions for secondary airports
Browse files Browse the repository at this point in the history
  • Loading branch information
zefir-git committed Feb 12, 2025
1 parent 8d870c3 commit a81dd22
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
12 changes: 6 additions & 6 deletions airspace/lines/AirspaceLines.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export default class AirspaceLines {
]));

this.gen.area(new Area<Polygon>(
"SFC",
"LC",
2500,
new Fix(51.555, 0.025),
LondonCityCTRD,
Expand Down Expand Up @@ -179,9 +179,9 @@ export default class AirspaceLines {
.append(new Fix(51.186875, -0.382290))
);
this.gen.area(new Area(
"SFC",
"KK",
2500,
new Fix(51.1943, -0.22),
new Fix(51.13, -.214),
GatwickCTRD,
GatwickCTRD.vertices.length
));
Expand All @@ -205,9 +205,9 @@ export default class AirspaceLines {
.append(new Fix(51.846596, -0.160847))
);
this.gen.area(new Area(
"SFC",
"GW",
3500,
new Fix(51.92, -0.39),
new Fix(51.855, -0.39),
LutonCTRD,
LutonCTRD.vertices.length
));
Expand Down Expand Up @@ -307,7 +307,7 @@ export default class AirspaceLines {
).cutoff(f => f.latitude <= 51.867270 && f.longitude <= 0.217581)
.append(new Fix(51.867270, 0.022402)));
this.gen.area(new Area(
"SFC",
"SS",
3500,
new Fix(51.8697, 0.2598),
StanstedCTRD,
Expand Down
6 changes: 4 additions & 2 deletions src/Area.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ import Fix from "./Fix.js";
export class Area<T extends Polygon | {radius: number, position: Fix}> {
public constructor(
/**
* Name of the area. Set to `null` to allow aircraft inbound the main
* airport to enter the area below the minimum altitude.
* Name of the area.
* Set to the 2-letter code of a secondary airport to allow aircraft to
* or from that airport to enter the area below the minimum altitude.
* Set to `null` to allow the main airport.
*/
public readonly name: string | null,
/**
Expand Down

0 comments on commit a81dd22

Please sign in to comment.