export declare const enum WKId { gps = 4326, webMercator = 102100 } /** * An enumeration of the valid measurement units. */ export declare const enum MeasurementUnits { Feet = "Feet", Meters = "Meters" } /** * Parameters for {@link getElevationData}. */ export interface EpqsParameters { /** Longitude */ x: number; /** Latitude */ y: number; /** Specifies the output measurement units */ units?: MeasurementUnits; /** * The Well-Known Identifier (WKID) of x and y. */ wkid?: WKId; /** * Set to `true` if you want the output to include * an `attributes` property with an `AcquisitionDate` * date value. */ includeDate?: boolean; } /** * Represents a spatial reference system, defined by a * {@link WKId} */ export interface SpatialReference { wkid: WKId; latestWkid?: WKId; } export type Digit = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; export type Year = `20${Digit}${Digit}`; export type Month = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12; export type Day = Month | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31; type DateOrString = Date | `${Month}/${Day}/${Year}`; export interface ElevationDataAttributes
{ [key: string]: unknown; AcquisitionDate: DT; } export interface ElevationData
{ x: number; y: number; spatialReference: SpatialReference; locationId: number; value: number; rasterId: number; resolution: number; attributes?: ElevationDataAttributes
; } /** * Calls the Elevation Point Query Service (EPQS) * > This API returns the elevation in international feet or meters for a specific * > latitude/longitude (NAD 1983) point from the USGS Elevation Service hosted at * > the [U.S. Geological Survey (USGS) National Geospatial Technical Operations Center (NGTOC)](https://www.usgs.gov/national-geospatial-technical-operations-center). * @param parameters - query parameters, including x and y coordinates. * @param url - Override the default URL in case it changes and this package hasn't been updated yet. * @returns - Returns elevation data from the input location. */ export declare function getElevationData(parameters: EpqsParameters, url?: string): Promise>; export default getElevationData;