get_elevation
Query terrain elevation in meters above sea level for points or named locations, or sample a bounding-box grid to calculate elevation statistics.
Instructions
Query terrain elevation in meters above sea level using the Open-Meteo 90m Copernicus DEM API (free for non-commercial use; commercial use requires a paid key or self-hosted ELEVATION_API_URL). Supports querying specific point coordinates OR sampling an N×N point grid across a bounding box to compute sample statistics (note: finite grid sampling over a 90m DEM reports sample statistics, not guaranteed area-wide true minimum, maximum, or slope).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bbox | No | A bounding box or point string to sample terrain elevation across. | |
| points | No | List of {lat, lng, label?} points to query elevation for (up to 100 points). | |
| location | No | A text location to sample elevation across (e.g. 'Mount Rainier', 'Denver'). | |
| grid_size | No | Grid dimension N (N x N samples, from 2 to 10) when sampling a bounding box. Defaults to 5 (25 sample points). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bbox | Yes | ||
| mode | Yes | ||
| samples | Yes | ||
| complete | Yes | ||
| warnings | Yes | ||
| share_url | Yes | ||
| provenance | Yes | ||
| sample_count | Yes | ||
| sample_stats | Yes | ||
| matched_place | No | ||
| dem_resolution_meters | Yes |