geospatialdraw
Version:
Geospatial Map Drawing Library
14 lines (13 loc) • 661 B
TypeScript
type DMS = {
degree: number;
minute: number;
second: number;
};
declare const SECONDS_PRECISION = 1;
declare const dmsValueToString: (dms: DMS, isLongitude: boolean) => string;
declare const dmsCoordinateToString: (lat: DMS, lon: DMS) => string;
declare const dmsToDecimal: ({ degree, minute, second }: DMS) => number;
declare const decimalToDMS: (decimal: number) => DMS;
declare const dmsSign: ({ degree, minute, second }: DMS) => number;
declare const dmsSetSign: ({ degree, minute, second }: DMS, sign: -1 | 1) => DMS;
export { DMS, dmsValueToString, dmsCoordinateToString, dmsToDecimal, decimalToDMS, dmsSign, dmsSetSign, SECONDS_PRECISION, };