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

NameTypeRequiredDescription
lat1numberyesLatitude of point 1 (decimal degrees).
lon1numberyesLongitude of point 1.
lat2numberyesLatitude of point 2.
lon2numberyesLongitude 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.

Regenerated from source · build July 1, 2026