-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
46 lines (46 loc) · 1.28 KB
/
index.d.ts
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
import AdmZip from "adm-zip";
import { type FeatureCollection, MultiLineString } from "geojson";
import type { Route } from "gtfs-types";
export declare class Gtfs {
location: string;
zipEntries: null | AdmZip.IZipEntry[];
zip: any;
constructor(location: string);
init(): Promise<void>;
private getZip;
private colParser;
private getFile;
fileParser(fileName: string): Promise<any[]>;
tripsToGeojson(): Promise<{
type: string;
features: {
type: string;
id: string;
properties: {
shape_id: string;
};
geometry: {
type: string;
coordinates: number[][];
};
}[];
}>;
routesToGeojson(): Promise<FeatureCollection<MultiLineString, Route>>;
stopsToGeojson(): Promise<{
type: string;
features: {
type: string;
id: string;
properties: {
stop_id: string;
stop_name: string | undefined;
stop_lon: number | undefined;
stop_lat: number | undefined;
};
geometry: {
type: string;
coordinates: (number | undefined)[];
};
}[];
}>;
}