distance
Pack: geodistance · Endpoint: https://gateway.pipeworx.io/geodistance/mcp
Great-circle (haversine) distance between two lat/lon points. Returns the distance in km, miles, nautical miles, meters & feet, plus the initial compass bearing from point 1 to point 2.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
lat1 | number | yes | Latitude of point 1 (decimal degrees). |
lon1 | number | yes | Longitude of point 1. |
lat2 | number | yes | Latitude of point 2. |
lon2 | number | yes | Longitude of point 2. |
Example call
curl -X POST https://gateway.pipeworx.io/geodistance/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"distance","arguments":{}}}'
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"geodistance": {
"url": "https://gateway.pipeworx.io/geodistance/mcp"
}
}
}
See Getting Started for client-specific install steps.