# USGS National Map

> Find U.S. mapping datasets and download links, and look up elevation at a point.

App · 3 actions. Web page: https://docs.lodol.com/docs/integrations/usgs-national-map

## Actions

### Get USGS point elevation

Read the elevation at coordinates in the service's U.S. coverage area, with resolution and acquisition date when available.

**Inputs**

- Longitude (`longitude`, number, required): Longitude in decimal degrees. From -180 to 180.
- Latitude (`latitude`, number, required): Latitude in decimal degrees. From -90 to 90.
- Units (`units`, text): Return the elevation in meters or feet. Defaults to Meters. One of: `Meters`, `Feet`.

**Outputs**

- `data` (object): The response from USGS National Map.

**Example output**

```json
{
  "data": {
    "attributes": {
      "AcquisitionDate": "example"
    },
    "location": {
      "x": 1,
      "y": 1
    },
    "rasterId": 1,
    "resolution": 1,
    "value": "example"
  }
}
```

### List USGS National Map datasets

Find source dataset names and search tags for topographic maps, elevation, imagery and other layers.

**Inputs**: None.

**Outputs**

- `data` (list): The response from USGS National Map.

**Example output**

```json
{
  "data": [
    {
      "description": "example",
      "id": "example",
      "parentCategory": "example",
      "sbDatasetTag": "example",
      "title": "example"
    }
  ]
}
```

### Search USGS National Map products

Find map and data downloads from a named dataset within a geographic rectangle.

**Inputs**

- Dataset (`dataset`, text, required): Dataset search tag from the dataset list, such as US Topo.
- Bounding box (`bounds`, text, required): West, south, east, north in decimal degrees, such as -105.27,39.96,-105.23,40.00.
- Query (`query`, text): Optional text to look for in product titles and descriptions.
- Limit (`limit`, number): Maximum products to return (1 to 100). From 1 to 100.
- Offset (`offset`, number): Number of matching products to skip. At least 0.

**Outputs**

- `data` (object): The response from USGS National Map.

**Example output**

```json
{
  "data": {
    "items": [
      {
        "downloadURL": "example",
        "format": "example",
        "metaUrl": "example",
        "publicationDate": "example",
        "sizeInBytes": 1,
        "sourceId": "example",
        "title": "example"
      }
    ],
    "total": 1
  }
}
```
