maps_elevation
Pack: google_maps · Endpoint: https://gateway.pipeworx.io/google_maps/mcp
Get elevation in meters for coordinates. Returns elevation and location data. Use to check altitude or terrain height.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
locations | string | yes | Pipe-separated “lat,lng” pairs (e.g., “39.7391,-104.9847|36.4555,-116.8666”) |
_apiKey | string | yes | Google Maps API key |
Example call
Arguments
{
"locations": "39.7391,-104.9847",
"_apiKey": "your-google_maps-api-key"
}
curl
curl -X POST https://gateway.pipeworx.io/google_maps/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"maps_elevation","arguments":{"locations":"39.7391,-104.9847","_apiKey":"your-google_maps-api-key"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('maps_elevation', {
"locations": "39.7391,-104.9847",
"_apiKey": "your-google_maps-api-key"
});
More examples
{
"locations": "39.7391,-104.9847|36.4555,-116.8666",
"_apiKey": "your-google_maps-api-key"
}
Response shape
| Field | Type | Description |
|---|---|---|
results | array | Elevation results for each location |
status | string | Status of the elevation request |
Full JSON Schema
{
"type": "object",
"properties": {
"results": {
"type": "array",
"description": "Elevation results for each location",
"items": {
"type": "object",
"properties": {
"elevation": {
"type": "number",
"description": "Elevation in meters"
},
"location": {
"type": "object",
"properties": {
"lat": {
"type": "number",
"description": "Latitude coordinate"
},
"lng": {
"type": "number",
"description": "Longitude coordinate"
}
}
},
"resolution": {
"type": "number",
"description": "Elevation data resolution in meters"
}
}
}
},
"status": {
"type": "string",
"enum": [
"OK",
"INVALID_REQUEST",
"OVER_QUERY_LIMIT",
"REQUEST_DENIED",
"UNKNOWN_ERROR"
],
"description": "Status of the elevation request"
}
}
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"google_maps": {
"url": "https://gateway.pipeworx.io/google_maps/mcp"
}
}
}
See Getting Started for client-specific install steps.