forked from KollerZx/utm-latlng
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
68 lines (61 loc) · 989 Bytes
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
type ElipsoidType = 'Airy'
| 'Australian National'
| 'Bessel 1841'
| 'Bessel 1841 Nambia'
| 'Clarke 1866'
| 'Clarke 1880'
| 'Everest'
| 'Fischer 1960 Mercury'
| 'Fischer 1968'
| 'GRS 1967'
| 'GRS 1980'
| 'Helmert 1906'
| 'Hough'
| 'International'
| 'Krassovsky'
| 'Modified Airy'
| 'Modified Everest'
| 'Modified Fischer 1960'
| 'South American 1969'
| 'WGS 60'
| 'WGS 66'
| 'WGS 72'
| 'ED50'
| 'WGS 84'
| 'EUREF89'
| 'ETRS89';
type ZoneLetter = 'X'
| 'W'
| 'V'
| 'U'
| 'T'
| 'S'
| 'R'
| 'Q'
| 'P'
| 'N'
| 'M'
| 'L'
| 'K'
| 'J'
| 'H'
| 'G'
| 'F'
| 'E'
| 'D'
| 'C'
| 'Z';
declare class UTMLatLng {
Constructor(type?: ElipsoidType)
ConvertLatLngToUtm(latitude: number, longitude: number, precision: number): string | {
Easting: number;
Northing: number;
ZoneNumber: number;
ZoneLetter: ZoneLetter;
}
convertUtmToLatLng(UTMEasting: number, UTMNorthing: number, UTMZoneNumber: number, UTMZoneLetter: ZoneLetter): string | {
lat: number;
lng: number;
}
}
export = UTMLatLng;