-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglobal.d.ts
More file actions
54 lines (47 loc) · 935 Bytes
/
Copy pathglobal.d.ts
File metadata and controls
54 lines (47 loc) · 935 Bytes
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
interface AirportBasic {
iata: string;
name: string;
status: number;
continent: string;
type: string;
size: string;
iso: string;
}
interface AirportRaw extends AirportBasic {
lon: string;
lat: string;
}
type Airport = AirportBasic & {
key: string;
label: string;
lat: number;
lon: number;
};
type AviameterConfig = {
departureAirport?: string;
arrivalAirport?: string;
referenceTrack: {
name: string;
flightPath: FlightPath;
};
mapOverlayShown: boolean;
units: "aviation" | "metric";
};
type RouteName = "mainApp" | "airportMap" | "guide";
type AviameterManifest = {
cacheName: string;
routes: Record<RouteName, string[]>;
}
type TrackPoint = {
lat: number;
lon: number;
alt: number;
timestamp: number;
};
type Point = {
lat: number;
lon: number;
};
type FlightPath = {
trackPoints: TrackPoint[];
};