/** * Format coordinates to a template string. * @param coordinates with [x, y] in degrees. * @param template a template string containing "{x}" and/or "{y}" to format the result. * @param formatXFn a function to format the x coordinate into a string. * @param formatYFn a function to format the y coordinate into a string. * @returns the formated coordinates. */ export declare const coordinatesToTemplate: (coordinates: number[], template?: string, formatXFn?: (x: number) => string, formatYFn?: (y: number) => string) => string; /** * Format one coordinate (x or y) to DMS coordinate. * Example: * coordinateToDMS(7.1234, 'EW', 2) becomes 7° 07' 24.23" E * coordinateToDMS(46.1234, 'NS', 0) becomes 46° 43' 18 N * @param degrees the x or y coordinates in degree. * @param hemispheres NS or EW, the detection is automatic. * @param fractionDigits the precision to keep on the seconds. Default to 0. * @returns the formated coordinate. */ export declare const coordinateToDMS: (degrees: number, hemispheres: string, fractionDigits?: number) => string; /** * Format coordinates to degree minutes seconds notation. * @param coordinates with [x, y] in degrees. * @param fractionDigits the precision to keep on the seconds. Default to 0. * @param template a template string containing "{x}" and/or "{y}" to format the result. * @returns the formated coordinates. Example: 46° 43' 18 N 7° 07' 24.23" E. */ export declare const coordinatesToDMSTemplate: (coordinates: number[], fractionDigits?: number, template?: string) => string; /** * Format coordinates to a string in a given template and with given precision. * @param coordinates with [x, y] in degrees. * @param fractionDigits the precision to keep on the seconds defaults to 0. * @param template a template string containing "{x}" and/or "{y}" to format the result. * @returns the formated coordinates. */ export declare const coordinatesToNumberTemplate: (coordinates: number[], fractionDigits?: number, template?: string) => string;