//#region src/coordinates/latlon/internal/ordinal.d.ts /** * Axis discriminator for a single coordinate value. * * `'lat'` selects the N/S hemisphere pair; `'lon'` selects E/W. */ type Axis = 'lat' | 'lon'; /** * Hemisphere letter for a coordinate value, following geo's `>= 0` * convention (0 maps to `N` on the lat axis and `E` on the lon axis). */ type Hemisphere = 'N' | 'S' | 'E' | 'W'; /** * Gets the typed hemisphere letter for a signed coordinate value on an axis. * * Follows the same `>= 0` convention as {@link getOrdinal}: a value of exactly * `0` maps to `N` on the latitude axis and `E` on the longitude axis. * * @param value - The signed coordinate value. * @param axis - Whether the value is a latitude (`'lat'`) or longitude (`'lon'`). * @returns Hemisphere letter: `'N'`, `'S'`, `'E'`, or `'W'`. * * @remarks pure function * * @example * ```typescript * getHemisphere(-77.0369, 'lon'); * // 'W' * ``` */ declare const getHemisphere: (value: number, axis: Axis) => Hemisphere; /** * Gets the ordinal direction (N/S/E/W) for a coordinate value. * * Retained as the established public API. Adapts {@link getHemisphere} — which * owns the `>= 0` convention — to a boolean axis and the wider `string` return * its existing callers expect. * * @param value - The coordinate value (positive or negative). * @param isLatitude - Whether this is a latitude coordinate (true) or longitude (false). * @returns Ordinal direction character: 'N', 'S', 'E', or 'W'. * * @remarks pure function * * @example * ```typescript * getOrdinal(37.7749, true); * // 'N' * ``` * * @example * ```typescript * getOrdinal(-122.4194, false); * // 'W' * ``` */ declare const getOrdinal: (value: number, isLatitude: boolean) => string; //#endregion export { Axis, Hemisphere, getHemisphere, getOrdinal }; //# sourceMappingURL=ordinal.d.ts.map