mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Make northern optional in toLatLon * #37527 - Add overload to toLatLon * #37527 - Add eofline to index.d.ts * Update index.d.ts * Update index.d.ts with newline * #37527 - Remove double newline
41 lines
869 B
TypeScript
41 lines
869 B
TypeScript
// Type definitions for utm 1.1
|
|
// Project: https://github.com/timothygu/utm#readme
|
|
// Definitions by: Hyeonsoo David Lee <https://github.com/civilizeddev>
|
|
// Jonas Triki <https://github.com/JonasTriki>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
export function fromLatLon(
|
|
latitude: number,
|
|
longitude: number,
|
|
forceZoneNum?: number,
|
|
): {
|
|
easting: number;
|
|
northing: number;
|
|
zoneNum: number;
|
|
zoneLetter: string;
|
|
};
|
|
|
|
export function toLatLon(
|
|
easting: number,
|
|
northing: number,
|
|
zoneNum: number,
|
|
zoneLetter: string,
|
|
northern?: undefined,
|
|
strict?: boolean,
|
|
): {
|
|
latitude: number;
|
|
longitude: number;
|
|
};
|
|
|
|
export function toLatLon(
|
|
easting: number,
|
|
northing: number,
|
|
zoneNum: number,
|
|
zoneLetter: undefined,
|
|
northern: boolean,
|
|
strict?: boolean,
|
|
): {
|
|
latitude: number;
|
|
longitude: number;
|
|
};
|