Elevation Data - Point, Path, Charts & Statistics
Get elevation data for any location on Earth. Look up elevations for individual points, sample elevations along a path, and generate visual elevation profile charts with statistics.
Actions
get_elevation
Get elevation data for one or more discrete locations. Returns elevation in meters and feet, resolution, and an elevation category for each point. When multiple locations are provided, includes aggregate statistics (min, max, average, gain, ascent, descent).
Required fields:
action—"get_elevation"locations— Array of location objects (max 512), each with:latitude(number, -90 to 90)longitude(number, -180 to 180)
Example — Single point:
{
"action": "get_elevation",
"locations": [
{"latitude": 27.9881, "longitude": 86.9250}
]
}
Example — Multiple points with statistics:
{
"action": "get_elevation",
"locations": [
{"latitude": 37.7749, "longitude": -122.4194},
{"latitude": 36.5785, "longitude": -118.2923},
{"latitude": 36.2388, "longitude": -116.8318}
]
}
get_path_elevation
Sample elevation values at evenly-spaced points along a path defined by two or more waypoints. Returns elevation data for each sample point plus path statistics including total distance, ascent, and descent.
Required fields:
action—"get_path_elevation"path— Array of at least 2 location objects, each with:latitude(number, -90 to 90)longitude(number, -180 to 180)
Optional fields:
samples— Number of evenly-spaced sample points along the path (2–512, default 100)generate_chart— Set totrueto also generate an elevation profile chart image (default false)chart_width— Chart width in inches (6–20, default 12). Only used when a chart is generated.chart_height— Chart height in inches (4–12, default 6). Only used when a chart is generated.
Example — Path with 50 samples:
{
"action": "get_path_elevation",
"path": [
{"latitude": 36.5785, "longitude": -118.2923},
{"latitude": 36.2388, "longitude": -116.8318}
],
"samples": 50
}
Example — Path with chart generation:
{
"action": "get_path_elevation",
"path": [
{"latitude": 46.8523, "longitude": -121.7603},
{"latitude": 46.7867, "longitude": -121.7354}
],
"samples": 200,
"generate_chart": true,
"chart_width": 14,
"chart_height": 8
}
get_elevation_profile
Same as get_path_elevation but always generates an elevation profile chart image. The chart shows elevation vs. distance with min/max markers and dual axes (meters and feet). A signed URL to the chart image is included in the response.
Required fields:
action—"get_elevation_profile"path— Array of at least 2 location objects, each with:latitude(number, -90 to 90)longitude(number, -180 to 180)
Optional fields:
samples— Number of sample points along the path (2–512, default 100)chart_width— Chart width in inches (6–20, default 12)chart_height— Chart height in inches (4–12, default 6)
Example — Elevation profile for a hiking trail:
{
"action": "get_elevation_profile",
"path": [
{"latitude": 36.5785, "longitude": -118.2923},
{"latitude": 36.4600, "longitude": -118.1700},
{"latitude": 36.2388, "longitude": -116.8318}
],
"samples": 100,
"chart_width": 12,
"chart_height": 6
}
Response Details
Elevation data per point
Each result includes:
elevation_meters/elevation_feet— Elevation in both unitsresolution_meters— Data resolution (distance between data points used for interpolation)category— One of:below_sea_level,low_elevation,moderate_elevation,high_elevation,very_high_elevationdescription— Human-readable elevation descriptionlocation— Coordinates of the point
Statistics (returned for multi-point and path queries)
- Min, max, and average elevation (meters and feet)
- Elevation gain, total ascent, and total descent (meters and feet)
- Total distance in km and miles (path queries only)
Chart output (path actions with chart enabled)
elevation_chart.signed_url— Direct link to the PNG chart image. Always present this URL to the user.elevation_chart.file_id— Storage reference IDelevation_chart.filename— File name- The chart expires after 7 days.
Common Workflows
- Check elevation of a city — Use
get_elevationwith a single location. - Compare elevations of multiple places — Use
get_elevationwith several locations to get comparative statistics. - Analyze a hiking route — Use
get_elevation_profilewith waypoints along the trail to see total ascent/descent and a visual chart. - Assess road grade between two points — Use
get_path_elevationwith start/end points and a high sample count for detailed elevation changes.
Important Notes
- Coordinates must be in decimal degrees (not DMS format). Convert addresses to coordinates before calling this tool.
- The
locationsparameter is forget_elevationonly; thepathparameter is forget_path_elevationandget_elevation_profile. - Higher
samplesvalues give more detailed path data but use more API quota. Use 50–100 for overview, 200+ for detailed analysis. - Chart images are stored for 7 days and accessible via the signed URL in the response.
- Maximum of 512 locations per
get_elevationcall or 512 samples per path call.







